Monday, May 21st 2018, 10:54am UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

zainka

Beginner

Date of registration: Oct 13th 2009

Posts: 6

Location: Norway

1

Sunday, February 15th 2015, 10:16pm

em:blocks won't start gdb debugger

After reverted my windows with a clonezilla image I had to install em:block 2.30 and segger j-link sw version 4.96g. I also then got firmware of my jlonk edu upgraded. However, when I now tries to start my project for debug, which before i reinstalled the windows image worked perfectly every time, em:blocks recompiles as expected but the debugger gdb server is not started.

I have tried to get some info on em:blocks forum but until now I have not got any replies.

Thing is, I had em:blocks 1.45 installed in my old windows image and when debugger is started here the gdb server is launched aswell. But not when running from em:blocks 2.30.

I just wondered if anyone have had any experience with this and found a solution.
Yes I have followed the guide found under supported IDE's at segger.com but to no help.

I may start the gdb server manually and it connects to my jlink debugger and waits for connection, but nothing happens when I try to start a debugg session form em:blocks.

Thanks in advance

You may find my post at em:blocks forum here:
http://www.emblocks.org/forum/viewtopic.php?f=19&t=566


Breg
Vidar

SEGGER - Erik

Super Moderator

Date of registration: Dec 20th 2011

Posts: 400

2

Monday, February 16th 2015, 10:16am

Hi,

We are not aware of any issues with EmBlocks and J-Link.
As it does not work even if the J-Link GDB Server is started manually, it seems so that EmBlocks never tries to connect to the GDB Server. Is it possible that your project is somehow broken? Does you try to setup a new project? If EmBlocks does not try to connect to the J-Link GDB Server, there is not much we can do here as this call has to be performed by the IDE itself. As you told the J-Link GDB Server connects successfully to the J-Link and the target and is waiting for a connection.

As the EmBlocks admin confirmed in the EmBlocks forum thread, there is no generic known issue so i am pretty sure that it is related to the configuration of the project or the configuration of EmBlocks. Could you please share your project? We would try to find some time to give it a quick try and check if we see same behavior here.


Best regards
Erik

zainka

Beginner

Date of registration: Oct 13th 2009

Posts: 6

Location: Norway

3

Thursday, February 19th 2015, 7:44pm

Hi Thanks for your answer.

I have had some discussion with the em:blocks team but they know no issues which could explain the behavior, but my experience is that there are some issues with em:blocks regarding projects using custom makefiles as i do when it comes to where and how the debugger finds and handles the code. Never the less I added there an example project which I hope someone will either find some issues with which means I have done something wrong or they will find other issues with em:blocks that could cause troubles as mine.

I no longer, and did not, expect to find any issues with the segger sw.

Regarding your questions, the first thing I suspected to be wrong was off course my own setup. And I have had many tests and recreations of my project setup before I turned to the forums for help. Never the less, the project did not change between when it worked with my older windows environment and until I re-stored my windows and installed em:blocks 2.30. Have as few changing parameters as possible between checkpoints is a key to success.

However, I have tried other sw like emIDE and I had no problem setting up my environment there, and as mentioned I had it somewhat working with emblocks 1.45 earlier, which I had a copy of after installing windows again, but where I run into other issues which of I know the solution for. It was when installing emblocks 2.30 I run into problems.

I might switch to emIDE permanently if I find no solution but I have other projects setup for emblocks and you know, one is often reluctant to change environment to often.

Never the less, I have uploaded a project where I have the issues as mentioned. Feel free to look into the issue but dont waste your time if you do not need to.

Thanks in advance

Vidar
zainka has attached the following file:
  • sw_test.zip (825.08 kB - 447 times downloaded - Last download: May 19th 2018, 12:40pm)

SEGGER - Erik

Super Moderator

Date of registration: Dec 20th 2011

Posts: 400

4

Friday, February 20th 2015, 9:27am

Thanks for your detailed explanation.
We are currently really busy due to the Embedded World next week and due to some other projects but we will try to find some time to give the project a quick try here.

Quoted

I might switch to emIDE permanently if I find no solution but I have other projects setup for emblocks and you know, one is often reluctant to change environment to often.
I agree but if you are running into issues using emBlocks which "seem" to be "show-stopper" and which can not be determined / fixed, maybe you can use emIDE for the new project and if you happy with it you could change the other projects to emIDE, step by step?

I will let you know, once we were able to give your project a try here.


- Erik

zainka

Beginner

Date of registration: Oct 13th 2009

Posts: 6

Location: Norway

5

Friday, February 20th 2015, 4:35pm

Just a final status update before I rest my case. At em::blocks forum others have now confirmed that they face the same issue with their own project. I have also filed a ticket at em::blocks which hopefully will trigg a patch soon. For me I simply use version 1.45 for now as it works as expected with this version.

The previous mentioned problem with 1.45 and of which I knew a solution for was related to the debugger ignoring that custom makefiles might not put the elf file in the default obj folder. The solution for this can be found nested in my posts at em::blocks forum, if anyone is interested, but later versions of em::blocks has that spesific issue fixed permanently.

Therefor, if you do not have any special interests in the topic dont waste time on it since you seem to be occupied anyway. Good luck with the Embedded World and thanks for your help so far.


Vidar

SEGGER - Erik

Super Moderator

Date of registration: Dec 20th 2011

Posts: 400

6

Monday, February 23rd 2015, 12:45pm

Hi Vidar,

Thanks for the update. So it seems to be a generic issue in em::Blocks.
Anyhow, we have this on our list and one of my colleagues will give it a quick try in the next week(s).

Quoted

Good luck with the Embedded World and thanks for your help so far.
Thank you!


Best regards
Erik

SEGGER - Niklas

Super Moderator

Date of registration: Oct 6th 2014

Posts: 1,691

7

Tuesday, February 24th 2015, 3:27pm

Hi Vidar,

i can confirm that it seems to be an issue in em::Blocks.
I can debug your project (I used the 2nd one you posted on the em:Blocks forum, because the project you provided us was missing the project file) if i uncheck "This is a custom Makefile" in the project settings. This seems counterintuitive, because the makefile should have nothing to do with debugging, but it worked for us.


Best regards,
Niklas
Would you like to be added to the J-Link software update notification list, so you get informed automatically when a new version becomes available?
Just write me a PM or in case you want to subscribe to it yourself, please use this link: Link
Notification for J-Link, J-Link Debugger, SystemView & J-Scope: Link
Notification for Embedded Studio: Link

EmBlocks

Beginner

Date of registration: Jun 24th 2012

Posts: 32

8

Wednesday, February 25th 2015, 6:16pm

Hi Vidar,

I have post a new compiler DLL in your post at the EB forum. This compiler DLL has a totally new building engine and is targeting the next upcoming release of EB (C++, LTO etc etc).
I also build this new compiler DLL against the old EmBlocks 2.30 SDK so you could try this if it solves your problems.

This compiler DLL is made for another user who had also some issues with custom makefiles and Jlink's.

Cheers.