makerdiary / nrf52840-mdk

An Open-Source, Micro Development Kit for IoT Applications using the nRF52840 SoC
https://wiki.makerdiary.com/nrf52840-mdk/
171 stars 42 forks source link

Compiling external/freertos/portable/ARM/nrf52/port.c #48

Closed 13291827129 closed 3 years ago

13291827129 commented 3 years ago

../../../../nrf_sdks/nRF5_SDK_15.2.0_9412b96/external/freertos/portable/ARM/nrf52/port.c:52:7: error: expected '(' before 'void' __ASM void vPortSVCHandler( void ) ^~~~ ../../../../nrf_sdks/nRF5_SDK_15.2.0_9412b96/external/freertos/portable/ARM/nrf52/port.c:64:13: error: stray '#' in program mov r0, #0 ^ ../../../../nrf_sdks/nRF5_SDK_15.2.0_9412b96/external/freertos/portable/ARM/nrf52/port.c:87:13: error: stray '#' in program mov r0, #(configMAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS)) ^ ../../../../nrf_sdks/nRF5_SDK_15.2.0_9412b96/external/freertos/portable/ARM/nrf52/port.c:112:14: error: stray '#' in program tst r14, #0x10 ^ ../../../../nrf_sdks/nRF5_SDK_15.2.0_9412b96/external/freertos/portable/ARM/nrf52/port.c:123:13: error: stray '#' in program mov r0, #(configMAX_SYSCALL_INTERRUPT_PRIORITY << (8 - configPRIO_BITS)) ^

caizelin commented 3 years ago

@13291827129 Solved. Use <sdk>external/freertos/portable/GCC/nrf52/port.c instead if you are using GCC compiler.