Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibly wrong Reset_Handler in startup .s file ? #3

Open
MrSpock opened this issue Jun 21, 2012 · 6 comments
Open

Possibly wrong Reset_Handler in startup .s file ? #3

MrSpock opened this issue Jun 21, 2012 · 6 comments

Comments

@MrSpock
Copy link

MrSpock commented Jun 21, 2012

Hello,

Please correct me if I'm wrong but what would happend after pushing reset BTN on STM32F0DISCOVERY board ?
I 'm assuming that program should be restarted and resume operation from start.
Insted of it after pressing RESET sample led blinking program stops working. In order to resume normal work I have to turn off/on power.

Here is gdb output when pushing reset button on board:

Program received signal SIGINT, Interrupt.

Reset_Handler () at Device/startup_stm32f0xx.s:71

Src window:
│70 Reset_Handler:

│71 ldr r0, =_estack
│72 mov sp, r0 /* set stack pointer */

Is this normal behavior ?

@MrSpock
Copy link
Author

MrSpock commented Jun 21, 2012

Sorry for formating - I wasn't expecting this after submiting my issue :/

@szczys
Copy link
Owner

szczys commented Jun 24, 2012

You may be right. I experience a similar problem. After I program the chip (using OpenOCD) it runs just fine until I press the reset button. This causes it to freeze. But power cycling the board fixes the issue and then the reset button works as expected.

Unfortunately I don't know what is the root cause or how to fix it. Any thoughts?

@MrSpock
Copy link
Author

MrSpock commented Jun 25, 2012

Thanks for confirmation that you have similar symptoms.
I have working similar template for STM32F1xx (gcc and make based build), so I will try compare those two in next few days so maybe solution will emerge.

@temoto
Copy link

temoto commented Jan 27, 2013

@MrSpock i have the same problem on STM32F0d (first reset after programming using OpenOCD makes board freeze, power off-on fixes it) and would like to know if you found a solution.

@a-golosnyak
Copy link

Hallo. Have the same problem. MCU STM32F051C8. I try to use ST-Link on STM32VLDISCOVERY and STM32F4DISCOVERY boards. Help me please, Is any solutions?

@a-golosnyak
Copy link

Hallo, colleagues. 2 days later I found the cause of the problem. BOOT0 was not pull down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants