Skip to main content
askari.nima
Associate III
November 22, 2016
Question

Stm32f1cube bug on debug

  • November 22, 2016
  • 4 replies
  • 953 views
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
    This topic has been closed for replies.

    4 replies

    Nesrine M_O
    Associate
    November 22, 2016
    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
    Associate II
    November 22, 2016
    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 III
    November 22, 2016
    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 III
    November 26, 2016
    Posted on November 26, 2016 at 07:33

    Please help