Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

stm32f103 arm microcontroller doesn't program twice

Status
Not open for further replies.

amintlk

Member level 1
Member level 1
Joined
Aug 23, 2010
Messages
36
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
bojnourd
Visit site
Activity points
1,523
hi to all
i have stm32f103RB and i make program with STMCUBEMX and IAR .. the program is for test and it is led blinker . after i program it for first time it's Ok but it doesn't program again .. the stm is running correctly but i can't program it again .. it happen for 2 micro and i use both SWD and JTAG method .. and microcontroller pins are used are not same with programming pin ..
what's wrong with that?
 

There are two possible reasons:
1. Connection or h/w issue. Have no idea how you connected target board to debugger and how supplied.
2. You switched off both JTAG and SWD in s/w. In this case you can start mcu in boot0 mode (boot0 pin set high and reset). And then erase it.
 

    V

    Points: 2
    Helpful Answer Positive Rating
the stm is running correctly but i can't program it again
There are some option bytes for the STM micro. Search in there for a write protection bit, in combination with the Global Read Out Protection (RDP) level. Check your program's configuration for those option bytes.
 

    V

    Points: 2
    Helpful Answer Positive Rating
thanks for your help .. i can program when i set boot0 pin .
i think flash write protection is enable but how i could disable it ?
 


Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top