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

Erase Done. Programming Done. Verify OK. * JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET. * JLink Info: Reset: Reset device via AIRCR.SYSRESETREQ. Application running ...

Hi! 

I have old code written in nRF51 enviorment with SDK nRF5_SDK_12.0.0. 

I've successfully flashed the softDevice (s130_nrf51_2.0.1_softdevice.hex).

No error occurs when trying to flash my device (an relay).

* JLink Info: Found SW-DP with ID 0x0BB11477
* JLink Info: Scanning AP map to find all available APs
* JLink Info: AP[1]: Stopped AP scan as end of AP map has been reached
* JLink Info: AP[0]: AHB-AP (IDR: 0x04770021)
* JLink Info: Iterating through AP map to find AHB-AP to use
* JLink Info: AP[0]: Core found
* JLink Info: AP[0]: AHB-AP ROM base: 0xF0000000
* JLink Info: CPUID register: 0x410CC200. Implementer code: 0x41 (ARM)
* JLink Info: Found Cortex-M0 r0p0, Little endian.
* JLink Info: FPUnit: 4 code (BP) slots and 0 literal slots
* JLink Info: CoreSight components:
* JLink Info: ROMTbl[0] @ F0000000
* JLink Info: ROMTbl[0][0]: E00FF000, CID: B105100D, PID: 000BB471 ROM Table
* JLink Info: ROMTbl[1] @ E00FF000
* JLink Info: ROMTbl[1][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
* JLink Info: ROMTbl[1][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
* JLink Info: ROMTbl[1][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
* JLink Info: ROMTbl[0][1]: F0002000, CID: B105900D, PID: 000BB9A3 ???
ROMTableAddr = 0xF0000000
* JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
* JLink Info: Reset: Reset device via AIRCR.SYSRESETREQ.

Target info:
------------
Device: nRF51422_xxAC
VTarget = 2.969V
State of Pins:
TCK: 0, TDI: 0, TDO: 0, TMS: 1, TRES: 1, TRST: 0
Hardware-Breakpoints: 4
Software-Breakpoints: 8192
Watchpoints: 2
JTAG speed: 4000 kHz

Erase Done.
Programming Done.
Verify OK.
* JLink Info: Reset: Halt core after reset via DEMCR.VC_CORERESET.
* JLink Info: Reset: Reset device via AIRCR.SYSRESETREQ.
Application running ...
Flash Load finished at 14:42:46

Everything used to work. Everything I've changed is for how long the relay I suppose to be open (from 1 to 10 seconds). 

Can anywho please help me fix this. 

Parents
  • Hi Johan

    What do you mean by "how long the relay is supposed to be open"? Is it for how long it is scanning for advertisements? My guess is that this increase causes it to crash with another function, seeing as a relayer often scans for a duration, and then advertises (or relays) what it picked up and sends it to a central. What may happen is that when it is "open" for that much longer, it doesn't have time to do its other tasks before it has to go open again. What is the interval between each "open" period?

    Have you tried debugging it at all, so that you might get an error message or you're able to see where the application hangs?

    Best regards,

    Simon

Reply
  • Hi Johan

    What do you mean by "how long the relay is supposed to be open"? Is it for how long it is scanning for advertisements? My guess is that this increase causes it to crash with another function, seeing as a relayer often scans for a duration, and then advertises (or relays) what it picked up and sends it to a central. What may happen is that when it is "open" for that much longer, it doesn't have time to do its other tasks before it has to go open again. What is the interval between each "open" period?

    Have you tried debugging it at all, so that you might get an error message or you're able to see where the application hangs?

    Best regards,

    Simon

Children
Related