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

S130 crashes on Fujitsu module with 16 KB of RAM

Hi all,

I'm working with the Nordic nRF51422 DK that has the nRF51422 chip with 32 KB of RAM. My application works great on it using the SoftDevice S130 as BLE stack.

Our final product is based on Fujitsu MBH7BLZ07 who has nRF51822 with 16 KB of RAM. I know that S130 uses 10 KB of RAM but my application fits in 6 KM of RAM.

We are facing with random crashes (Hard fault handler is called) on the Fujitsu module while application works fine on Nordic DK. To reduce our application load at minimum we commented all functions and leave only BLE related functions so that the main is the following :

ble_stack_init(); scheduler_init();

// Enter main loop ... ... ...

We saw that the application crashes in the Hard fault handler when it calls sd_ble_enable function inside ble_stack_init.

Any idea about the problem ?

Thanks, Paolo

s130 programming error.jpg

image description

Parents
  • Just to give you more information ...

    Enviroment and Hardware Windows 7 MDK 5.14 SoftDevice 8.0.0

    Fujitsu MBH7BLZ07 with nRF51822 CEAAE00 cpuid (0x0079). rom 256KB ram 16KB cpu version 3

    We decided to restart from a simple code and copying it from one of the example in nordik sdk. The initialization should be always the same for all the examples. The only difference is :

    // Initialize the SoftDevice handler module. SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_250MS_CALIBRATION, NULL);

    because the fujitsu soc doesn't mount external low frequency crystal.

    For that test we create a new custom board in "custom_board.h" with no led and button, to make the test more clean and simple as we can. The rom starts at 0x18000 and the size is 0x28000, tha ram starts at 0x20002000 and the size is 0x2000.

    I updated the post with a screenshot of assert_nrf_callback.

Reply
  • Just to give you more information ...

    Enviroment and Hardware Windows 7 MDK 5.14 SoftDevice 8.0.0

    Fujitsu MBH7BLZ07 with nRF51822 CEAAE00 cpuid (0x0079). rom 256KB ram 16KB cpu version 3

    We decided to restart from a simple code and copying it from one of the example in nordik sdk. The initialization should be always the same for all the examples. The only difference is :

    // Initialize the SoftDevice handler module. SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_250MS_CALIBRATION, NULL);

    because the fujitsu soc doesn't mount external low frequency crystal.

    For that test we create a new custom board in "custom_board.h" with no led and button, to make the test more clean and simple as we can. The rom starts at 0x18000 and the size is 0x28000, tha ram starts at 0x20002000 and the size is 0x2000.

    I updated the post with a screenshot of assert_nrf_callback.

Children
No Data
Related