cancel
Showing results for 
Search instead for 
Did you mean: 

mxCube import to Arm Gnu Eclipse

Posted on December 03, 2015 at 18:49

Hello there,

Arm gnu eclipse ( http://gnuarmeclipse.github.io ) is a plugin for eclipse similar to openSTM32. It has its advantages, for example that user can use way more debuggers than only ST-LINK. I was wondering either ST would consider making an importer for mxCUBE for Arm Gnu EClipse plugin the same way they did for openSTM32.

For example I have a huge problem now. I am using mxCube to import code for openSTM32 project in eclipse. I am using JLINK, so I have to use the module from Arm Gnu Eclipse plugin, as openSTM32 doesnt support it. And now I cannot view peripherals while dubbuging even though both plugins support it. I cant use Arm Gnu Eclipse one, because the project is created by openSTM32. I cant use the second one, as I am using Arm Gnu Eclipse debugger... I dont know whats a way out out of this. 

I would have to either get rid of JLINK and get st-link, but jlink is a lot better. Or I would have to manually copy generated code to Arm Gnu Eclipse project...

So would it be possible maybe for ST to make an importer for Arm Gnu Eclipse? Not a bad idea?
20 REPLIES 20
TarekB-ST
Associate III
Posted on December 08, 2015 at 15:31

can try after replacing

source [find target/jlink.cfg]

with

sourc

e

[find target/stm32f4x.cfg]

and add the following lines

transport select swd

adapter_khz 1000 you can modify 1000 by your desired frequency

# This is an STM32F4 discovery board with a single STM32F407VGT6 chip.
# http://www.st.com/internet/evalboard/product/2524jsp
source [find interface/jlink.cfg]
transport select swd
adapter_khz 1000
source [find target/stm32f4x.cfg]
# use hardware reset, connect under reset
reset_config srst_only srst_nogate

Posted on December 08, 2015 at 15:59

After this modification everything works :). Thank you a lot!

TarekB-ST
Associate III
Posted on December 08, 2015 at 16:12

you are welcome :)

Posted on December 08, 2015 at 17:34

just a short question- does openSTM32 support JTAG? Because in the .cfg file I have changed swd to jtag but that did not work.

Posted on December 09, 2015 at 09:00

Also, even though I am using jlink, the maximum breakpoints number is still 6.

TarekB-ST
Associate III
Posted on December 10, 2015 at 09:57

>> just a short question- does openSTM32 support JTAG? Because in the .cfg file I have changed swd to jtag but that did not work.

yes openSTM32 supports JTAG, please check if your debugger wires are well connected to your device

>> Also, even though I am using jlink, the maximum breakpoints number is still 6.

yes even if you use Jlink or any other debugger the number of breakpoints is fixed to 6 (maximum breakpoints supported in CortexM4)

just a short question- does openSTM32 support JTAG? Because in the .cfg file I have changed swd to jtag but that did not work.

just a short question- does openSTM32 support JTAG? Because in the .cfg file I have changed swd to jtag but that did not work.

just a short question- does openSTM32 support JTAG? Because in the .cfg file I have changed swd to jtag but that did not work.

just a short question- does openSTM32 support JTAG? Because in the .cfg file I have changed swd to jtag but that did not work.

Posted on December 10, 2015 at 15:23

Yes the JTAG is connected correctly, as I am using it with standard jlink driver. Is there anything else that has to be changed apart from that one word in the file?

TarekB-ST
Associate III
Posted on December 10, 2015 at 19:21

I have used for testing both of:

 - IAR JLink (JTAG)

 - IAR JTrace (JTAG/SWD)

And both of them have worked after modifying the driver to WinUSB by ZADIG

Regards,

tarekb

just a short question- does openSTM32 support JTAG? Because in the .cfg file I have changed swd to jtag but that did not work.

just a short question- does openSTM32 support JTAG? Because in the .cfg file I have changed swd to jtag but that did not work.

just a short question- does openSTM32 support JTAG? Because in the .cfg file I have changed swd to jtag but that did not work.

just a short question- does openSTM32 support JTAG? Because in the .cfg file I have changed swd to jtag but that did not work.

Posted on December 11, 2015 at 16:47

I see, but are there any additional settings that has to be set in order to use jtag instead of swd?

TarekB-ST
Associate III
Posted on December 14, 2015 at 10:11

Just ensure that your cfg contains

transport select jtag

instead of

transport select swd

and your JTAG wires are connected