Hi,
I upgraded the STLink on my ST Nucleo F411 (STM32F411RE) board to JLink but I can't get SWO to work. Eclipse doesn't give me any error but no output either, the "Semihosting and SWV" console just says "SEGGER J-Link GDB Server V5.12g - Terminal output channel" but no output appears, although I'm sending to ITM stimulus port 0 continously. I checked the SWO header on the board and it is connected to PB3 via jumper SB15.
Next thing I did was to connect directly using JLink Commander to interrogate the available SWOSpeed and the JLink Commander tells me
Here's the full interaction with JLink Commander:
Display All
I'm running this on Mac OSX 10.10.5. My question is whether SWO is supported at all by JLink on ST Nucleo boards, or whether I'm doing something wrong or missing a crucial step.
If it's not available, what alternatives do I have to send debug information back to my host computer using JLink? I want to avoid Semihosting if possible.
Thanks in advance
Simon
I upgraded the STLink on my ST Nucleo F411 (STM32F411RE) board to JLink but I can't get SWO to work. Eclipse doesn't give me any error but no output either, the "Semihosting and SWV" console just says "SEGGER J-Link GDB Server V5.12g - Terminal output channel" but no output appears, although I'm sending to ITM stimulus port 0 continously. I checked the SWO header on the board and it is connected to PB3 via jumper SB15.
Next thing I did was to connect directly using JLink Commander to interrogate the available SWOSpeed and the JLink Commander tells me
Here's the full interaction with JLink Commander:
Source Code
- ➜ ~ JLinkExe
- SEGGER J-Link Commander V5.12g (Compiled May 27 2016 16:55:14)
- DLL version V5.12g, compiled May 27 2016 16:55:08
- Connecting to J-Link via USB...O.K.
- Firmware: J-Link STLink V21 compiled Apr 15 2016 10:47:22
- Hardware version: V1.00
- S/N: 775171134
- VTref = 3.300V
- Type "connect" to establish a target connection, '?' for help
- J-Link>connect
- Please specify device / core. <Default>: STM32F411RE
- Type '?' for selection dialog
- Device>STM32F411RE
- Please specify target interface:
- J) JTAG (Default)
- S) SWD
- TIF>S
- Specify target interface speed [kHz]. <Default>: 4000 kHz
- Speed>4000
- Device "STM32F411RE" selected.
- Found SWD-DP with ID 0x2BA01477
- Found SWD-DP with ID 0x2BA01477
- Found Cortex-M4 r0p1, Little endian.
- FPUnit: 6 code (BP) slots and 2 literal slots
- CoreSight components:
- ROMTbl 0 @ E00FF000
- ROMTbl 0 [0]: FFF0F000, CID: B105E00D, PID: 000BB00C SCS
- ROMTbl 0 [1]: FFF02000, CID: B105E00D, PID: 003BB002 DWT
- ROMTbl 0 [2]: FFF03000, CID: B105E00D, PID: 002BB003 FPB
- ROMTbl 0 [3]: FFF01000, CID: B105E00D, PID: 003BB001 ITM
- ROMTbl 0 [4]: FFF41000, CID: B105900D, PID: 000BB9A1 TPIU
- ROMTbl 0 [5]: FFF42000, CID: B105900D, PID: 000BB925 ETM
- Cortex-M4 identified.
- J-Link>SWOSpeed
- *** J-Link V5.12g Warning ***
- The connected emulator does not support serial wire output (SWO).
- *** J-Link V5.12g Warning ***
- Supported speeds:
- J-Link>q
I'm running this on Mac OSX 10.10.5. My question is whether SWO is supported at all by JLink on ST Nucleo boards, or whether I'm doing something wrong or missing a crucial step.
If it's not available, what alternatives do I have to send debug information back to my host computer using JLink? I want to avoid Semihosting if possible.
Thanks in advance
Simon
The post was edited 1 time, last by simon42 ().