Dear Segger,
I am using a Segger Link Plus and would like to use the Cortex-M NVIC feature to reset the firmware by itself. Unfortunately the Cortex-M0+ (ATSAMD21G18) does not reset when the JLink is connected.
No Jlink related software is running. When I disconnect the Segger from target reset works fine.
The reset function used looks like:
OS:
MacOS 10.12.6
Segger Software: Latest V6.18c
JLink Version:
Firmware: J-Link V10 compiled Jul 28 2017 08:59:01
Hardware version: V10.10
Any hint?
regards
SPR
I am using a Segger Link Plus and would like to use the Cortex-M NVIC feature to reset the firmware by itself. Unfortunately the Cortex-M0+ (ATSAMD21G18) does not reset when the JLink is connected.
No Jlink related software is running. When I disconnect the Segger from target reset works fine.
The reset function used looks like:
Source Code
- __STATIC_INLINE void NVIC_SystemReset(void)
- {
- __DSB(); /* Ensure all outstanding memory accesses included
- buffered write are completed before reset */
- SCB->AIRCR = ((0x5FA << SCB_AIRCR_VECTKEY_Pos) |
- SCB_AIRCR_SYSRESETREQ_Msk);
- __DSB(); /* Ensure completion of memory access */
- while(1); /* wait until reset */
- }
OS:
MacOS 10.12.6
Segger Software: Latest V6.18c
JLink Version:
Firmware: J-Link V10 compiled Jul 28 2017 08:59:01
Hardware version: V10.10
Any hint?
regards
SPR