Hello,
I started with the template app and tried to do two things on a nRF52832 using Segger Studio:
1) advertise custom service
2) use Application Timer and App Scheduler to print out stuff via RTT
The advertising part works fine. But when I try to push a simple function onto the app scheduler, I run into a "ERROR 4 [NRF_ERROR_NO_MEM] " error. I can change the application timer timing (from say 2 seconds to 10 seconds), and the error happen just about when the timer goes off. If I comment out the app_sched_event_put(), then no errors.
I've read that the "NRF_ERROR_NO_MEM" may be cause by the RAM_START location in the .emProject file. But previously when that was the issue, I had a message in the debug window telling me exactly where to change the start. I don't this time.
Screen shot of runtime error:
Error Text:
<info> app: MYTEST example started.
<info> app: Fast advertising.
<error> app: ERROR 4 [NRF_ERROR_NO_MEM] at C:SDK15.3.0\nRF5_SDK_15.3.0_59ac345\nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\zz_app03b_app_template_update_chars\main.c:202
PC at: 0x00031343
<error> app: End of error report
Line 202 in main.c is exactly where I app_sched_event_put().
I'm attaching my main.c, the BLE custom service in case that matters, and the sdk_config.h and .emproject. What else might be needed to troubleshoot?
main.c:
.emProject
...well, the site is having issues posting more than 2 sets of code. I'll try it in a reply.