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

Hardfault error while executing example from BLE Characteristics tutorial

Hi,

I modified the code from the tutorial at devzone.nordicsemi.com/.../ to send measurements from my RHT sensor but encountered some basic difficulties. After fitting the example code from github to my requirements, I tried flashing it with the default memory ranges set in Keil project, but it is generating hardfault error (of course I do it after flashing s130 softdevice). After modifying the ranges the same way as in SoftDevice Specification for my softdevice version (S130_SDS_v2.0), my program flashed properly and doesn't generate hardfault while running but still don't react in any way. So I tried running the example code from github (CompletedCode from BLE characteristics tutorial from Nordic) without any changes (only filling it with the memory ranges from SDS), but it still doesn't give me any reaction as I expect. Changing a number of LED in nrf_gpio_pin_toggle() in timer_timeout_handler() causes no reaction, it still blinks the same LED_0 (number of pins with LEDs are set properly). MCU without flashing softdevice and any BLE utilisation works fine (the program providing the communication via I2C with RHT sensor runs without any problems). I'll be very thankful for any advice what I should do next to run this example.

I'm using:

nRF5_SDK_11.0.0,

BLE 400 with NRF51822 board

Parents
  • Ranges of memory that I used (first line in each option is range for s130, and second for application):

                               iROM:                               iRAM:   
    

    option_1:

                         0x0       0x1B000                0x20000000   0x2080
                         0x1B000   0x25000                0x20002080   0x5F80
    

    option_2:

                         0x0       0x1B000                0x20000000   0x13C8
                         0x1B000   0x25000                0x200013C8   0x6000
    

    option_3:

                         0x0       0x1B000                0x20000000   0x13C8
                         0x1B000   0x25000                0x20002080   0x5F80
    

    I also tried to flash merged hex file

Reply
  • Ranges of memory that I used (first line in each option is range for s130, and second for application):

                               iROM:                               iRAM:   
    

    option_1:

                         0x0       0x1B000                0x20000000   0x2080
                         0x1B000   0x25000                0x20002080   0x5F80
    

    option_2:

                         0x0       0x1B000                0x20000000   0x13C8
                         0x1B000   0x25000                0x200013C8   0x6000
    

    option_3:

                         0x0       0x1B000                0x20000000   0x13C8
                         0x1B000   0x25000                0x20002080   0x5F80
    

    I also tried to flash merged hex file

Children
No Data
Related