Hello,
in deepest despair I would like to ask you for help. I have J-link EDU and I am developing some automotive circuit, where I need CAN.
I used to work with arm7tdmi (In my opinion the best ARM) and cortex-r4 on JTAG interface with j-link with no problem. But the market has changed. Therefore, I am forced to use Cortex-M0 in my design.
So, I made circuit with STM32F043F6, then I connected it via SWD.
See, what happens:
Display All
Lowering speed does not help. Nothing does not help. Hardware is ok, I am 100% sure, I was checking it infinite times.
Strange is, that the SW-DP with Cortex-M0 is found! The same behaviour with BOOT0 high/low.
So, I said, ok,flush ST. I bought NXP LPC11C14 hoping that everything will be ok with it. But see this:
Display All
I am getting absolutely crazy about this.
Don't you have a problem with cortex-m0' that you do not know about?
I have a Keil uvision 5. There it is the same, in debug options I am trying everything - connect under reset, SWD speed tuning etc. and only output is Can not connect to target.
Thank you
Milan
in deepest despair I would like to ask you for help. I have J-link EDU and I am developing some automotive circuit, where I need CAN.
I used to work with arm7tdmi (In my opinion the best ARM) and cortex-r4 on JTAG interface with j-link with no problem. But the market has changed. Therefore, I am forced to use Cortex-M0 in my design.
So, I made circuit with STM32F043F6, then I connected it via SWD.
See, what happens:
Source Code
- SEGGER J-Link Commander V6.30b (Compiled Feb 2 2018 18:37:08)
- DLL version V6.30b, compiled Feb 2 2018 18:36:54
- Connecting to J-Link via USB...O.K.
- Firmware: J-Link V9 compiled Mar 2 2018 17:07:57
- Hardware version: V9.30
- S/N: 26930XXXX
- License(s): FlashBP, GDB
- OEM: SEGGER-EDU
- VTref = 3.396V
- Type "connect" to establish a target connection, '?' for help
- J-Link>connect
- Please specify device / core. <Default>: LPC11C14/301
- Type '?' for selection dialog
- Device>?
- Please specify target interface:
- J) JTAG (Default)
- S) SWD
- TIF>s
- Specify target interface speed [kHz]. <Default>: 4000 kHz
- Speed>
- Device "STM32F042F6" selected.
- Connecting to target via SWD
- Found SW-DP with ID 0x0BB11477
- STM32 (connect): Can not attach to CPU. Trying connect under reset.
- Found SW-DP with ID 0x0BB11477
- Found SW-DP with ID 0x0BB11477
- STM32 (connect): Can not attach to CPU. Trying connect under reset.
- Found SW-DP with ID 0x0BB11477
- ****** Error: STM32: Connecting to CPU via connect under reset failed.
- Found SW-DP with ID 0x0BB11477
- STM32 (connect): Can not attach to CPU. Trying connect under reset.
- Found SW-DP with ID 0x0BB11477
- Found SW-DP with ID 0x0BB11477
- STM32 (connect): Can not attach to CPU. Trying connect under reset.
- Found SW-DP with ID 0x0BB11477
- ****** Error: STM32: Connecting to CPU via connect under reset failed.
- Cannot connect to target.
- J-Link>
Lowering speed does not help. Nothing does not help. Hardware is ok, I am 100% sure, I was checking it infinite times.
Strange is, that the SW-DP with Cortex-M0 is found! The same behaviour with BOOT0 high/low.
So, I said, ok,flush ST. I bought NXP LPC11C14 hoping that everything will be ok with it. But see this:
Source Code
- SEGGER J-Link Commander V6.30b (Compiled Feb 2 2018 18:37:08)
- DLL version V6.30b, compiled Feb 2 2018 18:36:54
- Connecting to J-Link via USB...O.K.
- Firmware: J-Link V9 compiled Mar 2 2018 17:07:57
- Hardware version: V9.30
- S/N: 26930XXXX
- License(s): FlashBP, GDB
- OEM: SEGGER-EDU
- VTref = 3.377V
- Type "connect" to establish a target connection, '?' for help
- J-Link>connect
- Please specify device / core. <Default>: LPC11C14/301
- Type '?' for selection dialog
- Device>
- Please specify target interface:
- J) JTAG (Default)
- S) SWD
- TIF>s
- Specify target interface speed [kHz]. <Default>: 4000 kHz
- Speed>
- Device "LPC11C14/301" selected.
- Connecting to target via SWD
- Found SW-DP with ID 0x0BB11477
- Found SW-DP with ID 0x0BB11477
- ****** Error: DAP error while reading DP-Ctrl-Stat register.
- Found SW-DP with ID 0x0BB11477
- Found SW-DP with ID 0x0BB11477
- Cannot connect to target.
- J-Link>
I am getting absolutely crazy about this.
Don't you have a problem with cortex-m0' that you do not know about?

I have a Keil uvision 5. There it is the same, in debug options I am trying everything - connect under reset, SWD speed tuning etc. and only output is Can not connect to target.
Thank you
Milan
The post was edited 2 times, last by mrkvo ().