Migrated from STM32CubeIDE V1.6 to CubeIDE V1.7 and now an F103C6T6 application refuses to debug consistently and continuously resets. Using RTOS, CAN and timers 1 & 3. Any ideas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-27 10:04 PM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-28 6:35 PM
Found it. It seems that by default the IWDG is on so is causing resets. Solved by including the IWDG initialisation and servicing resets to it in the main thread. Something must have changed in the startup(F103C6tx) to have done this as this project was working properly when built with MXCubeIDE V1.6.0
Anyway all solved and working again. I guess having the watchdog running isn't such a bad thing anyway.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-28 11:07 AM
> F103C6T6
knock-off chip and/or programmer?
> refuses to debug consistently
Perhaps provide a more detailed description.
> continuously resets
Determine the cause of the reset in RCC->CSR.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-28 4:58 PM
Could only be a knock off chip and / or programmer if Farnell are supplying knock offs which I very much doubt. This worked perfectly prior to updating from V1.6.1 to 1.7.0. RCC_CSR shows reset being caused by Low Power management and software resets. (I had already been down that path).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-08-28 6:35 PM
Found it. It seems that by default the IWDG is on so is causing resets. Solved by including the IWDG initialisation and servicing resets to it in the main thread. Something must have changed in the startup(F103C6tx) to have done this as this project was working properly when built with MXCubeIDE V1.6.0
Anyway all solved and working again. I guess having the watchdog running isn't such a bad thing anyway.
