Skip to Content

Blogs

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.


HCS08 + SMAC + FreeRTOS FreeRTOS SMAC

Three years ago I created a blog post of my port of FreeRTOS to the Freescale HCS08 8-bit architecture. That post was a bit messed up since one of the files was not downloadable. Here is a fixed version of that post (using an easier system that lets me attach files directly to posts.)

------------------------------------------
The text of the old post:

I made SMAC compatible with FreeRTOS for the HCS08 chipset. There are two projects here:

1. The latest FreeRTOS for HCS08: FreeRTOS-3.2.4.hcs08.v3.zip


Start again

Ugh! It's been a *very* busy two years. I've been contributing to a lot of open source projects, and I haven't had a decent platform to bring this knowledge together. I've hosted this site at a new place that will make it easier for me to organize this information.


Syndicate content