Closed tuupola closed 3 years ago
I would like to provide variable called VARIANT
, in Makefile.SoC.xxx to handle the small differences.
If VARIANT := lite
, it will use another linker script for this board.
Is it also possible to set the SOC to gd32vf103 by default for the longan nano board?
@fanghuaqi Ok. Do you want me to take shot at this? Would be a good way for me to learn more about the SDK build system.
@fanghuaqi Ok. Do you want me to take shot at this? Would be a good way for me to learn more about the SDK build system.
OK, you can create your feature branch and implement this feature, I can review it.
Is it also possible to set the SOC to gd32vf103 by default for the longan nano board?
If you want to set the default board to longan nano, there is a way to do it without change any code base.
See https://doc.nucleisys.com/nuclei_sdk/develop/appdev.html#set-default-make-options
If you want to set the default board to longan nano, there is a way to do it without change any code base.
@fanghuaqi I want to do it the other way. If one of the gd32vf103 boards are selected, than the SOC should automaticly be set to gd32vf103.
If you want to set the default board to longan nano, there is a way to do it without change any code base.
@fanghuaqi I want to do it the other way. If one of the gd32vf103 boards are selected, than the SOC should automaticly be set to gd32vf103.
Currently it is not possible, BOARD
variable is defined under SOC
, so the SOC
variable is a must, and also the BOARD
name could be the same for different SOC
s
Fixed by #18
Currently there is two known versions of Longan Nano. The official version has GD32VF103CBT6 which has 128K flash and 32K sram. Apparently some Aliexpress sellers also make version with GD32VF103C8T6 which has 64K flash and 20K sram. This is also sometimes referred as the Longan Nano Lite.
Currently the Nuclei SDK linker script for Longan Nano assumes the Lite version. This causes the linking to fail with memory heavy applications.
When changing the linker script to support 32kB sram linking succeeds.
This issue is to start discussion how to support the different variations of the Longan Nano board. Separate linker scripts chosen with a Makefile variable is one possibility.
Build system already supports
LINKER_SCRIPT
variable. Can this be used or should a new variable be introduced?