Olimex SAM7-P256 + Rowley CrossWorks + FreeRTOS?

Dear Lazyweb,

I’ve been beating my head against a wall for hours over something which should be simple (or so I read). I’m trying to get FreeRTOS 5.0.2 running on my Olimex SAM7-P256 board using CrossWorks and an Olimex USB JTAG interface. I’m working with the lwIP_Demo_Rowley_ARM7 demo project because this appears to be the closest match for my system. I’ve ripped out the IwIP stuff and Ethernet stuff from the project because my AT91SAM7S lacks the Ethernet port that the AT91SAM7X has. The code compiles and links without error. My understanding is that these two chips are essentially identical except for the Ethernet port, so I should be able to use this project for my board. Yes, I may have to change some pin assignments if I want the buttons and LEDs to work, but for starters I’m just trying to get the code to run at all.

The failure occurs after the compiled code is downloaded to the board. I am told that the verification of the downloaded code fails.

Now, the obvious conclusion is that there’s something wrong with my JTAG or my board, but I have no trouble building and running other code with the same system. For instance I can build and run the CrossWorks examples without any fuss.

So, my questions are:

  1. is anyone else using FreeRTOS on this board with the CrossWorks dev tools?

  2. might anyone have any ideas why I can’t get this particular project to run?

Thanks in advance for any help anyone can offer. It’s probably worth mentioning that I’m quite experienced with software development in general, fairly experienced with writing code for the ATmega128, and quite new to the ARM world.

–Adam

Hi Adam,

Your request was a while ago, but I’m having the same problem with the FreeRTOS LWIP demo, an Atmel SAM7X demo board, CrossWorks 1.7 and an Olimex ARM-USB-OCD JTAG interface.

I can load other projects with this combination. However, the FreeRTOS demo gives a verify error when the Loader program is sent.

This problem seem particular to the FreeRTOS LWIP demo program and those tools.

I was able to compile the LWIP demo and program it using Atmel SAMBA and a Segger JTAG interface.

If I find a solution for CrossWorks and the ARM-USB-OCD interface, I’ll post it here.

North

Drop a new XXXX_Target.js to your project from the onces that comes with Crossworks to solve the verify issue. They reworked the scripts when they added support for the FTDI based JTAGS to solve some timing issues.

Thanks mikaelo.

That fixed the problem and the Olimex ARM-USB-OCD JTAG interface is working fine now with Crossworks.