Hi,
I'm trying to run the gdb on the nRF52 with softdevice s132 and in the begining it runs ok but after some time when I run (gdb) list I get: "Line number 435 out of range; main.c has 434 lines."
can somebody help with this?
Hi,
I'm trying to run the gdb on the nRF52 with softdevice s132 and in the begining it runs ok but after some time when I run (gdb) list I get: "Line number 435 out of range; main.c has 434 lines."
can somebody help with this?
To me, it's not clear, what you've tried and what failed. I use gdb regular in conjunction with nRF52s, without problems.
do you use the softdevice s132? also which IDE do you use? and on which OS (linux?) do you know where I can get a good explanation on how to debug nRF52 with arm-none-eabi-gdb?
Searching for similar error messages, I see that some people on other platforms have had this issue when the file ends in a new line with a space character. When they deleted the space, the error disappeared.
Note:
With the release of SDK 14.1, we have added support for Segger Embedded Studio (SES) IDE. SES is cross-platform, and can be used on Windows, Mac OS X, and Linux. You can use Segger Embedded Studio for commercial and non-commercial purpose with Nordic Semiconductor devices free of charge without any code limit. See this article for more information. I would therefore recommend using SES.
You can download SDK 14.1 here.
You can download Segger Embedded Studio from here.
thanks Sigurd that solved it.
Sorry for the late answer: Yes, currently, most of the time I use S132, without IDE on OS/X. A good start would be the JLink documentation and then the original GDB documentation.