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

APPLICATION HANGS USING nrfx_timer AND nrf_drv_gpiote WITH ble_stack_init()

Hi,

I am carrying out a project that tries to collect the information from a sensor (sporadic activation), process it, and send it by BLE to a receiver to activate a relay. I have experience using uC/OS-II in Renesas uP; but because the application I need is simple, I prefer to use a foreground/background system instead of an RTOS or by events since I find the way of acting used in the examples that come with the nRF5 SDK is very complicated. My idea is to create a system of device control modules in both, the peripheral and the central (pushbuttons, LEDs, I2C bus, BLE, etc). The uP will be asleep and will wake up for example due to an external interruption (sensor, pushbutton, etc.) Of course, the BLE will have the highest priority. The BLE management module would act similarly to the compact modules that use AT commands; but here they would be function calls to configure, activate, deactivate, etc. For this, I need to create a periodic timer that will call each routine of each device to control it, and a main routine with task control. In the final application I will use nRF52810 I have tried the ble_app_blinky Client and Server examples with the PCA10040 board and they work fine. A simple application works well only with the timer, LEDs and buttons; but when starting the BLE stack, it hangs.
I use: - Windows 7 - nRF52 DK - nRF5 SDK v17.0.2 - SoftDevice S132 v7.2.0 - SEGGER Embedded Studio
Do you consider correct the way to manage the application? Could you tell me what I'm doing wrong and the possible solution?

Thanks in advance
Parents
  • Hi Jorgen,

    Problem resolved. It was the instance.

    As far as RAM is concerned, I'll keep that in mind.

    I guess the functions in S132 will be equivalent in S112?

    Another question. Can you tell me if there is any documentation about the processes to follow and the functions to use to,

    for example, iniciate a connection, disconnection, data exchange, etc?. A block diagram or something similar that clearly indicates

    the processes to follow when we want to initiate an action.

    Thanks in advance

Reply
  • Hi Jorgen,

    Problem resolved. It was the instance.

    As far as RAM is concerned, I'll keep that in mind.

    I guess the functions in S132 will be equivalent in S112?

    Another question. Can you tell me if there is any documentation about the processes to follow and the functions to use to,

    for example, iniciate a connection, disconnection, data exchange, etc?. A block diagram or something similar that clearly indicates

    the processes to follow when we want to initiate an action.

    Thanks in advance

Children
No Data
Related