mbed uVision export appears to be broken

A 40 Pin Dip packaged development board enabling you to create internet connected products

mbed uVision export appears to be broken

Postby donster2k » Tue Mar 18, 2014 9:30 pm

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
donster2k
 
Posts: 7
Joined: Tue Mar 18, 2014 9:25 pm

Re: mbed uVision export appears to be broken

Postby Carl-SolderSplash » Wed Mar 19, 2014 1:27 am

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.
User avatar
Carl-SolderSplash
Site Admin
 
Posts: 223
Joined: Sun Mar 17, 2013 11:15 pm

Re: mbed uVision export appears to be broken

Postby donster2k » Wed Mar 19, 2014 8:41 am

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
donster2k
 
Posts: 7
Joined: Tue Mar 18, 2014 9:25 pm

Re: mbed uVision export appears to be broken

Postby Carl-SolderSplash » Wed Mar 19, 2014 10:37 am

Super!

Yes this is probably something that could by fixed in mbed's project generation.
User avatar
Carl-SolderSplash
Site Admin
 
Posts: 223
Joined: Sun Mar 17, 2013 11:15 pm


Return to WiFi DipCortex

Who is online

Users browsing this forum: No registered users and 2 guests

cron