Skip to content

Commit

Permalink
examples: randomly setup some project settings
Browse files Browse the repository at this point in the history
Signed-off-by: Huaqi Fang <578567190@qq.com>
  • Loading branch information
fanghuaqi committed Dec 30, 2023
1 parent 02f4606 commit dc53e71
Show file tree
Hide file tree
Showing 14 changed files with 53 additions and 9 deletions.
7 changes: 7 additions & 0 deletions examples/coremark/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,21 @@ build_flags = ${common.300_flags} -DITERATIONS=4000

[env:gd32vf103v_rvstar]
board = gd32vf103v_rvstar
board_build.sysclk = 96000000
board_build.clksrc = hxtal
board_build.stdclib = libncrt_small
build_flags = ${common.200_flags} -DITERATIONS=4000

[env:gd32vf103v_eval]
board = gd32vf103v_eval
board_build.sysclk = 108000000
board_build.clksrc = hxtal
build_flags = ${common.200_flags} -DITERATIONS=4000

[env:gd32vf103c_longan_nano]
board = gd32vf103c_longan_nano
board_build.sysclk = 72000000
board_build.clksrc = irc8m
build_flags = ${common.200_flags} -DITERATIONS=4000

[env:gd32vf103c_longan_nano_lite]
Expand Down
16 changes: 14 additions & 2 deletions examples/cpuinfo/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,33 @@ monitor_speed = 115200

[env:nuclei_fpga_eval]
board = nuclei_fpga_eval
board_build.download = ilm
board_build.download = flashxip
board_build.stdclib = libncrt_small

[env:gd32vw553h_eval]
board = gd32vw553h_eval
# Changed to use sram download mode
board_build.download = sram
board_build.download = flashxip
board_build.stdclib = libncrt_nano
board_build.clksrc = hxtal

[env:gd32vf103v_rvstar]
board = gd32vf103v_rvstar
board_build.sysclk = 108000000
board_build.clksrc = hxtal
board_build.stdclib = libncrt_small

[env:gd32vf103v_eval]
board = gd32vf103v_eval
board_build.sysclk = 96000000
board_build.clksrc = hxtal
board_build.stdclib = libncrt_fast

[env:gd32vf103c_longan_nano]
board = gd32vf103c_longan_nano
board_build.sysclk = 96000000
board_build.clksrc = hxtal
board_build.stdclib = libncrt_balanced

[env:gd32vf103c_longan_nano_lite]
board = gd32vf103c_longan_nano
Expand Down
4 changes: 3 additions & 1 deletion examples/demo_dsp/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ board_build.download = ilm
board_build.core = n307fd
board_build.nmsis_lib_arch = rv32imafdc
build_flags =
board_build.stdclib = libncrt_small

[env:gd32vw553h_eval]
board = gd32vw553h_eval
# Changed to use sram download mode
board_build.download = sram
board_build.download = flashxip
# you can change to use different toolchain
board_build.toolchain = nuclei_gnu
board_build.arch_ext = _zba_zbb_zbc_zbs_xxldspn1x
Expand All @@ -38,6 +39,7 @@ build_flags =
[env:gd32vf103v_rvstar]
board = gd32vf103v_rvstar
build_flags =
board_build.stdclib = libncrt_fast

[env:gd32vf103v_eval]
board = gd32vf103v_eval
Expand Down
5 changes: 5 additions & 0 deletions examples/demo_eclic/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,17 @@ board_build.download = ilm
board = gd32vw553h_eval
# Changed to use sram download mode
board_build.download = sram
board_build.sysclk = 48000000
board_build.clksrc = irc16m
board_build.stdclib = libncrt_small

[env:gd32vf103v_rvstar]
board = gd32vf103v_rvstar
board_build.stdclib = libncrt_nano

[env:gd32vf103v_eval]
board = gd32vf103v_eval
board_build.stdclib = newlib_fast

[env:gd32vf103c_longan_nano]
board = gd32vf103c_longan_nano
Expand Down
3 changes: 2 additions & 1 deletion examples/demo_nice/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ monitor_speed = 115200

