Page 1 of 1

mbed uVision export appears to be broken

PostPosted: Tue Mar 18, 2014 9:30 pm
by donster2k
Hi There,
When testing the USB kitchen Sink example from http://mbed.org/users/SolderSplashLabs/ ... tchenSink/ , it works fine when I build and download using the online compiler. However, when I export it to uVision, I can't flash the built bin files. The NXPISP app complains that the bin file is not valid. I've also tried the drag and drop programming but that also appears to fail.
Any ideas what might be wrong?
Cheers,
Donster.

I'm using uVision 4.73.0.0

Re: mbed uVision export appears to be broken

PostPosted: Wed Mar 19, 2014 1:27 am
by Carl-SolderSplash
Hi,

Welcome to the forum!

I've only been able to test uVision exporting in the past using a smaller mbed project as I don't have access to the full version of uVision. I've built smaller projects with the code limited version and they have worked okay via jtag.

But I just tried to use a .bin created with uVision 4.72 and upon reset the dipcortex re-enumerated in boot loader mode. So i don't think the .bin is passing the nxp bootloader checks. I know they need to be signed/checksumed. Perhaps uVision isn't doing this.

Ahh, this page might help : http://www.keil.com/support/man/docs/uv ... elfdwt.htm
Edit : this thread suggests signing the .axf before converting : http://www.lpcware.com/content/forum/lp ... d-bin-keil

Try signing your .bin using this guide and then booting with it.

Also, What OS are you using Mac or Windows? on a Mac other DipCortex users have found using DD to work best when using the NXP's built in boot loader.
See this post : viewtopic.php?f=14&t=67&p=268&hilit=mac#p266

Windows boot loading using drag and drop has never (touch wood) been an issue.

Re: mbed uVision export appears to be broken

PostPosted: Wed Mar 19, 2014 8:41 am
by donster2k
Hi Carl,
Yes, you were right, it was failing because uVision wasn't signing the bin files.
I've modified the "Run User Programs After Build/Rebuild" options in the uVision project to the following:

    Run #1: $KARM\BIN\ElfDwT.exe build\WiFiDip-UsbKitchenSink.axf
    Run #2: fromelf --bin -o build\WiFiDip-UsbKitchenSink_LPC1347.bin build\WiFiDip-UsbKitchenSink.axf

This looks to be a bug in mbed's export functionality, right?

Donster

Re: mbed uVision export appears to be broken

PostPosted: Wed Mar 19, 2014 10:37 am
by Carl-SolderSplash
Super!

Yes this is probably something that could by fixed in mbed's project generation.