Skip to Content

MC1322x

This post relates to the Freescale MC1322x

MC1322x + OpenOCD Eclipse MC1322x OpenOCD

One of the Big Tasks in the Eclipse+MC1322x project is that we need to support a JTAG protocol converter. Since the Segger JLink comes with the Freescale DSK this seems like a reasonable choice. (Tho' I might investigate an FTDI-based protocol converter, time permitting.)

I have made significant progress fixing the OpenOCD Jlink code, so that it works with the MC1322x. Since I'm new to the whole ARM world I don't quite know how to submit my patches. I'll post more when I succeed.


Caveats of the MC1322x port of FreeRTOS FreeRTOS MC1322x

I should point out that the port of FreeRTOS to MC1322x has a bit of "brittle" code to handle interrupts. The problem is that this part contains a ROM that holds code to many important functions of the MCU. Freescale does not provide the source code for this ROM. In addition some of this ROM gets "patched" in RAM, and we have no control over this. One place that this becomes a problem is interrupt handling. An interrupt-driven OS like FreeRTOS needs to maintain the exact state of the interrupted task, but the ISR is in ROM.


MC1322x + Eclipse (or GNU) Eclipse MC1322x

As I mentioned in my previous post we are close to getting up on MC1322x with the Eclipse/GNU toolchain.

The project I submitted in the previous post uses the devkitARM GNU-ARM toolchain from http://www.devkitpro.org/ . In the Project->Properties->Setting->Environment you need to set the three environment variable to point to you installation of devkitARM (or whatever gnu-arm toolchain you picked.)

There are a few problems:


MC1322x + SMAC + FreeRTOS Eclipse FreeRTOS MC1322x SMAC

So the big news about why I'm restarting this blog is that I've been working on a port of FreeRTOS to the new Freescale MC1322x ARM7 + 802.15.4 radio. This is an awesome part!

The attached file includes two projects in the same folder.

Project 1: An IAR project that will bring up FreeRTOS and SMAC on a Freescale DSK 1322x-SRB. You will see two blinking LEDs: one for task1 and one for task2. Task2 blinks at half the rate of task1.


Syndicate content