Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Panel | ||||
---|---|---|---|---|
| ||||
When debugging a netX 90 application with netX Studio, we observe that the netX 90 gets reset several times while the debug session is started. A "hidden" reset is performed even when the debug settings mode is set to 'Attach', which is completely unexpected. Is that intended? Is there a workaround? |
Panel | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||
This behavior is not intended. The expected behavior depending on the debug settings mode is this:
Currently, the netX Studio debugger performs some unexpected resets in both modes: Run mode - the CPU is reset more than once beforeIn netX Studio V1.0900 the unexpected resets are caused by three unrelated issues, all of which have been addressed with the maintenance release netX Studio V1.0910:
If you are affected by any of these issues, please see the resolutions below. Spike at JTAG SRST signal causes an unexpected reset on attach with OpenOCD This has been observed with the netX 90 evaluation boards using the on-board FTDI chip )These are known issues that will be fixed in upcoming versions of netX Studio. Part of these issues are related to the OpenOCD reset configuration which is currently configured to use a hardware reset. Until this is resolved, the workaround is to switch to a software reset. If using a software reset is not an issue for you, then you can patch your existing netX Studio installation as described below. How to apply the patch? Download and unzip the patch to a temporary location:netxstudio_netx90_reset_config_patch.bat What does the patch do? The patch updates some of the existing OpenOCD configuration files which are located inside the BuildTools folder:
Note | . The spike was caused by using the wrong parameters for the The parameters were adjusted and the spike issue is fixed in netX Studio V1.0910. More than one reset command is executed while the debug session is being started When starting a debug session in Run mode, netX Studio would execute more than one 'reset' command via OpenOCD. With netX Studio V1.0910 the extra resets have been removed and only a single 'reset' command is executed, after which the application CPU is halted and ready to be debugged.
The hardware reset performed by OpenOCD asserts SRST twice resulting in a "double reset" When starting a debug session in Run mode, netX Studio will execute the OpenOCD 'reset' command exactly once, but the netX will be reset twice quickly one after another. This is caused by the default implementation of the hardware reset handling in OpenOCD which asserts the SRST signal twice resulting in a "double reset". The default behavior of OpenOCD performs a "stronger" reset than necessary, in order to make sure that the target is properly reset. This is why OpenOCD allows you to customize the reset handling according to your needs and the specific target hardware. You can use the example script below which customizes the reset handling in order to avoid the "double reset":
Download: openocd_config.cfg See How to override the default OpenOCD reset handling? for more information on how to use the script. |
Panel | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
|