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

NO MEMORY ERROR FOR "app_sched_event_put" FUNCTION

HI

  In our application we are using  "app_sched_event_put" function but its showing [NRF_ERROR_NO_MEM]  when i debugged  it please look the screen shot.

The sdk we are using is   "nRF5_SDK_15.3.0_59ac345"

What are the changes i want do to slove these issue. 

Parents
  • That means that you're pushing way too many events to the scheduler queue. Check where are you pushing events to the queue and/or increase the queue size of the scheduler.

  • Check where are you pushing events to the queue

    Inside a gpio handler . Actually we are configuring a 2d sensor with nrf52832 through spi . These 2d sensor contains a motion pin .when ever there is a motion occurred these pin state will change from high to low(normally motion pin is high).

    we connected the motion pin to nrf52832  P0.15 pin and  also these is configured to generate an interrupt whenever its state become high to low .when these interrupt generate the code execution will enter to the gpio handler ,Inside these gpio handler we are calling the   app_sched_event_put     function .

    or increase the queue size of the scheduler.

     How can i increase  the queue size of the scheduler? what is the size i want to give?

Reply
  • Check where are you pushing events to the queue

    Inside a gpio handler . Actually we are configuring a 2d sensor with nrf52832 through spi . These 2d sensor contains a motion pin .when ever there is a motion occurred these pin state will change from high to low(normally motion pin is high).

    we connected the motion pin to nrf52832  P0.15 pin and  also these is configured to generate an interrupt whenever its state become high to low .when these interrupt generate the code execution will enter to the gpio handler ,Inside these gpio handler we are calling the   app_sched_event_put     function .

    or increase the queue size of the scheduler.

     How can i increase  the queue size of the scheduler? what is the size i want to give?

Children
Related