2024-07-11 04:50 AM
Hi there,
I recently transitioned my project from the STM32L0CBT6 chip, which has a 128KB flash size, to the STM32L072CZ variant with 192KB of flash memory. As I progressed with my project, the only modification I made was adjusting the flash memory region length in the linker script file to accommodate the larger capacity of the CZ variant.
Here is the snippet of the updated linker script:
MEMORY
{
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 192K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
}
Given that the difference between the two variants lies in their flash memory size and the startup files are set for stm32l0xx , I am considering whether I can retain the .ioc file and startup files originally configured for the CB variant. I am relatively new to STM32 development and would appreciate confirmation that this approach is suitable for my project.
Thank you.
Solved! Go to Solution.
2024-07-11 07:10 AM
If the only difference is the flash size, you can use the new chip with the previous IOC without any modification. You don't even need to update the flash size (but doing so won't hurt anything).
2024-07-11 07:10 AM
If the only difference is the flash size, you can use the new chip with the previous IOC without any modification. You don't even need to update the flash size (but doing so won't hurt anything).