User forums > Embedded development

Debugging with Segger JLINK

<< < (2/6) > >>

oBFusCATed:

--- Quote from: bartddgd on March 04, 2013, 04:18:40 pm ---Contents of GDB "Before" commands:


--- Code: ---file ./obj/lpc2387_88_test.elf
set mem inaccessible-by-default off
target remote localhost:2331
monitor flash device = LPC2387
monitor flash breakpoints = 1
monitor flash download = 1
monitor endian little
monitor speed auto
monitor reset
monitor long 0xE01FC040 = 1
load
monitor reset

--- End code ---

--- End quote ---

C::B still think you're not in remote debugging mode, because you've setup the connection parameters manually using gdb commands.
Please use the UI, for things like ip, domain, port, speed, etc. Then it should work.

bartddgd:
Thanks a lot! Now I understood what you meant.

After removing the "target remote localhost:2331" line from the "Before" commands and adding "localhost" and port 2331 in the "Remote connection" tab of the debugger project settings everything works fine. The program break where it should and single stepping also works.

Again, thanks for your quick help!

Best regards,
Bernd

dirk_1980:
Maybe the easiest way is to use the emIDE.
It is a Code::Blocks clone with some really nice changes to CB.
And there is a special J-Link Plugin.


oBFusCATed:

--- Quote from: dirk_1980 on March 08, 2013, 03:08:58 pm ---Maybe the easiest way is to use the emIDE.

--- End quote ---
This is something new, someone has forked C::B instead of providing patches...

MortenMacFly:

--- Quote from: oBFusCATed on March 08, 2013, 03:50:42 pm ---This is something new, someone has forked C::B instead of providing patches...

--- End quote ---
dunno - it seems its based on 12.11 sources with additional plugins.

But still: Weird (s)he didn't start here in the forums...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version