AnsweredAssumed Answered

How to program and debug idb007v1 from TrueSTUDIO via ST-Link/V2?

Question asked by Piotr Romaniuk on Feb 17, 2018
Latest reply on Apr 23, 2018 by Piotr Romaniuk

Hi,

I would like to debug a program on BlueNRG-1 using SWD interface on idb007v1 board.
Unfortunately, I cannot even program the chip via this interface.

 

Here is my configuration:

1) ST-Link/V2 is connected by 20-lines  ribbon cable to CN7 connector

2) idb007v1 board is powered from USB

3) ST-Link/V2 firmware version V2J30S7

4) Windows 7/64bit drivers:

   a. STLink dongle 2017-06-08 v2.1.0.0 STMicroelectronics
   b. VCP driver       2010-04-25 v1.3.1.0 STMicroelectronics

5) IDE: Atollic TrueSTUDIO for STM32 9.0.0

 

When I try to start debugging in TrueStudio following error appears:

Atollic TrueSTUDIO gdbserver for ST-Link. Version 4.2.0 (WIN32 2018-01-16 10:57:14 15656)
Copyright (c) 2018, STMicroelectronics. All rights reserved.


Starting server with the following options:
Persistant Mode : Disabled
LogFile Name : debug_log.txt
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled

 

Vendor = 0x3B

Error in initializing ST-Link device.
Reason: ST-LINK: Could not verify ST device! Abort connection.

 

and sometimes:

Target no device found

Error in initializing ST-Link device.
Reason: No device found on target.

 

Just to verify programming ability via SWD I also tried to use ST-Link utility, it communicates with ST-Link/V2 but is not able to connect to device (i.e. chip).

Another flash programming tool - STM32CubeProgrammer does not support BlueNRG-1 chip.

 

I can only program BlueNRG-1 flash memory by BlueNRG Flasher.
But this tool is using another path based on preprogrammed bootloader and USART communication.

I am interesting in using SWD and debugging feature.

How can I obtain that?

 

Kind regards,
Piotr

 

 

 

Outcomes