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

Parents Reply Children
  • 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:

    APP_TIMER_V2
    APP_TIMER_V2_RTC1_ENABLED
    BOARD_SHIMEI_9TH
    CONFIG_GPIO_AS_PINRESET
    DEBUG
    DEBUG_NRF
    DEVELOP_IN_NRF52833
    FLOAT_ABI_SOFT
    MBEDTLS_CONFIG_FILE=<nrf_crypto_mbedtls_config.h>
    NRF52
    NRF52820_XXAA
    NRFX_COREDEP_DELAY_US_LOOP_CYCLES=3
    NRF52_PAN_74
    NRF_APP_VERSION=0x00000001
    NRF_APP_VERSION_ADDR=0x1D000
    NRF_CRYPTO_MAX_INSTANCE_COUNT=1
    NRF_SD_BLE_API_VERSION=7
    S112
    SOFTDEVICE_PRESENT
    BOARD_PCA10100

    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.

    $PROJ_DIR$\..\..\..\config
    $PROJ_DIR$\..\..\..\..\..\..\components
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_advertising
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_dtm
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_racp
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_services\ble_ancs_c
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_services\ble_ans_c
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_services\ble_bas
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_services\ble_bas_c
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_services\ble_cscs
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_services\ble_cts_c
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_services\ble_dfu
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_services\ble_dis
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_services\ble_gls
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_services\ble_hids
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_services\ble_hrs
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_services\ble_hrs_c
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_services\ble_hts
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_services\ble_ias
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_services\ble_ias_c
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_services\ble_lbs
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_services\ble_lbs_c
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_services\ble_lls
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_services\ble_nus
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_services\ble_nus_c
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_services\ble_rscs
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_services\ble_rscs_c
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\ble_services\ble_tps
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\common
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\nrf_ble_gatt
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\nrf_ble_gq
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\nrf_ble_qwr
    $PROJ_DIR$\..\..\..\..\..\..\components\ble\peer_manager
    $PROJ_DIR$\..\..\..\..\..\..\components\boards
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\atomic
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\atomic_fifo
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\atomic_flags
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\balloc
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\bootloader\ble_dfu
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\bsp
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\button
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\cli
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\crc16
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\crc32
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\crypto
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\crypto\backend\cc310
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\crypto\backend\cc310_bl
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\crypto\backend\cifra
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\crypto\backend\mbedtls
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\crypto\backend\micro_ecc
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\crypto\backend\nrf_hw
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\crypto\backend\nrf_sw
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\crypto\backend\oberon
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\crypto\backend\optiga
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\csense
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\csense_drv
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\delay
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\ecc
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\experimental_section_vars
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\experimental_task_manager
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\fds
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\fstorage
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\gfx
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\gpiote
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\hardfault
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\hci
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\led_softblink
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\log
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\log\src
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\low_power_pwm
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\mem_manager
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\memobj
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\mpu
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\mutex
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\pwm
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\pwr_mgmt
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\queue
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\ringbuf
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\scheduler
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\sdcard
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\sensorsim
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\slip
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\sortlist
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\spi_mngr
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\stack_guard
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\stack_info
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\strerror
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\svc
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\timer
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\twi_mngr
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\twi_sensor
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\usbd
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\usbd\class\audio
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\usbd\class\cdc
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\usbd\class\cdc\acm
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\usbd\class\hid
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\usbd\class\hid\generic
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\usbd\class\hid\kbd
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\usbd\class\hid\mouse
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\usbd\class\msc
    $PROJ_DIR$\..\..\..\..\..\..\components\libraries\util
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\ndef\conn_hand_parser
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\ndef\conn_hand_parser\ac_rec_parser
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\ndef\conn_hand_parser\ble_oob_advdata_parser
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\ndef\conn_hand_parser\le_oob_rec_parser
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\ndef\connection_handover\ac_rec
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\ndef\connection_handover\ble_oob_advdata
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\ndef\connection_handover\ble_pair_lib
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\ndef\connection_handover\ble_pair_msg
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\ndef\connection_handover\common
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\ndef\connection_handover\ep_oob_rec
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\ndef\connection_handover\hs_rec
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\ndef\connection_handover\le_oob_rec
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\ndef\generic\message
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\ndef\generic\record
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\ndef\launchapp
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\ndef\parser\message
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\ndef\parser\record
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\ndef\text
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\ndef\uri
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\platform
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\t2t_lib
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\t2t_parser
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\t4t_lib
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\t4t_parser\apdu
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\t4t_parser\cc_file
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\t4t_parser\hl_detection_procedure
    $PROJ_DIR$\..\..\..\..\..\..\components\nfc\t4t_parser\tlv
    $PROJ_DIR$\..\..\..\..\..\..\components\softdevice\common
    $PROJ_DIR$\..\..\..\..\..\..\components\softdevice\s112\headers
    $PROJ_DIR$\..\..\..\..\..\..\components\softdevice\s112\headers\nrf52
    $PROJ_DIR$\..\..\..\..\..\..\components\toolchain\cmsis\include
    $PROJ_DIR$\..\..\..\..\..\..\external\fprintf
    $PROJ_DIR$\..\..\..\..\..\..\external\mbedtls\include
    $PROJ_DIR$\..\..\..\..\..\..\external\nrf_cc310\include
    $PROJ_DIR$\..\..\..\..\..\..\external\nrf_oberon
    $PROJ_DIR$\..\..\..\..\..\..\external\nrf_oberon\include
    $PROJ_DIR$\..\..\..\..\..\..\external\nrf_tls\mbedtls\nrf_crypto\config
    $PROJ_DIR$\..\..\..\..\..\..\external\segger_rtt
    $PROJ_DIR$\..\..\..\..\..\..\external\utf_converter
    $PROJ_DIR$\..\..\..\..\..\..\integration\nrfx
    $PROJ_DIR$\..\..\..\..\..\..\integration\nrfx\legacy
    $PROJ_DIR$\..\..\..\..\..\..\modules\nrfx
    $PROJ_DIR$\..\..\..\..\..\..\modules\nrfx\drivers\include
    $PROJ_DIR$\..\..\..\..\..\..\modules\nrfx\hal
    $PROJ_DIR$\..\..\..\..\..\..\modules\nrfx\mdk
    $PROJ_DIR$\..\config

    APP_TIMER_V2
    APP_TIMER_V2_RTC1_ENABLED
    CONFIG_GPIO_AS_PINRESET
    DEBUG
    DEBUG_NRF
    FLOAT_ABI_SOFT
    MBEDTLS_CONFIG_FILE=<nrf_crypto_mbedtls_config.h>
    NRF52
    NRF52820_XXAA
    NRF52_PAN_74
    NRF_APP_VERSION=0x00000001
    NRF_APP_VERSION_ADDR=0x1D000
    NRF_CRYPTO_MAX_INSTANCE_COUNT=1
    NRF_SD_BLE_API_VERSION=7
    S112
    SOFTDEVICE_PRESENT
    BOARD_PCA10100

    2055.sdk_config.h

Related