This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SWD floats, STM32F2, code don't run

1. I am using STM32F205, with serial wire debug, composing reset, clk, data & gnd pins.
2. Whenever I connect debugger my code runs perfectly. But without debugger, sometimes code just don't run. I am toggling a pin which never happens. it happens only sometimes.
3. No other clk init is done, so default 16Mhz clck, as soon as MCU power up, I keep on toggling pin. No code in between so couldn't be memory access other or anything. So pin toggle.
3. I have 0.1uf cap on reset pin & 10k pull down on boot pins.
4. However I have left swclk & swdata pins float.
5. I had checked below link & connected 10k pull down to clk & 10k pull-up to data.
support.code-red-tech.com/.../HardwareDebugConnections

6. I will check multiple times before reaching conclusion, but any idea on this.

Parents
  • Why play with the capacitor? You don't get any time constant without it - and unless it leaks a lot or have infinite capacitance it can't block the reset line from going high if there is an internal or external pull-up that can charge the capacitor.

    Is the supply voltage available on every single supply pin of the chip? And is the supply voltage above the configured Vpor/Vbor?

    And if your chip has a IRROFF pin - what is the state? If available and connected to VDD, then you need an external supervisor chip.

    And if your chip has a REGOFF pin - what is the state?

    Have you walked through all chapters related to power modes and reset in the datasheet and verified all conditions?

Reply
  • Why play with the capacitor? You don't get any time constant without it - and unless it leaks a lot or have infinite capacitance it can't block the reset line from going high if there is an internal or external pull-up that can charge the capacitor.

    Is the supply voltage available on every single supply pin of the chip? And is the supply voltage above the configured Vpor/Vbor?

    And if your chip has a IRROFF pin - what is the state? If available and connected to VDD, then you need an external supervisor chip.

    And if your chip has a REGOFF pin - what is the state?

    Have you walked through all chapters related to power modes and reset in the datasheet and verified all conditions?

Children
No data