[env:nuclei_fpga_eval]
board = nuclei_fpga_eval
board_build.download = ilm
board_build.download = flash
board_build.stdclib = newlib_fast
1 change: 1 addition & 0 deletions examples/demo_timer/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ board_build.download = ilm
board = gd32vw553h_eval
# Changed to use sram download mode
board_build.download = sram
board_build.stdclib = libncrt_small

[env:gd32vf103v_rvstar]
board = gd32vf103v_rvstar
Expand Down
4 changes: 4 additions & 0 deletions examples/dhrystone/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,18 @@ build_flags = ${common.compile_flags}
board = nuclei_fpga_eval
# Changed to use ilm download mode
board_build.download = ilm
board_build.core = n300f
board_build.stdclib = newlib_small

[env:gd32vw553h_eval]
board = gd32vw553h_eval
# Changed to use sram download mode
board_build.download = sram
board_build.stdclib = newlib_small

[env:gd32vf103v_rvstar]
board = gd32vf103v_rvstar
board_build.stdclib = libncrt_small

[env:gd32vf103v_eval]
board = gd32vf103v_eval
Expand Down
2 changes: 2 additions & 0 deletions examples/freertos_demo/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ board_build.rtos = freertos
[env:nuclei_fpga_eval]
board = nuclei_fpga_eval
board_build.download = ilm
board_build.core = n300
board_build.arch_ext = _zba_zbb_zbc_zbs

[env:gd32vw553h_eval]
board = gd32vw553h_eval
Expand Down
4 changes: 3 additions & 1 deletion examples/helloworld/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ monitor_speed = 115200

[env:nuclei_fpga_eval]
board = nuclei_fpga_eval
board_build.download = ilm
board_build.download = flashxip
board_build.stdclib = newlib_nano

[env:gd32vf103v_rvstar]
board = gd32vf103v_rvstar
board_build.stdclib = newlib_small

[env:gd32vf103v_eval]
board = gd32vf103v_eval
Expand Down
5 changes: 4 additions & 1 deletion examples/rtthread_demo/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ debug_build_flags = -O3 -g
[env:nuclei_fpga_eval]
board = nuclei_fpga_eval
board_build.download = ilm
board_build.core = n305
board_build.core = n307
board_build.stdclib = newlib_small

[env:gd32vw553h_eval]
board = gd32vw553h_eval
# Changed to use sram download mode
board_build.download = sram
board_build.sysclk = 48000000
board_build.clksrc = irc16m

[env:gd32vf103v_rvstar]
board = gd32vf103v_rvstar
Expand Down
2 changes: 1 addition & 1 deletion examples/rtthread_msh/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ build_flags = -O3
[env:nuclei_fpga_eval]
board = nuclei_fpga_eval
board_build.download = ilm
board_build.core = n305
board_build.core = n900fd

[env:gd32vw553h_eval]
board = gd32vw553h_eval
Expand Down
4 changes: 2 additions & 2 deletions examples/smphello/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ monitor_speed = 115200

[env:nuclei_fpga_eval]
board = nuclei_fpga_eval
board_build.core = nx900fd
board_build.core = nx900f
board_build.download = sram
board_build.smp = 4
board_build.stacksz = 4k
board_build.heapsz = 2k
board_build.boot_hartid = 0
board_build.boot_hartid = 1

4 changes: 4 additions & 0 deletions examples/ucosii_demo/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ board_build.rtos = ucosii

[env:nuclei_fpga_eval]
board = nuclei_fpga_eval
board_build.download = ilm
board_build.core = n200

[env:gd32vw553h_eval]
board = gd32vw553h_eval
# Changed to use sram download mode
board_build.core = n300f
board_build.arch_ext =
board_build.download = sram

[env:gd32vf103v_rvstar]
Expand Down
1 change: 1 addition & 0 deletions examples/whetstone/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ build_flags = ${common.compile_flags}
board = nuclei_fpga_eval
# Changed to use ilm download mode
board_build.download = ilm
board_build.core = n300f

[env:gd32vw553h_eval]
board = gd32vw553h_eval
Expand Down

0 comments on commit dc53e71

Please # to comment.