cancel
Showing results for 
Search instead for 
Did you mean: 

Integrated Debugging in Eclipse

alain
Associate II
Posted on July 16, 2014 at 16:03

Hi,

I recently buy a STM32L152 Nucleo, I begin with mbed.org but I prefer to develop offline.

So I was wondering if there are any plug-ins to debug my programs.

I follow this tutorial : http://erika.tuxfamily.org/wiki/index.php?title=Tutorial:_STM32_-_Integrated_Debugging_in_Eclipse_using_GNU_toolchain&oldid=5474

but it is not working I get this error :

2014-07-16T14:35:28 WARN src/stlink-usb.c: Couldn't find any ST-Link/V2 devices

Whereas my bord is connected.

Best Regards,

Alain

#eclipse #eclipse-debug
5 REPLIES 5
frankmeyer9
Associate II
Posted on July 16, 2014 at 16:43

Assuming you are under Linux, does the

lsusb

command list your ST-Link ?

If so, try as root. If this works, you need to add an

udev

rule to grant your user access to this USB device. There are plenty of sites describing in detail how to do this, depending on your distribution.

os_kopernika
Associate II
Posted on July 16, 2014 at 19:12

  1. I do not know any step-by-step tutorials.
  2. Get an ARM toolchain (GCC-ARM-Embedded is ok)
  3. Get OpenOCD (8.0 is ok)
  4. Get Eclipse + CDT
  5. Get GNU Arm plug-in
  6. Get EmbSysRegView plug-in (2.4.1 is ok).
I have included the (incomplete) xml's for STM32L152 on EmbSysRegView forum - search my posts there.

alain
Associate II
Posted on July 17, 2014 at 09:45

Hi,

@fm : I'm under Windows but when I use STM32 ST-LINK Utility application there are no problems the device is connecting.

@Brutte : I already install all you mention except

EmbSysRegView plug-in, what is its usefulness ? 

I don't know if I'm clear but all I want it's just a debugger to put breakpoints, for the display I can use a USART pin with serial port.

frankmeyer9
Associate II
Posted on July 17, 2014 at 11:33

@fm : I'm under Windows but when I use STM32 ST-LINK Utility application there are no problems the device is connecting.

 

That would be my next question.

If the ST-Link Utility works, there seems to be a problem with the ST-Link driver integration in your eclipse environment. A secondary reason why I don't like Eclipse ...

Alternatively, you can try

http://www.emblocks.org/

, another free IDE (a CodeBlocks spin-off), which supports ST-Link out of the box.

alain
Associate II
Posted on July 17, 2014 at 15:02

It seems to work with EmBlocks

Thank you very much