Its really hard without the code.
I had a similiar thing in a program. mBed continued running, infact it continued controlling a relay, but my output and other functionality hung. (hanged?!)
It was me.. it was an interrupt doing WAY to much work.
Do you have any interrupts in your code. (methods connected to tickers?)
If you do, I'd pull them and see if it stabilises.
I come from an application programming background.. embedded programming is quite a bit different, and took me quite a while to get my head round. Initially I found it quite easy to hang an mBed in many different ways.
I think I remember once storing a value in a char* that wasn't big enough to hold it, and it would sometimes overwrite memory and go splat. (Randomly splat) Looked like a completely innocuous code issue, but wasn't.
If presume if you code a very simple program to loop and output a constant to your PC every 5 secs then that's completely fine ?
Hello All,
I am having issues with the USB connection dropping out periodically on my mbed. I basically have an app running on it printing out over the USB serial interface to a putty session. After some time the printing stops and I no longer have access to the File System of the mbed either. Only way to solve it is a power cycle. My application is not doing anything intense but prints out the USB serial at a regular interval of 5 seconds.
I am running Windows 7 and the serial port is set to 115200 baud.
Seems other have had similar issues but I have not seen a solution.
Thanks, Serge