CommunityGD32Cores / platform-gd32

PlatformIO platform for ARM-based GD32{F,E,L,W} chips. Work in Progress!
67 stars 28 forks source link

fix ccram for gd32f4xx series #43

Closed antlanc7 closed 1 year ago

antlanc7 commented 1 year ago

I was trying to run the example blink project on a GD32F470VI and it was always going Hard Fault at SystemInit. The generated linker file had the whole 768K of ram contiguous on RAM section, and CCRAM section size to 0 so the RAM section was actually overflowing outside the memory space. I found out that the board generator script was setting the CCRAM section only for GD32F405, GD32F407 and GD32F450, whereas the comment above says that CCRAM should be set for every F4xx except F403, so I fixed the line that is checking for the model. I also regenerated the boards files.

maxgerhardt commented 1 year ago

Thank you for the fix! I somehow didn't get an Email notification for this PR so it took me long too randomly see this. Will merge after CI pass.