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

s132 softdevice + example code not working

Hi, I’m having some troubles with example code : ble_app_uart_s132_pca10040. The code compile well in Keil and I can prog it in the nfr52 but it doesn’t run. When I check the code step by step in debug session, I enter in ble_stack_init() function, but resart entering in the function SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL) (error_code = 0x10). I can’t figure out where is the problem. I work with with softdevice s132_nrf52_4.0.2 and SDK 13.0.0 (I tried with s132 4.0.3 but the result is the same). For information, I have replaced the files presents in SDK\components\sorftdevice\s132\headers by those presents in include folder of the API and… it doesn’t change anything. In Keil configurations I start the IROM1 at 0x1f00 with 0x61000 size and the IRAM1 starts at 0x20001f00 with a size : 0x6100. Do you have any solution to my problem please? Thank’s.

Parents
  • The value I listed is the default value for the example. The RAM usage will increase if you add more services, characteristics, etc. If you enable logging, the RAM size required should be printed on the terminal. E.g. :

    **SDH:INFO:sd_ble_enable: RAM START at 0x20002168
    SDH:WARNING:sd_ble_enable: app_ram_base should be adjusted to 0x20002128
    SDH:WARNING:ram size should be adjusted to 0xded8**
    

    Make sure that you have #define NRF_LOG_BACKEND_SERIAL_USES_UART 1 and #define NRF_LOG_ENABLED 1 in sdk_config.h if you are printing over UART.

Reply
  • The value I listed is the default value for the example. The RAM usage will increase if you add more services, characteristics, etc. If you enable logging, the RAM size required should be printed on the terminal. E.g. :

    **SDH:INFO:sd_ble_enable: RAM START at 0x20002168
    SDH:WARNING:sd_ble_enable: app_ram_base should be adjusted to 0x20002128
    SDH:WARNING:ram size should be adjusted to 0xded8**
    

    Make sure that you have #define NRF_LOG_BACKEND_SERIAL_USES_UART 1 and #define NRF_LOG_ENABLED 1 in sdk_config.h if you are printing over UART.

Children
No Data
Related