Intermittent stops in cpsie

Using nRF9160, ncs 1.6 on a custom board and segger-SES for debugging, we have intermittent stops (debugger breaks)
on an assembler line with 'cpsie' opcode:

File: cpu_idle.S , function: arch_cpu_idle

wfi
/*
* Clear PRIMASK and flush instruction buffer to immediately service
* the wake-up interrupt.
*/
cpsie i

The call stack is: z_thread_entry >> pm_save_idle >> arch_cpu_idle.
Our app is doing a file download (like the https download client sample in ncs).

  • Any hints on the cause, or how to proceed?
  • Is it possible to eliminate any power saving state (thus prevent 'WFI'), just let it busy-loop in idle task? (only while debugging).
  • could it be power-supply [instable] related?
    Thanks!
Parents Reply
  • Hi Jonathan, thanks for your support,
    our setup is quite simple:

    • onboard 3.3V regulator (sourced from external lab power supply 7V).
    • JTAG is the 10 pin debug-out (P19 on the DK V1.0), but on our board we only use SWDIO+CLK,GND).
    • peripheral: flash on SPIM.
    • peripheral: audio amp on I2S and I2C.
    • on-board antenna quite identical to DK, matching circuit, just LTE (800 MHz Band 20 optimized for prototype); no GPS.

    For supply, any issue with connecting a 3.3V board to debug P19 of DK with 3.0V?
    Thanks.

Children
Related