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

Compilation Errors in "nrf52840.h" file like "Expected an Identifier"

Hi Team,

We are trying to compile the code with my changes, that changes are normal changes only.

But we are getting below errors in "nrf52840.h" . But we didn't do any changes in that file.

    " Error[Pe040]: expected an identifier D:\Nrf52840\nrf16\modules\nrfx\mdk\nrf52840.h 1442" .

What else changes causing this issues.Is there any constant variables definitions or static variables declarations causing this issue.

Could any one help me out on this issue. Here with attached the error screen shots for verification.

Regards,

Srinivas.V

Parents
  • Not seen this issue before, I recommend to go back when it worked and see exactly which changes you did to make this fail. You may also check out Segger Embedded Studio to check if the same issue occurs there.

    Best regards,
    Kenneth

  • Hi Kenneth,

    Thanks for your reply. we have found the root cause for the issue, it was due to multiple inclusion of Header files which contains the repeated data.

    Apart from that we have some other issues, i am describing here,

     1. In debug mode some time my code is hitting the HardFault_Handler, and it is not showing any call stack, how to know the which function or instruction causing this issue.

    2. Some times when we put the break points and debugging the code(Flash storage and Crypto), it is hitting the app_error_fault_handler() and resetting the board, without breakpoints it is not hitting this function and not resetting.Some thing we need to enable to make it work or any IAR Changes are required.

    Here with i am attaching the screen shots for the both issues,

    Regards,

    Srinivas.V

Reply
  • Hi Kenneth,

    Thanks for your reply. we have found the root cause for the issue, it was due to multiple inclusion of Header files which contains the repeated data.

    Apart from that we have some other issues, i am describing here,

     1. In debug mode some time my code is hitting the HardFault_Handler, and it is not showing any call stack, how to know the which function or instruction causing this issue.

    2. Some times when we put the break points and debugging the code(Flash storage and Crypto), it is hitting the app_error_fault_handler() and resetting the board, without breakpoints it is not hitting this function and not resetting.Some thing we need to enable to make it work or any IAR Changes are required.

    Here with i am attaching the screen shots for the both issues,

    Regards,

    Srinivas.V

Children
Related