[Explorer Kit] Problem using Eclipse with OpenOCD | Cypress Semiconductor
[Explorer Kit] Problem using Eclipse with OpenOCD
I am posting this because I have problems when debugging with openOCD&Eclipse.
Ok let me please inform you at first for my settings.
- Go to: Run >External tools>Configuration >Add New
- Rename USBSerial_OpenOCD
C:\Program Files (x86)\Cypress\SuperSpeed Explorer Kit\1.0\USBSerialOpenOCD\openOCD.exe
C:\Program Files (x86)\Cypress\SuperSpeed Explorer Kit\1.0\USBSerialOpenOCD\
- Remove checkpoint “Build before launch” at the Build tab
- Hit Run
Debug a new project
- Open project & go to the main source .c and build
- Go to the debug Bug icon and select dropdown> Debug Configurations
- Double click Zylin embedded (Native)
- On the Debugger tab
- Browse for GDB debugger :
C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\ARM GCC\bin\arm-none-eabi-gdb.exe
- For the command file leave it as is.
- Use verbose console mode.
- Go to the commands tab
- Initialize command :
set prompt (arm-gdb)
# This connects to a target via netsiliconLibRemote
# listening for commands on this PC's tcp port 3333
target remote localhost:3333
monitor reset halt
# Set the processor to SVC mode monitor reg cpsr 0xd3
# Disable all interrupts
monitor mww 0xFFFFF014 0xFFFFFFFF
# Enable the TCMs
monitor mww 0x40000000 0xE3A00015
monitor mww 0x40000004 0xEE090F31
monitor mww 0x40000008 0xE240024F
monitor mww 0x4000000C 0xEE090F11
# Set the PC to 0x40000000
monitor reg pc 0x40000000
- Run command:
- Hit Debug and accept new Perspective
I think so far so good. It worked once or twice but when I try to debug another project the openOCD gets terminated after I start it see below.
Open On-Chip Debugger 0.7.0 (2013-11-08-13:13)
Licensed under GNU GPL v2
For bug reports, read
Warn : Adapter driver 'openjtag' did not declare which transports it allows; assuming legacy JTAG-only
Info : only one transport option; autoselect 'jtag'
adapter speed: 1000 kHz
trst_and_srst srst_pulls_trst srst_gates_jtag trst_push_pull srst_open_drain connect_deassert_srst
RCLK - adaptive
adapter speed: 1000 kHz
in procedure 'init'
I aim to modify the firmware from a given project and the GPIF II state machine and then test my design through debug sessions. I am aware that I have to create debug configurations but the debug fails Even the USBBulkSinkUSB succeeds only once and after I stop it, it does not relaunch the debug. I have followed the documentation instructions as you might notice but for this I have not located an answer.
Please let me know if you have any ideas for a solution.