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

Assembler error in segger embedded studio while importing IAR project

Hi,

I tried importing existing project (In IAR) to Segger embedded studio, And getting following error.

4> C:/Users/sv51949/Documents/TAG/CodeBase/Release_1_4/nRF5_SDK_15.2.0_9412b96/nRF5_SDK_15.2.0_9412b96/examples/ble_peripheral/ble_app_hrs/pca10040/s132/ses/_build/app_error_handler_iar.asm: Assembler messages:
4> C:/Users/sv51949/Documents/TAG/CodeBase/Release_1_4/nRF5_SDK_15.2.0_9412b96/nRF5_SDK_15.2.0_9412b96/examples/ble_peripheral/ble_app_hrs/pca10040/s132/ses/_build/app_error_handler_iar.asm:48: Error: bad instruction `data '
4> C:/Users/sv51949/Documents/TAG/CodeBase/Release_1_4/nRF5_SDK_15.2.0_9412b96/nRF5_SDK_15.2.0_9412b96/examples/ble_peripheral/ble_app_hrs/pca10040/s132/ses/_build/app_error_handler_iar.asm:50: Error: bad instruction `dc32 16385'
Build failed

When code is built, Ses compiling the files but giving error in assembler. Default example projects are working fine with SES.

Can you help resolving the error.

Thanks in advance.


 

Parents
  • SES uses the GCC assembler; presumably, IAR have their own assembler?

    Different Assemblers do not (necessarily) share the same - or even compatible - syntax.

    Assembler code is, almost by definition, not portable - so you are going to have to port your code.

    But note the file name:

    app_error_handler_iar.asm

    It has "_iar" in the name to tell you that it's specific to IAR - so you need to change that to the appropriate version for SES/GCC.

    I suggest that you look at one of the supplied SDK examples to see what that is ...

Reply
  • SES uses the GCC assembler; presumably, IAR have their own assembler?

    Different Assemblers do not (necessarily) share the same - or even compatible - syntax.

    Assembler code is, almost by definition, not portable - so you are going to have to port your code.

    But note the file name:

    app_error_handler_iar.asm

    It has "_iar" in the name to tell you that it's specific to IAR - so you need to change that to the appropriate version for SES/GCC.

    I suggest that you look at one of the supplied SDK examples to see what that is ...

Children
Related