2014-05-08 06:22 PM
Hi, I have a board with an STM32F429 and an 8 MHz crystal on the HSE pins. I'm using Atollic TrueSTUDIO to upload and debug code. I can upload code without a problem, but as soon as the the debugger starts, the crystal stops oscillating and I'm unable to step through the code. Any ideas what might be causing this?
2014-05-08 08:10 PM
Ok, the crystal no longer stops for some reason, but I get communication errors unless I pull down the SW data line. Is this a requirement?
2014-05-09 01:29 AM
Hi
You have probably used the IO pins that the debugger uses. Check which IO pins you have used and which pins are used for the debugging device. Do NOT use the pins that the debugger uses!2014-05-20 08:47 PM
I'm not using the SWD pins for anything else. This problem has developed further. A week ago I switched from the original 16 MHz crystal (I mistyped as 8 MHz in the OP) to an 8 MHz crystal for testing and it worked fine for a week. Now I just switched back to a 16 MHz crystal and for a few moments the crystal oscillated fine. Now, the crystal won't start up at all, but I can still step through code in the debugger. Any advice?
2014-05-21 02:10 AM
OK.
Are you sure you are running off the HSE, could you actually be running off the HSI? I think the capcaitor values for 8MHz and 16MHz are different, are you sure the right values for the crystal as used? Check the HSE is working by routing it to an output pin.