cancel
Showing results for 
Search instead for 
Did you mean: 

Why (stm32 discovery) pins are resetting ?

YAY.1
Senior

When i use iar embeded workbench its work correctly with out f11 .

While it works by itself , its pins are resetting.

I want to learn what happening here .

Even power is enough.

Model : stm32f429

COD:

CONTROLREAD

LDR R0, =USART2_DR        

LDR R1, [R0]      

MOVE               

                LDR R2, =0x31 ;forward "1" signal 

                LDR R3, =0x32 ;back "2" signal 

                LDR R4, =0x33 ;right "3" signal 

                LDR R5, =0x34 ;left "4" signal  

                CMP R1, R2

                BEQ   FORWARD

                CMP R1, R3

                BEQ   BACK

                CMP R1, R4

                BEQ   RIGHT

                CMP R1, R5

                BEQ   LEFT

                B    CONTROLREAD

FORWARD 

                LDR R0, =GPIOD_ODR

                LDR R1, =(BIT0|BIT1|BIT4)

                STR R1, [R0]

                B    CONTROLREAD

14 REPLIES 14

How are you powering your board?

How are you measuring to say "I have tried to make loop , the voltage is fall down a bit then rise up ."? Multimeter? Oscilloscope? LED?

Be more specific.

Be aware that interrupting power for even the tiniest moment will cause the processor to reset because microcontrollers are absurdly fast. What is too small for you to spot is a lifetime for one of them!

How long are the cables from your power-supply? What is the voltage?

Is it a battery (that might be about to go flat).

Please hang a voltmeter between Vdd and Vss and tell us what it reads - while you try to run your code.

Similarly at the input of the voltage regulator.

And on the Reset pin of the microcontroller.

We (probably) can help. But you do have to cooperate and answer all the questions we ask as fully as you can. We ask specific questions as the answers give us clues as to what might be wrong.

"It doesn't do what I want" is useless without telling us (a) what you're trying to do and (b) what it actually is doing - as quantitatively as you can.

Connected bluetooth module Hc06

Voltage regulator input = 4.7v

The cable is very short and there is no problem in cable.

I am measuring 2.9 volt with multimeter but it is falling to 0 volt when I stop sending signals.

NRST - GND = 2.9 volt (stable)

VDD - GND = 2.9 volt (stable)

Thank you to all of you who helped...

The cod is here:

I think I found the problem.

It is working correctly without bluetooth.

Bluetooth module is resseting very fast but it is working in my estimation.

I will change bluetooth module, i hope it will work.

Thanks for all helps, but (@Piranha) you shouldn't do like this, you should try to understand with patience...

You angered me in vain

Unfortunately,

Although I have replaced the bluetooth module, there is same problem.

YAY.1
Senior

I tried everything but i am sure that it is broken completely.