You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A STM32G030K8 has 64 KB flash, but the generated definitions list 32 KB. This gets propagated into the metapac definitions and ends up making the memory.x define less flash than is actually available, resulting in link failures when the resulting firmware is larger than 32 KB.
This appears to be happening because the STM32Cubeprog definition has two configurations, but the second one is the one with the full flash (the 0x20 occurence) size while stm32-data-gen uses the first unconditionally. Then it ends up limiting the region size to less than the total flash size (since there's no 2nd bank). I haven't looked to see if this is actually coming up with any other chips; this is just the one I stumbled on.
The text was updated successfully, but these errors were encountered:
I think the cubeprog xmls are not a good data source for this. It's impossible to know which "configuration" is the right one without actually reading registers from a live connected chip. We have to get the data from somewhere else or enter it manually...
A STM32G030K8 has 64 KB flash, but the generated definitions list 32 KB. This gets propagated into the metapac definitions and ends up making the memory.x define less flash than is actually available, resulting in link failures when the resulting firmware is larger than 32 KB.
This appears to be happening because the STM32Cubeprog definition has two configurations, but the second one is the one with the full flash (the 0x20 occurence) size while stm32-data-gen uses the first unconditionally. Then it ends up limiting the region size to less than the total flash size (since there's no 2nd bank). I haven't looked to see if this is actually coming up with any other chips; this is just the one I stumbled on.
The text was updated successfully, but these errors were encountered: