This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrF SDK 14.2 + Embedded studio : "stray # in program" error when compiling assembler

Hi guys,

I am working on a nrF52832 project and want to use Segger Embedded Studio since there is a license agreement for nordic based projects.

I am using freertos from nordic SDK 14.2, and I have an error when compiling "port.c" from the freertos driver.

The file "port.c" contains some assembly code. For some reason, Embedded studio and GCC can't compile the file and report the following errors :

stray "#" in program

Do you have any idea what I can do to fix this issue ? I've tried with both clang and gcc assembler and got the same problem.

Thank you,
Best regards
Yves

Related