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.
8 years, 11 months ago.
LPC11U35 QuickStart works with MBED but not GCC?
Hi,
I just started playing around with the LPC11U35 QuickStart board.
I can successfully compile the default blinky app (toggling LED1) using the online mbed compiler. I download the binary to the board via USB using the process described here (https://developer.mbed.org/questions/3512/Can-the-11U35-actually-be-programmed-usi/) and it works great! The green USB led turns off and LED1 starts to toggle as anticipated.
I exported the project to GCC and compiled the binary locally on OS X using GCC_BIN = /usr/bin/gcc-arm-none-eabi-4_9-2015q1/bin/. However, when I compile it this way and download, the green USB led stays illuminated and LED1 does not toggle.
I am using the default build options. The only modification I made to the makefile was to add the GCC_BIN path.
I have compiled numerous mbed apps for the LPC1768 using GCC so the tool chain is working in general.
Any ideas?
Thanks!
2 Answers
7 years, 9 months ago.
I also got such issue recently.
Also, I check the size of the file compiled using Mbed and the file compiled using arm-none-eabi-gcc. They are sizes are different.
Any ideas?
Thanks in advance.
7 years, 9 months ago.
Hi,
Your binary file probably doesn't have correct check-sum code in the image. You can use a checksum utility in an LPCXpresso package to add valid checksum in your binary image.
I think this information is also useful.
Quote:
I have compiled numerous mbed apps for the LPC1768 using GCC so the tool chain is working in general.
The LPC1768 should just work, because the mbed interface firmware (CMSIS-DAP or DAPLink) adds checksum when bin file is flashed into the target by USB drag&drop.
https://github.com/mbedmicro/FlashAlgo/blob/master/source/nxp/iap/FlashPrg.c#L478
I hope this helps.