Question
Did I just brick my board with a WFI?
Posted on June 08, 2015 at 18:53
Hi folks,
I find I am no longer able to download code to my target system (custom board) Using an IAR I-Jet on an SWD connector. The last code change I made was to add __WFI() to the end of my main loop.In this thread https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https%3a%2f%2fmy%2est%2ecom%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fcortex_mx_stm32%2fWhat%20could%20stop%20SWD%20from%20working&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=324I see Clive's comment:''SWD/JTAG commonly fail due to DMA, WFI loops, interference with the GPIO pins being used, and low power modes.''
I added the __WFI() at the end of the main loop. The most frequent interrupt is SysTick at 1 KHz.Is there any workaround I can try to update the code?Thanks! #worst-forum-software-ever