I tried to compile the code on codeplex (I checked it out in D:\MicroFrameworkPK_v4_1\Solutions\USBizi_OpenSource) but it doesn’t compile
[quote]D:\MicroFrameworkPK_v4_1\DeviceCode\Targets\Native\LPC24XX\deviceCode\VIC\LPC24XX__VIC.cpp: In function ‘void IRQ_Handler()’:
D:\MicroFrameworkPK_v4_1\DeviceCode\Targets\Native\LPC24XX\deviceCode\VIC\LPC24XX__VIC.cpp:112: error: interrupt Service Routines cannot be coded in Thumb mode[/quote]
Why doesn’t it compile ? I successfully compiled a EA_LPC2478 clone made by me with the solution wizard.
I want to help but I have no idea what has to be done, I’ll have to wait until the project is more advanced…
Is the hardware protection in CRP3 or 2 ? I’m asking this because if it is level 3 there is no way of using JTAG on Panda if you don’t provide the erase and unlock application…
It’s going to take a couple of weeks to get hold of a Panda in London. But I have an Olimex JTAG dongle wired up ready to attach to the Panda, plus a TinyCLR built with the PK that includes new driver and native code. Right now I’m just working out what is required on the LPC to get the CLR running, and working out from the NXP user manual what settings are required for OpenOCD. It looks from the book that it should be fairly straight forward to reflash the Panda.
I did get a “bank board”. I have a sourceforge.net project for panda board. It is under construction. I have a hot project that needs to get done before I can get git and the rest of the projects up there.
For now here is the openocd config
I got a 20 pin to 10 pin JTAG converter. Had one from a project. There is a ARM 10 pin standard, but I had to rewire the one I got. Also, made a right angle so the “prototype” board can still be used while using the JTAG. Also, going to do a simple python script to update flash using the boot loader ROM (doing this for another project). There is a GUI for Linux (LPC2000 loader or something) or there is a windows app that will do the same thing. This way you don’t need a jtag device.
using a JTAGKey
Using Linux
Create a file called panda.cfg #set _CPUTAPID 0x9f3f1f1f
adapter_khz 900
source [find interface/jtagkey-tiny.cfg]
source [find target/lpc2387.cfg]
This is helpful when you want to do debug source code.
The goal is get the sourceforge up and running with code and detailed instructions etc.
I have freeRTOS running (need to debug clocks, etc. ) that project will be also in sourceforge.