20 lines
3.5 KiB
Plaintext
20 lines
3.5 KiB
Plaintext
# Example:
|
|
|
|
|
|
riscv-none-embed-g++ -o .pio/build/ch32v003f4p6_evt_r0/src/main.o -c -std=gnu++17 -fno-threadsafe-statics -fno-rtti -fno-exceptions -fno-use-cxa-atexit -Os -g -Wall -msmall-data-limit=0 -msave-restore -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -Wno-comment -march=rv32ecxw -mabi=ilp32e -DPLATFORMIO=60116 -DCH32V003F4 -DCH32V00X -DCH32V00x -DCH32V003 -D__PIO_CPP_SUPPORT__ -Iinclude -Isrc -I/home/zaubentrucker/.platformio/packages/framework-wch-noneos-sdk/Core/ch32v00x -I/home/zaubentrucker/.platformio/packages/framework-wch-noneos-sdk/Peripheral/ch32v00x/inc -I/home/zaubentrucker/.platformio/packages/framework-wch-noneos-sdk/Peripheral/ch32v00x/src -I/home/zaubentrucker/.platformio/packages/framework-wch-noneos-sdk/Startup -I/home/zaubentrucker/.platformio/packages/framework-wch-noneos-sdk/System/ch32v00x -I/home/zaubentrucker/.platformio/packages/framework-wch-noneos-sdk/Debug/ch32v00x src/main.cpp
|
|
|
|
|
|
|
|
# My code:
|
|
|
|
riscv-none-embed-g++ -o .pio/build/genericCH32V003F4P6/src/main.o -c -std=gnu++17 -fno-threadsafe-statics -fno-rtti -fno-exceptions -fno-use-cxa-atexit -Os -g -Wall -msmall-data-limit=0 -msave-restore -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -Wno-comment -march=rv32ecxw -mabi=ilp32e -DPLATFORMIO=60116 -DCH32V003F4 -DCH32V00X -DCH32V00x -DCH32V003 -D__PIO_CPP_SUPPORT__ -Iinclude -Isrc -I/home/zaubentrucker/.platformio/packages/framework-wch-noneos-sdk/Core/ch32v00x -I/home/zaubentrucker/.platformio/packages/framework-wch-noneos-sdk/Peripheral/ch32v00x/inc -I/home/zaubentrucker/.platformio/packages/framework-wch-noneos-sdk/Peripheral/ch32v00x/src -I/home/zaubentrucker/.platformio/packages/framework-wch-noneos-sdk/Startup -I/home/zaubentrucker/.platformio/packages/framework-wch-noneos-sdk/System/ch32v00x -I/home/zaubentrucker/.platformio/packages/framework-wch-noneos-sdk/Debug/ch32v00x src/main.cpp
|
|
src/main.cpp: In function 'int main()':
|
|
src/main.cpp:18:27: error: 'NVIC_PriorityGroup_2' was not declared in this scope
|
|
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
|
|
^~~~~~~~~~~~~~~~~~~~
|
|
src/main.cpp:18:27: note: suggested alternative: 'NVIC_PriorityGroup_1'
|
|
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
|
|
^~~~~~~~~~~~~~~~~~~~
|
|
NVIC_PriorityGroup_1
|
|
riscv-none-embed-gcc-ar rc .pio/build/genericCH32V003F4P6/libFrameworkNoneOSVariant.a .pio/build/genericCH32V003F4P6/FrameworkNoneOSVariant/ch32v00x_adc.o .pio/build/genericCH32V003F4P6/FrameworkNoneOSVariant/ch32v00x_dbgmcu.o .pio/build/genericCH32V003F4P6/FrameworkNoneOSVariant/ch32v00x_dma.o .pio/build/genericCH32V003F4P6/FrameworkNoneOSVariant/ch32v00x_exti.o .pio/build/genericCH32V003F4P6/FrameworkNoneOSVariant/ch32v00x_flash.o .pio/build/genericCH32V003F4P6/FrameworkNoneOSVariant/ch32v00x_gpio.o .pio/build/genericCH32V003F4P6/FrameworkNoneOSVariant/ch32v00x_i2c.o .pio/build/genericCH32V003F4P6/FrameworkNoneOSVariant/ch32v00x_iwdg.o .pio/build/genericCH32V003F4P6/FrameworkNoneOSVariant/ch32v00x_misc.o .pio/build/genericCH32V003F4P6/FrameworkNoneOSVariant/ch32v00x_opa.o .pio/build/genericCH32V003F4P6/FrameworkNoneOSVariant/ch32v00x_pwr.o .pio/build/genericCH32V003F4P6/FrameworkNoneOSVariant/ch32v00x_rcc.o .pio/build/genericCH32V003F4P6/FrameworkNoneOSVariant/ch32v00x_spi.o .pio/build/genericCH32V003F4P6/FrameworkNoneOSVariant/ch32v00x_tim.o .pio/build/genericCH32V003F4P6/FrameworkNoneOSVariant/ch32v00x_usart.o .pio/build/genericCH32V003F4P6/FrameworkNoneOSVariant/ch32v00x_wwdg.o
|