suikan4github / murasaki

STM32 HAL class library
MIT License
17 stars 3 forks source link

Cycle counter works only when a program is loaded by debugger. #141

Closed suikan4github closed 2 years ago

suikan4github commented 2 years ago

Describe the bug The Cycle counter runs only when a program is loaded by the debugger. This seems to be like :

Pushing the reset button on Nucleo Board makes a warm reset. In this case, the cycle counter shows the same random value.

To Reproduce Steps to reproduce the behavior:

  1. Load the program by a debugger to a debuggee.
  2. Run it. We will see the cycle counter runs on the terminal.
  3. Push the reset button.
  4. We will see the cycle counter runs on the terminal.

Expected behavior The cycle counter runs always.

Screenshots The following is when the program is loaded by the debugger and run. image

The following is when the program is just reset by the debugger. image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

suikan4github commented 2 years ago

Merged to develop. Ready to release.