It seems that the image isn’t always getting written to my mBed-LPC1768.
I was having a problem so I tried backing off to a known working version of the code. When I loaded it, it didn’t work either. So I downloaded the HelloWorld_LPC1768.bin from the Getting Started instructions and loaded it on the target after deleting my code. This worked so I reloaded the known good copy of my code (after deleting HelloWorld_LPC1768.bin), it now worked, so I loaded the version I was debugging, it worked as well. So I continued updating my code and on the next load, everything failed again.
This time I renamed HelloWorld_LPC1768.bin to match the name of my code’s binary image (LPC1768.bin). Guess what, it didn’t work. So I deleted the binary and reloaded the renamed HelloWorld_LPC1768.bin. It now worked. So I tried reloading my code and after reset it was running the renamed HelloWorld_LPC1768.bin code!!! After seeing this I tried deleting the old binary before loading a new binary image, this didn’t help as sometimes it would be running the new image and sometimes the old. As a last test, I tried loading the original HelloWorld_LPC1768.bin with its original name, This now sometimes worked and didn't. Since encountering this I’ve also tried un-mounting the mBed target from my computer and re-mounting it, which sometimes helps and sometimes doesn’t and rebooting my computer between loads. Once again, it sometimes helps and sometimes doesn’t
At this point I’m really confused. I don’t know if there is a bug in the built in loader or the on board flash is failing. I find it hard to believe that the flash is failing since I’ve only had this for less than 1 week and have probably loaded less than 100 times to the target. I’ve also been using it stand-alone (no extra hardware) on a bread-board (for pin protection) while I get used to programming the LPC1768.
Any ideas, information on known/suspected loading issues and suggestions would be greatly appreciated.
Thanks
G
[EDIT]
Corrected references to LPC2368 to LPC1768
[/EDIT]
It seems that the image isn’t always getting written to my mBed-LPC1768.
I was having a problem so I tried backing off to a known working version of the code. When I loaded it, it didn’t work either. So I downloaded the HelloWorld_LPC1768.bin from the Getting Started instructions and loaded it on the target after deleting my code. This worked so I reloaded the known good copy of my code (after deleting HelloWorld_LPC1768.bin), it now worked, so I loaded the version I was debugging, it worked as well. So I continued updating my code and on the next load, everything failed again.
This time I renamed HelloWorld_LPC1768.bin to match the name of my code’s binary image (LPC1768.bin). Guess what, it didn’t work. So I deleted the binary and reloaded the renamed HelloWorld_LPC1768.bin. It now worked. So I tried reloading my code and after reset it was running the renamed HelloWorld_LPC1768.bin code!!! After seeing this I tried deleting the old binary before loading a new binary image, this didn’t help as sometimes it would be running the new image and sometimes the old. As a last test, I tried loading the original HelloWorld_LPC1768.bin with its original name, This now sometimes worked and didn't. Since encountering this I’ve also tried un-mounting the mBed target from my computer and re-mounting it, which sometimes helps and sometimes doesn’t and rebooting my computer between loads. Once again, it sometimes helps and sometimes doesn’t
At this point I’m really confused. I don’t know if there is a bug in the built in loader or the on board flash is failing. I find it hard to believe that the flash is failing since I’ve only had this for less than 1 week and have probably loaded less than 100 times to the target. I’ve also been using it stand-alone (no extra hardware) on a bread-board (for pin protection) while I get used to programming the LPC1768.
Any ideas, information on known/suspected loading issues and suggestions would be greatly appreciated. Thanks G
[EDIT] Corrected references to LPC2368 to LPC1768 [/EDIT]