cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32f1cube bug on debug

askari.nima
Associate II
Posted on November 22, 2016 at 09:37

When i enable SWD debug on my cube project . only can one time program my chip.

when disable debug on cube. i can program my chip.but cant debug .

Cube version  4.17.0

cubef1 : 1.4.0

chip : stm32f103zc
4 REPLIES 4
Nesrine M_O
Lead II
Posted on November 22, 2016 at 10:30

Hi askari.nima,

1-You are using a custom board or an ST board?

2-Please refer to the

http://www.st.com/content/ccc/resource/technical/document/application_note/6c/a3/24/49/a5/d4/4a/db/CD00164185.pdf/files/CD00164185.pdf/jcr:content/translations/en.CD00164185.pdf

application note, to have idea about the required hardware for debug management.

-Syrine-

Radosław
Senior II
Posted on November 22, 2016 at 13:27

1. swd pins reconfigured, check system periperals in cube mx

2. any sleep mode?

askari.nima
Associate II
Posted on November 22, 2016 at 19:33

I make lots of board. and this is a custom board.

I don't have this problem with previews version. I program another project(make with previews cube) with no problem.

I try to comment this line __HAL_AFIO_REMAP_SWJ_NOJTAG();

my problem solved but SPI3 dosen't work.please see my .ioc file
askari.nima
Associate II
Posted on November 26, 2016 at 07:33

Please help