-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't compile for target F072 (cannot move location counter backwards) #66
Comments
+1 |
Tested modified STM32F072xB.ld can be compiled through, But this does not seem to be the optimal solution. |
How did you do this? Did you adjust the size of flash0 and flash7? |
I adjusted falsh0 and falsh7, but the total amount is limited to 128k, which is not a big problem. But to compile, I have to adjust ram0, which is obviously a problem. I wonder, how does @hugen79 do it? |
Just trying to guess, I could be entirely wrong but maybe @hugen79 is using a compiler on a different platform which produces an image with a slightly smaller RAM footprint which doesn't exceed the size specified in the file you linked. |
I added a linker arg to dump the memory usage and it shows that both flash and ram regions overflow when building the project for STM32F072xB with default options enabled. Removing SD card support allows to save a little flash and I will now analyse how we can save RAM.
For anyone wanting to help diagnose this issue, you can virtually increase ram0 to 32k on line 30 of STM32F072xB.ld so the linker doesn't crash. This will print memory usage but obviously it's just for debug purposes as the hardware RAM won't magically increase. |
I've tried it on Windows/Linux/Docker and it always ends the same. |
The latest news! I use https://github.com/DiSlord/NanoVNA-D ChibiOS folder to replace after successful compilation. |
Just to be sure: did you replace the ChibiOS directory in this project with the one in DiSlord's project and compile again? Well, thanks, this workaround is a bit dirty but it works and even solves the hal_lld_backup_domain_init issue. Edit: it compiles but does not run 😔 |
I burned and verified the compiled firmware. Unfortunately, it worked but the measurement function was basically broken. |
Hi, don't know is still valid, but the last commit, which can be compilable for me is: commit 2efd945 (tag: 1.0.70) To do that, some feature blocking is needed (base on analysis - what has been added during merge from The limit is the size of RAM and Flash, which is not changable w/o uC changing :) The status after the build: text data bss dec hex filename If someone is interested in - patch attached. Hopefully will help you. Br, Tomek (SP7TEP) 0001-Build-adjust-configuration-to-make-code-compilable-f.zip |
just one info from USE_LDOPT=--print-memory-usage: Linking build/ch.elf |
Ok, finally found a solution. To optimize a RAM memory usage there's only one way just to reduce the sweep point a bit off. any reduction is multiply by 16, Also I've switched off the SERIAL CONSOLE to keep SD CARD and all measure module enabled. New patch attached. ALSO: Haven't had possibility to test this on NanoVna-H (HW platform 3.6) , like prev. one Cheers Tomek 0002-Build-adjust-configuration-to-make-code-compilable-f.zip |
Thank you, Tomasz! |
Hello,
When trying to compile this project for NanoVNA-H (
TARGET=F072
), the build fails with this error:I should add that I commented out the following line in the Makefile to not encounter the problem described in this issue:
#UDEFS+= -DVNA_AUTO_SELECT_RTC_SOURCE
The text was updated successfully, but these errors were encountered: