Hi all.

If I make the following program:

int main() {
        while(1) {
                __WFI();
        }
}

Then flash-program it and flash-program it again, the second flash-programming 
will fail (for me at least).

In order to get my device up and running again, I'll have to run OpenOCD as a 
server, issue
> reset halt
several times, until I see something like ...
target state: halted
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x080002e4 msp: 0x2001c000

-Then I can manually do a flash write_image erase myfile.elf

Is this "wfi-problem" a known issue ?

When things like the above happens, I sometimes get into further trouble; my 
debug-adapter won't respond or if I'm very unlucky, my OpenOCD won't quit.

I also often have to ...
1: Shutdown OpenOCD - sometimes by ^C
2: Turn off power to my device
3: Disconnect my lock-pick (or stlink if I'm using that one)
4: Re-connect my debug-adapter
5: Turn on power
6: Run OpenOCD again
... in order to "reset" libusb.

(2 & 3 can be swapped, 4 & 5 can be swapped)
I /have/ to disconnect the adapter, because usblib is still connected to it, 
thus it's not sufficient to restart OpenOCD.


Love
Jens

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to