Upgrade from STM32L432KB to STM32L432KC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-24 01:04 AM
Hi Everyone,
I'm upgrading our firmware from STM32L432kb with 128k flash memory to STM32L432KC with 256k flash memory. both micro controllers are exactly the same except for the flash memory size difference.
To accommodate this change I changed my controller from project properties to the STM32l432KCu and changed flash memory size from 128k to 256k. we have reserved last page of memory as persistent(similar to EEPROM) memory.
I'm getting PGAErr and PGSErr even before the debug session is initiated. i.e. when debugger comes to halt at init those 2 flags are already set.
we can resolve the issue by clearing the error flags before other flash operations start. but we are concerned that ignoring this issue will bite us back in future.
can anyone help me with understanding what might be causing the issue?
Solved! Go to Solution.
- Labels:
-
STM32Cube MCU Packages
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-08 03:19 AM - edited ‎2023-11-08 03:19 AM
The issue is related to debug configuration. While we changed controller from settings to STM32L432KCux we did not change it in debug configuration. this solved the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-24 01:41 AM
Sounds much like debugger-specific issue. CubeIDE?
You can try to run the debugger without actually downloading the program (hot-connect or something similar) to find out if it makes any difference.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-07-24 02:12 AM
Thanks for your reponse @waclawek.jan.
Development Environment is Cube IDE, I'm using Segger Jlink as a debugger. I did try debugging the firmware on a Nucleo32 board with same microcontroller, it has inbuilt Stlink debugger, Surprisingly it did not throw the PGAErr or PGSErr, but I'm not sure if it's capable enough to handle our firmware debugging needs.
your comment gave me some Ideas. I'll try them out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-11-08 03:19 AM - edited ‎2023-11-08 03:19 AM
The issue is related to debug configuration. While we changed controller from settings to STM32L432KCux we did not change it in debug configuration. this solved the issue.