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

compiler issues with SES imported Keil project

I have installed SES 5.10a and imported ouf Keil project. There are several issues when I try to compile. This is interesting since I am using the "external" build which should be using the Keil ARMCC compiler.

The issue is with the files that contain "C" assembler functions:  hardfault_handler_keil.c and app_error_handler_keil.c

Errors are:

  1. expected '(' after 'asm'
  2. expected ';' after top-level asm block
  3. use of undeclared identifier 'PRESERVE8'

According to the Keil project it is calling the "C" compiler. 

Any ideas?

  • Hi,

    I think it may be better if you direct this question to Segger, unfortunately. I did some attempts here to import SDK examples with the external toolchain option, but ran into a number of other issues that I was not able to easily resolve. Strangely enough, app_error_handler_keil.c compiled without errors for me. I also think ARMCC should have recognized 'PRESERVE8'.

    The blinky example compiled without errors, but failed during linking:

Related