Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
1 year, 8 months ago.
Programming MBED-based binary on LPCXpresso 54114 without LPC-Link 2 interface
For a project, i am developing using MBED for a NXP LPC54114 MCU. I am able to download MBED-based binaries on the LPCXpresso 54114 evaluation board (after updating the firmware of the on-board Link2 probe based on the LPC43xx).
However, my code will finally be deployed on a custom board that includes the LPC54114 but not the LPC43xx. So, i have tried downloading some code on the target without using the Link2 probe, but i didn't succeed.
More specifically, I am trying to download a simple "blinky LED" example following these steps:
1. I reset my board while holding switch ISP0 to boot in "USB Mass Storage" mode.
2. Doing that, the "CRP_DISABLD" volume is automatically mounted on my system, and contains a "firmware.bin" file.
3. I delete the old firmware.bin and copy the new binary generated by MBED CLI on the volume (after renaming it to "firmware.bin" as well).
4. I unplug/safely disconnect/reset the board (i tried all three ways) and restart it.
However, the downloading clearly fails as the board restarts in "USB Mass Storage" mode again.
Notice that, following exactly the same method, i am able to download a similar blink LED example compiled within the original "LPCXpresso IDE" library, without using MBED.
So, the problem is definitely related to the compilation performed by MBED CLI. However, i don't know what i should change in my compilation options (mbed_app.json, targets.json, etc.) to make it work. Do you have any suggestion?
Thanks in advance.