After I enter debug, there will be some prompts about the debugger, and then the program seems to be stuck in a certain place, and can not run down.I want to know how to solve it.
Solved! Go to Solution.
I can see in your project that 16MHz is configured. This needs to be updated:
Hi @zenging
isn't that caused by startup files? What does happen if you uncheck "Run on reset" in Debug configurations like this?
Then it will stop at entry point once the project is loaded and you can debug also the startup files. Can you reach this state or does it crash already during the loading?
Regards,
Lukas
I uncheck the reset and run options according to your suggestion, but when I click debug, I will jump directly to this error message.
Then when I hit resume multiple times it's stuck inside the DevAssert function. I would like to ask how this situation should be resolved.
I loaded the project to my board and it seems it works as expected. Are your clock settings correct? Does crystal frequency on your board correspond to the value set in the configurator?
I'm not sure if my clock is configured correctly because it seems to me that your tutorial didn't teach me how to configure the clock. I just configured the initialization of the serial port. So how do you configure the clock correctly?
This is the crystal oscillator on my board, should I modify the clock initialization according to this crystal oscillator? How should I configure it?
I can see in your project that 16MHz is configured. This needs to be updated: