Kevin, I just skimmed through your text file and one thing I noticed is that your make command is failing at some point so it isn't clear to me if it is actually even building the LPC1768 binary with debug support enabled. You should use make clean deploy
instead so that it only tries to build for the LPC1768 target. Many of the smaller platforms will fail to build in Debug because the unoptimized code is too large to fit on the device.
You connect with a terminal program to a HelloWorld sample but don't say what the result of that really is. The HelloWorld sample wouldn't really do much with a terminal program anyway since it just blinks a LED. If the binary was really debug enabled then sending +$#00
should cause the mbed to respond in kind. If it is debug enabled it should also halt before the blinking even starts so if you see blinking then you don't have a debug enabled binary.
I have no idea why your text file is showing the building of the HelloWorld sample but you attempt to debug the FileTest binary instead. Just pick one of them and do all of your testing with it.
Your attempt to run GDB should have produced a mri.log file. Seeing the contents of that might help to diagnose the problem as well but looking at the errors that you are getting I suspect that the mbed just isn't responding. Likely causes:
- Not using a Debug enabled binary but a Release one instead.
- Using the wrong COM port with GDB.
- Not using the 21164 firmware in the mbed interface chip. A
type H:\mbed.htm
should display output verifying if this is the firmware running in the mbed.
Duncan Cragg wrote:
So now I'd like to try gcc4mbed. :-) It's apparently the only way I can have many targets, varying libraries and many different device programs. Cool. Your .hex files are full size and looks like you use s130, so promising.
In the working branch I have switched back to s110 since it is all that is required for most samples and leaves more RAM/FLASH available for us to play with.
Duncan Cragg wrote:
But it didn't work for me.. I did a clean git clone, linux_install and uploaded the (ready-built) .hex to the Arch BLE. Nothing.. :-(
I just tried building this iBeacon sample with the working branch of my gcc4mbed project and it worked on my Nordic NRF51822-mkit board with no problems.
I don't have your particular board to test with. How are you programming the device? I tend to use the CMSIS-DAP interface along with GDB to load the code into the device. The USB MSD method of programming usually doesn't like the .hex files that the GNU tools (as used by gcc4mbed) produce.
-Adam