Can you please copy the entire OpenOCD log into a file and then attach it here? It will give us more insight into your issue.
1 of 1 people found this helpful
Please check your OpenOCD configuration file for the following:
(1) If you have used "cmsis-dap.cfg" instead of "kitprog3.cfg"
(2) If you have disabled Test Mode acquire (set ENABLE_ACQUIRE 0)
To solve this, do the following:
- Remove the -c "set ENABLE_ACQUIRE 0" command if it is present
- Change -c "source [find interface/cmsis-dap.cfg]" to -c "source [find interface/kitprog3.cfg]"
Let me know if this helps
Remove -c "set ENABLE_ACQUIRE 0" helps.
What does ENABLE_ACQUIRE mean and why it is a problem with combination with SMPU?
This option disables Test Mode acquire.
The problem is that there is no easy way to stop the CPU right after Reset before it starts to execute the code. To do this Cypress uses something called Test Mode Acquisition.
In this particular case, once execution entered main() - user code protects the Flash and there is no way to reprogram it. SROM API returns corresponding error code (STATUS_NVL_PROTECTED) and refuses to program the Flash. This is normal and expected.
If Test Mode acquisition is disabled - nothing stops the CPU after reset.