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

the processor has escalated a configurable-priority exception to hardfault

Hi.

I am developing on a custom board using nRF82820 / SDK 17.0.2.

A project was created by modifying examples \ble_peripheral\ble_app_gls.

There is no project for nRF52820 in ble_app_gls, so I modified some parts.

There was no error when compiling, but the following error occurred after downloading to the board.

IAR : 8.50.6

Attach the created project together. Can you tell what's wrong??

0535.Project.7z

  • Hi.

    I'm unable to download the project. Could you please upload the attachment again?

    Br,
    Joakim

  • Hi.

    I reattached the project file.

    It contains only the IAR workspace and main, not the entire project that includes the SDK.

    App.7z

  • Hi,

    I see that you have defined your own board file:

    And your list over preprocessor defines looks like this now:

    Are you using a nRF52820 on this SHIMEI_9TH board? If yes, then you need to remove these defines:

    DEVELOP_IN_NRF52833

    BOARD_PCA10100 (you should not use multiple board files)

    NRFX_COREDEP_DELAY_US_LOOP_CYCLES=3

    More information about this can be found at this page.

    Also make sure that S112 v7.2.0 is flashed to the chip.

  • Hi,

    I corrected the part you told me, but I still have the same problem.

    I am changing it to "nRF52810 -> nRF52820", not "nRF52833 -> nRF52820".

    In this case, is there anything else that needs to be changed?

    I have tried using the example code with nothing modified, but the same symptom occurs.

    Also attach the modified sdk_config.h for nRF52820.

    2055.sdk_config.h

  • Hi,

    I believe I found the issue. 

    In your project, in the nRF_Oberon_Crypto folder, you are using liboberon_3.0.6.a with hard-float.

    You need to remove that, and add the soft-float instead. You can find the liboberon_3.0.6.a soft-float lib in the folder:

    SDK_folder\external\nrf_oberon\lib\cortex-m4\soft-float

    You should also remove the libnrf_cc310_0.9.13.a lib in the nrf_cc310 folder

1 2