<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Running GDB with SES and nRF52840DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63032/running-gdb-with-ses-and-nrf52840dk</link><description>RTT seems to be mostly working using the viewer with the command: 
 JLinkRTTViewer -device nRF52840_xxAA 
 It seems I need to re-connect each time I start a debug from SES, but this is okay. What I really need thought is to get gdb communicating during</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Jul 2020 10:58:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63032/running-gdb-with-ses-and-nrf52840dk" /><item><title>RE: Running GDB with SES and nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/261949?ContentTypeID=1</link><pubDate>Tue, 28 Jul 2020 10:58:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:012daf96-3b24-46bf-97a8-2a0807f96772</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My apologies for the late response&lt;/p&gt;
&lt;p&gt;For the questions related to segger embedded studio, and the advanced debugging features you&amp;#39;re trying to do, I would recommend that you contact Segger directly and ask them, as they have more knowledge about their products than we do.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="kw_martin"]Some other questions: I need gdb so I can do the equivalent of calling a function at a breakpoint[/quote]
&lt;p&gt;This is possible in gdb. Please see this thread:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/24081/call-function-from-gdb-at-breakpoint"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/24081/call-function-from-gdb-at-breakpoint&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you think there&amp;#39;s any breakpoints present, you can list these in gdb by entering &amp;quot;info b&amp;quot;. I suspect that you are halting the CPU at certain points in time, thus you see it running on different stages of your firmware.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running GDB with SES and nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/257677?ContentTypeID=1</link><pubDate>Tue, 30 Jun 2020 21:54:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:693f2c27-423d-4aed-8854-eb7b13ce0e08</guid><dc:creator>kw_martin</dc:creator><description>&lt;p&gt;Something is not going right. Sometimes it seems to work, most of the time not. For example:&lt;/p&gt;
&lt;p&gt;1)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Debug -&amp;gt; Debugger -&amp;gt; Target Connection to &amp;quot;GDB Server&amp;quot;&lt;/li&gt;
&lt;li&gt;Debug -&amp;gt; GDB Server -&amp;gt; Type to &amp;quot;J-Link&amp;quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;2) In one termal:&lt;/p&gt;
&lt;p&gt;&amp;gt; JLinkGDBServer -device nRF52840_xxAA -endian little -if SWD -speed 400kHz&lt;br /&gt;SEGGER J-Link GDB Server V6.73b (beta) Command Line Version&lt;br /&gt;&lt;br /&gt;JLinkARM.dll V6.73b (DLL compiled May 15 2020 17:24:15)&lt;br /&gt;&lt;br /&gt;Command line: -device nRF52840_xxAA -endian little -if SWD -speed 400kHz&lt;br /&gt;-----GDB Server start settings-----&lt;br /&gt;GDBInit file:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; none&lt;br /&gt;GDB Server Listening port:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2331&lt;br /&gt;SWO raw output listening port: 2332&lt;br /&gt;Terminal I/O port:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2333&lt;br /&gt;Accept remote connection:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yes&lt;br /&gt;Generate logfile:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; off&lt;br /&gt;Verify download:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; off&lt;br /&gt;Init regs on start:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; off&lt;br /&gt;Silent mode:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; off&lt;br /&gt;Single run mode:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; off&lt;br /&gt;Target connection timeout:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 ms&lt;br /&gt;------J-Link related settings------&lt;br /&gt;J-Link Host interface:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USB&lt;br /&gt;J-Link script:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; none&lt;br /&gt;J-Link settings file:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; none&lt;br /&gt;------Target related settings------&lt;br /&gt;Target device:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nRF52840_xxAA&lt;br /&gt;Target interface:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SWD&lt;br /&gt;Target interface speed:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 400kHz&lt;br /&gt;Target endian:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; little&lt;br /&gt;&lt;br /&gt;Connecting to J-Link...&lt;br /&gt;J-Link is connected.&lt;br /&gt;Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Mar 17 2020 14:43:00&lt;br /&gt;Hardware: V1.00&lt;br /&gt;S/N: 683455871&lt;br /&gt;Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB&lt;br /&gt;Checking target voltage...&lt;br /&gt;Target voltage: 3.30 V&lt;br /&gt;Listening on TCP/IP port 2331&lt;br /&gt;Connecting to target...&lt;br /&gt;Connected to target&lt;br /&gt;Waiting for GDB connection...&lt;/p&gt;
&lt;p&gt;3) My .gdbinit file:&lt;/p&gt;
&lt;p&gt;define hlt&lt;br /&gt;&amp;nbsp; monitor reset&lt;br /&gt;end&lt;br /&gt;define ld&lt;br /&gt;&amp;nbsp; file pca10056/blank/ses/Output/Debug/Exe/twi_sensor_pca10056.elf&lt;br /&gt;end&lt;br /&gt;alias dsc=disconnect&lt;br /&gt;alias to=advance&lt;br /&gt;ld&lt;br /&gt;target remote localhost:2331&lt;br /&gt;hlt&lt;/p&gt;
&lt;p&gt;4) In second terminal:&lt;/p&gt;
&lt;p&gt;&amp;gt; arm-none-eabi-gdb&lt;br /&gt;GNU gdb (7.10-1ubuntu3+9) 7.10&lt;br /&gt;Copyright (C) 2015 Free Software Foundation, Inc.&lt;br /&gt;License GPLv3+: GNU GPL version 3 or later &amp;lt;&lt;a href="http://gnu.org/licenses/gpl.html&amp;gt;"&gt;gnu.org/.../gpl.html&amp;gt;&lt;/a&gt;&lt;br /&gt;This is free software: you are free to change and redistribute it.&lt;br /&gt;There is NO WARRANTY, to the extent permitted by law.&amp;nbsp; Type &amp;quot;show copying&amp;quot;&lt;br /&gt;and &amp;quot;show warranty&amp;quot; for details.&lt;br /&gt;This GDB was configured as &amp;quot;--host=x86_64-linux-gnu --target=arm-none-eabi&amp;quot;.&lt;br /&gt;Type &amp;quot;show configuration&amp;quot; for configuration details.&lt;br /&gt;For bug reporting instructions, please see:&lt;br /&gt;&amp;lt;&lt;a href="http://www.gnu.org/software/gdb/bugs/&amp;gt;."&gt;www.gnu.org/.../&amp;gt;.&lt;/a&gt;&lt;br /&gt;Find the GDB manual and other documentation resources online at:&lt;br /&gt;&amp;lt;&lt;a href="http://www.gnu.org/software/gdb/documentation/&amp;gt;."&gt;www.gnu.org/.../&amp;gt;.&lt;/a&gt;&lt;br /&gt;For help, type &amp;quot;help&amp;quot;.&lt;br /&gt;Type &amp;quot;apropos word&amp;quot; to search for commands related to &amp;quot;word&amp;quot;.&lt;br /&gt;0x00005798 in TMP117_write_reg (pntr=0 &amp;#39;\000&amp;#39;, val=60)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at /home/martin/Dropbox/Nordic/SDK/Workspace/Peripheral/twi_sensor/main.c:174&lt;br /&gt;174&amp;nbsp;&amp;nbsp; &amp;nbsp;ret_code_t TMP117_write_reg(uint8_t pntr, uint16_t val) {&lt;br /&gt;Resetting target&lt;br /&gt;(gdb) &lt;/p&gt;
&lt;p&gt;5)&lt;/p&gt;
&lt;p&gt;There should not be a breakpoint at line 174? This is left over from something previous, I will now try and clear all break points, put a single breakpoint at the beginning of main() in main.c and stop there&lt;/p&gt;
&lt;p&gt;(gdb) del&lt;br /&gt;(gdb) b&lt;br /&gt;Breakpoint 1 at 0x5798: file /home/martin/Dropbox/Nordic/SDK/Workspace/Peripheral/twi_sensor/main.c, line 174.&lt;br /&gt;(gdb) del&lt;br /&gt;Delete all breakpoints? (y or n) y&lt;br /&gt;(gdb) b&lt;br /&gt;Breakpoint 2 at 0x5798: file /home/martin/Dropbox/Nordic/SDK/Workspace/Peripheral/twi_sensor/main.c, line 174.&lt;br /&gt;(gdb) &lt;/p&gt;
&lt;p&gt;6)&lt;/p&gt;
&lt;p&gt;Note, the breakpoint can&amp;#39;t be deleted. The two attempts have different replies, but the breakpoint still remains. I will now try and reset again, and clear all breakpoints&lt;/p&gt;
&lt;p&gt;(gdb) b&lt;br /&gt;Breakpoint 1 at 0x5798: file /home/martin/Dropbox/Nordic/SDK/Workspace/Peripheral/twi_sensor/main.c, line 174.&lt;br /&gt;(gdb) del&lt;br /&gt;Delete all breakpoints? (y or n) y&lt;br /&gt;(gdb) b&lt;br /&gt;Breakpoint 2 at 0x5798: file /home/martin/Dropbox/Nordic/SDK/Workspace/Peripheral/twi_sensor/main.c, line 174.&lt;br /&gt;(gdb) hlt&lt;br /&gt;Resetting target&lt;br /&gt;(gdb) b&lt;br /&gt;Note: breakpoint 2 also set at pc 0x5798.&lt;br /&gt;Breakpoint 3 at 0x5798: file /home/martin/Dropbox/Nordic/SDK/Workspace/Peripheral/twi_sensor/main.c, line 174.&lt;br /&gt;(gdb) del&lt;br /&gt;Delete all breakpoints? (y or n) y&lt;br /&gt;(gdb) b&lt;br /&gt;Breakpoint 4 at 0x5798: file /home/martin/Dropbox/Nordic/SDK/Workspace/Peripheral/twi_sensor/main.c, line 174.&lt;br /&gt;(gdb) &lt;/p&gt;
&lt;p&gt;Still can&amp;#39;t delete it,&lt;/p&gt;
&lt;p&gt;(gdb) cl 174&lt;br /&gt;Deleted breakpoint 4 &lt;br /&gt;(gdb) b&lt;br /&gt;Breakpoint 5 at 0x5798: file /home/martin/Dropbox/Nordic/SDK/Workspace/Peripheral/twi_sensor/main.c, line 174.&lt;br /&gt;(gdb) &lt;/p&gt;
&lt;p&gt;Still can&amp;#39;t delete it. Let&amp;#39;s try and put a breakpoint at the beginning of main and stop there&lt;/p&gt;
&lt;p&gt;(gdb) b main&lt;br /&gt;Breakpoint 6 at 0x5b4c: file /home/martin/Dropbox/Nordic/SDK/Workspace/Peripheral/twi_sensor/main.c, line 359.&lt;br /&gt;(gdb) c&lt;br /&gt;Continuing.&lt;br /&gt;&lt;br /&gt;Breakpoint 5, 0x00005798 in TMP117_write_reg (pntr=0 &amp;#39;\000&amp;#39;, val=60)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at /home/martin/Dropbox/Nordic/SDK/Workspace/Peripheral/twi_sensor/main.c:174&lt;br /&gt;174&amp;nbsp;&amp;nbsp; &amp;nbsp;ret_code_t TMP117_write_reg(uint8_t pntr, uint16_t val) {&lt;br /&gt;(gdb) &lt;/p&gt;
&lt;p&gt;It skipped the breakpoint at the beginning of main and kept going until the breakpoint at line 174, and bt doesn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;(gdb) bt&lt;br /&gt;#0&amp;nbsp; 0x00005798 in TMP117_write_reg (pntr=0 &amp;#39;\000&amp;#39;, val=60)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at /home/martin/Dropbox/Nordic/SDK/Workspace/Peripheral/twi_sensor/main.c:174&lt;br /&gt;#1&amp;nbsp; 0x1a2e058a in ?? ()&lt;br /&gt;Backtrace stopped: previous frame identical to this frame (corrupt stack?)&lt;br /&gt;(gdb) &lt;/p&gt;
&lt;p&gt;Some other questions: I need gdb so I can do the equivalent of calling a function at a breakpoint. Is it possible to do something like this directly in SES using jlink rather than GDB Server? I see there is a debug window, but it doesn&amp;#39;t respond to gdb like commands.&lt;/p&gt;
&lt;p&gt;Second question, running SES with jlink, I can see variables in the local window, and I can see some variables in the global window, but I can&amp;#39;t see my static global variables in the global window, although when I hover over them with the mouse, I can see their values.&lt;/p&gt;
&lt;p&gt;Finally, have I missed some documentation that explains how to use gdb with SES, the Segger documentation has almost no information.&lt;/p&gt;
&lt;p&gt;When I quite everything, and started back up, the break point situation seemed to get better. But when I changed the code, and rebuilt the binary, the break points stopped working correctly again. It looks like there is something going wrong with the GDB Server and running gdb (at least to me).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running GDB with SES and nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/257430?ContentTypeID=1</link><pubDate>Mon, 29 Jun 2020 14:09:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c442037a-c778-47cb-ade4-7d8b2b288326</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You are attaching to an already running target, since your .gdbinit does not include a reset.&lt;/p&gt;
&lt;p&gt;This should give the desired effect:&lt;/p&gt;
&lt;p&gt;b main&lt;br /&gt;mon reset&lt;br /&gt;c&lt;/p&gt;
&lt;p&gt;That is, you need to reset the target in order to start executing from the &amp;quot;beginning&amp;quot;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running GDB with SES and nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/257199?ContentTypeID=1</link><pubDate>Fri, 26 Jun 2020 17:15:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9760fa12-5080-4d05-9b78-111afe88344a</guid><dc:creator>kw_martin</dc:creator><description>&lt;p&gt;I have looked at &lt;a href="https://wiki.segger.com/Embedded_Studio_with_GDB_Server"&gt;SES GDB LINK&lt;/a&gt; but it doesn&amp;#39;t seem to work. I have set:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Debug -&amp;gt; Debugger -&amp;gt; Target Connection to &amp;quot;GDB Server&amp;quot;&lt;/li&gt;
&lt;li&gt;Debug -&amp;gt; GDB Server -&amp;gt; Type to &amp;quot;J-Link&amp;quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And I have GDB Server Command Line is &amp;quot;$(JLinkDIR)/JLinkGDBServerCL&amp;quot; -device &amp;quot;$(DeviceName)&amp;quot; -silent.&lt;/p&gt;
&lt;p&gt;Information on how to start the gdb client is missing, but with help from Turbo J above, I have in my .gdbinit file:&lt;/p&gt;
&lt;p&gt;file pca10056/blank/ses/Output/Debug/Exe/twi_sensor_pca10056.elf&lt;br /&gt;target remote localhost:2331&lt;/p&gt;
&lt;p&gt;and I started gdb with&lt;/p&gt;
&lt;p&gt;&amp;gt; arm-none-eabi-gdb&lt;br /&gt;GNU gdb (7.10-1ubuntu3+9) 7.10&lt;br /&gt;Copyright (C) 2015 Free Software Foundation, Inc.&lt;br /&gt;License GPLv3+: GNU GPL version 3 or later &amp;lt;&lt;a href="http://gnu.org/licenses/gpl.html&amp;gt;"&gt;gnu.org/.../gpl.html&amp;gt;&lt;/a&gt;&lt;br /&gt;This is free software: you are free to change and redistribute it.&lt;br /&gt;There is NO WARRANTY, to the extent permitted by law.&amp;nbsp; Type &amp;quot;show copying&amp;quot;&lt;br /&gt;and &amp;quot;show warranty&amp;quot; for details.&lt;br /&gt;This GDB was configured as &amp;quot;--host=x86_64-linux-gnu --target=arm-none-eabi&amp;quot;.&lt;br /&gt;Type &amp;quot;show configuration&amp;quot; for configuration details.&lt;br /&gt;For bug reporting instructions, please see:&lt;br /&gt;&amp;lt;&lt;a href="http://www.gnu.org/software/gdb/bugs/&amp;gt;."&gt;www.gnu.org/.../&amp;gt;.&lt;/a&gt;&lt;br /&gt;Find the GDB manual and other documentation resources online at:&lt;br /&gt;&amp;lt;&lt;a href="http://www.gnu.org/software/gdb/documentation/&amp;gt;."&gt;www.gnu.org/.../&amp;gt;.&lt;/a&gt;&lt;br /&gt;For help, type &amp;quot;help&amp;quot;.&lt;br /&gt;Type &amp;quot;apropos word&amp;quot; to search for commands related to &amp;quot;word&amp;quot;.&lt;br /&gt;0x000089c2 in delay_machine_code.7862 ()&lt;br /&gt;(gdb) b main&lt;br /&gt;Breakpoint 1 at 0x5964: file /home/martin/Dropbox/Nordic/SDK/Workspace/Peripheral/twi_sensor/main.c, line 274.&lt;br /&gt;(gdb) c&lt;br /&gt;Continuing.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The breakpoint at the beginning of main.c is being ignored.&lt;/p&gt;
&lt;p&gt;A step-by-step tutorial on how to use gdb with SES would be very helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running GDB with SES and nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/257100?ContentTypeID=1</link><pubDate>Fri, 26 Jun 2020 10:54:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce1d9656-b2f3-4d52-ac19-f12c233a3e9e</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see that Segger has some information on using &lt;a href="https://wiki.segger.com/Embedded_Studio_with_GDB_Server"&gt;Embedded Studio with GDB Server&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For TWI related questions, please create a separate thread for that. It is definitely a different topic.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running GDB with SES and nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/256977?ContentTypeID=1</link><pubDate>Thu, 25 Jun 2020 14:45:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0765c16b-cfb2-4f01-92b2-2ff3095435cd</guid><dc:creator>kw_martin</dc:creator><description>&lt;p&gt;This helps; it is what I was missing. I must admit I didn&amp;#39;t see it anywhere in the manuals. I am using SES and would prefer to run gdb through the IDE, but the degug terminal is completely blank, so I don&amp;#39;t know how to run in the IDE (it is also very small, but I assume I can disattach it and then maybe make the font larger?). If you could give some suggestions on how to get the debug window configured to run gdb in the IDE, it would be appreciated. In the meantime, using JLinkGDBServer, I assume if I run it in the directory that contains main.c, I can load the symbol table using something like &amp;gt;file pca10056/blank/ses/Output/Debug/Exe/twi_sensor_pca10056.elf, and I can put both commands in a .gdbinit file in the same directory as main.c? If you have any links suggesting best practices of using gdb with SES, it would be appreciated. Does having gdb running with breakpoints and watches set slow down RTT? If just breakpoints and no watches are set, is RTT slowed down? If neither watches or breakpoints are set, does the program run full speed except for the RTT overhead? Thanks.&lt;/p&gt;
&lt;p&gt;Finally, maybe I should start a new thread for this, but if you have a link for a TWI peripheral example, (not a TWIM) example, it would be appreciated. It seems to me that for initialization, and short data segments, to many different devices, you don&amp;#39;t really want a DMA handler, as then you need a mux in the handler to know what device is sending the data? or you need to just wait for completion, with a global wait variable as is done in the twi_sensor project (which should be named twim_sensor?). (Please note these are questions not statements and if I should start new thread for twi vs twim, please let me know.&lt;/p&gt;
&lt;p&gt;Finally, finally, thank you for getting back so quickly, your quick replay has saved a lot of time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running GDB with SES and nRF52840DK</title><link>https://devzone.nordicsemi.com/thread/256965?ContentTypeID=1</link><pubDate>Thu, 25 Jun 2020 14:05:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd42deb3-ebed-4420-8a12-4ccae06136fc</guid><dc:creator>Turbo J</dc:creator><description>[quote userid="90615" url="~/f/nordic-q-a/63032/running-gdb-with-ses-and-nrf52840dk"]seems to connect but then hangs without a prompt, and I can&amp;#39;t run any gdb commands, anything typed in the window has no effect. I running under Ubuntu 18.04[/quote]
&lt;p&gt;Operating as intended.&lt;/p&gt;
&lt;p&gt;You are supposed to connect via arm-none-eabi-gdb, &amp;quot;target remote localhost:2331&amp;quot;. You will need to run this on another terminal, as the one with the Jlink GDB server is blocked for JLink diagnostic output.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Edit: The SES debugging probably does this already for you, if you can debug a project in the IDE.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>