Qorvo device specifics

From SEGGER Wiki
Revision as of 09:34, 8 October 2019 by Erik (talk | contribs)
Jump to: navigation, search

Connect

By default, the debug interface and flash programming ROM API of Qorvos Cortex-M4 based devices is disabled and needs to be enabled by executing a special sequence. It cannot be determine if the device is already in programming mode or not thus the DLL has to always perform the special sequence in order to make sure that flash programming always works out-of-the-box. Unfortunately, using this method, no attach is possible by default. This affects all supported Cortex-M4 based families (Qorvo GP570, GP870, UE878 and QPG6095)

Attach to a running system

In case of the target application already enables the debug interface, the DLL must not perform the special sequence but as this cannot be detected, the default behavior needs to be overwritten in this case. This can be done by using the J-Link script file below.



 //
 // The "EnableDebugInteface" sequence needs to be performed to
 //   a) get access to the device and
 //   b) to enter programming mode (required for flash programming)
 //
 // Unfortunately, we cannot determine if the device is already in programming mode or not
 // thus we have to perform the sequence by default to make sure that flash programming always
 // works out-of-the-box. Unfortunately, using this method, no attach is possible by default.
 // We have created an wiki-article regarding this.