Olimex Support Forum

ARM => JTAG => Topic started by: LunkY on October 05, 2013, 01:19:15 PM

Title: LPC2378-STK examples (using ARM-USB-OCD and EW 6.60)
Post by: LunkY on October 05, 2013, 01:19:15 PM
Hello,

I tried to run the mass storage example for LPC2378-STK. I replaced some lines in arm_comm.h:

inline __arm ExtCritSection(Save)
inline __arm void ExtCritSection(Int32U Save)

inline __arm ExtCritSectionFiq(Save)
inline __arm void ExtCritSectionFiq(Int32U Save)

After that, I was able to compile the project without any error or warning. But when I try to "download and debug" I get these error messages:

"Fatal error: There were warnings during download of FLASH loader, see Log Window. Session aborted!"
"Failed to load flash loader C:\Program Files\IAR Systems\Embedded Workbench 6.5\arm\config\flashloader\NXP\FlashNXPLPC512K2.flash"

Is this caused by using a later version of EW? Any suggestions to solve this problem are welcome.
Title: Re: LPC2378-STK examples (using ARM-USB-OCD and EW 6.60)
Post by: LubOlimex on October 07, 2013, 08:25:13 AM
Hey LunkY,

Projects for IAR 5.x are not automatically compatible with IAR 6.x. I recommend you to check this document: http://netstorage.iar.com/SuppDB/Public/SUPPORT/005449/EWARM_MigrationGuide.ENU.pdf (http://netstorage.iar.com/SuppDB/Public/SUPPORT/005449/EWARM_MigrationGuide.ENU.pdf)

Often migrating a IAR 5.x project to IAR 6.x requires more effort than expected.

Best regards,
Lub/OLIMEX