The action of finding and removing bugs in computer code.
Questions tagged [debug]
65 questions
11
votes
2 answers
Log output of background or boot script
I have a short script which is executed by a system daemon for particular events. I know the event is occurring and the script is executing, but it does not do what I intend. Strangely, it does when I run it manually, so I am very confused.
How…
goldilocks
- 60,325
- 17
- 117
- 234
11
votes
1 answer
How to debug without "Program received signal SIGILL" using the 3.18 kernel (3.12 works)?
I tried to debug a program with gdb in Raspbian, but all I get is:
Program received signal SIGILL, Illegal instruction.
0xb6fe8acc in ?? () from /lib/ld-linux-armhf.so.3
It doesn't help to set the SIGILL handle to nostop (handle SIGILL…
someonr
- 253
- 1
- 2
- 9
9
votes
1 answer
How to correctly restart wpa_supplicant debug with networkd-systemd?
I am trying to debug setting up wifi with networkd-systemd managing wpa_supplicant. The overall objective is to get wifi AP and managed client modes working at the same time. I can get managed client working. I can't get the AP mode working.
To…
dazz
- 175
- 1
- 1
- 9
8
votes
3 answers
What's causing these crashes after cross-compiling?
I'm trying to cross-compile a large library (TensorFlow) using gcc on Ubuntu. I've installed the g++-arm-linux-gnueabihf toolchain, and was able to successfully build my binary. The process I'm using to build is documented…
Pete Warden
- 181
- 1
- 4
7
votes
0 answers
Debugging a RPi using SWD
Has anybody been able to figure out how to debug a Raspberry Pi 3 model B using SWD? To be clear, I'm looking to debug the Pi itself using SWD. We've tried setting up the GPIO pins to use JTAG-SWD, but we get no reply when sending SWD handshake…
jloloew
- 71
- 1
7
votes
7 answers
Testing Raspberry Pi scripts on a PC
I'm writing a Raspberry Pi program, to run stuff, take inputs from sensors, save in database and synchronise to a server.
Is there a way to test it on the PC before deploying it to the Raspberry Pi? Because there are too many GPIO operations, I want…
Lynob
- 257
- 1
- 2
- 11
6
votes
1 answer
How to change the kernel commandline for ArchLinuxARM on Raspberry Pi effectly?
I'm using the raspberry pi with the latest ArchLinuxARM image.
I'm having issues with the linux kernel and it randomly panics with 'kernel paging request' errors.
I've found a solution to enable slub debugging in the linxu kernel here and here which…
q9f
- 221
- 3
- 4
- 11
5
votes
4 answers
Remote debugging with Visual Studio 2015
I am trying to debug my app that I just deployed to my RPi 2 using Visual Studio Remote Debugger. Does anybody have experience doing this and can point me to how to get started with it?
IngeniouSeven
- 61
- 2
- 3
5
votes
1 answer
Accessing Raspberry Pi JTAG randomly fail
I am trying to debug a Raspberry Pi 3B (rev 1.2) bare metal application using JTAG. I have no JTAG adapter so I am using another Raspberry Pi (3B rev 1.2) as JTAG adapter. I am using OpenOCD and it looks like it's working. I can access all cores but…
Misaz
- 128
- 8
4
votes
2 answers
Visualize execution of scripts
I have a script that always runs on the Raspberry Pi.
I defined with sudo nano /etc/rc.local so that they turn even after a reboot or a power failure.
My question is how can visualize the execution of my scrpits after rebooting or power failure…
Amélie
- 41
- 1
4
votes
2 answers
How to see debug logs from Raspberry Pi 3 during boot process?
I am currently trying to debug a "black screen" on a Raspberry Pi. The Pi is plugged to an in-house PCB using connector of the Pi and the LCD screen is connected on this in-house board.
The Linux distro was built with Yocto.
Now, sometimes though…
user81908
4
votes
1 answer
Raspberry pi 3 openocd debugging jtag scan interrogation fail all zeroes problem
I am trying to debug a bare metal application using openocd (seggers does not provide support for the cortex a-53 so jlink won't work). I installed openocd following this set of instructions.
However when I call the command:
openocd -f…
Makogan
- 191
- 1
- 1
- 7
4
votes
4 answers
Cannot deploy to Raspberry Pi from Visual Studio
I'm having exactly the same issue than here:
When I'm in Visual Studio, and I try to deploy I got some error messages:
1>Error: Unable to connect to the Microsoft Visual Studio Remote Debugger named '192.168.0.25'. The Visual Studio 2015 Remote…
J4N
- 293
- 1
- 3
- 9
3
votes
1 answer
Clients cannot connect to pivpn server anymore
I have been using and enjoying pivpn for nearly a year now. I am running pivpn and Pi-hole on the same RasPi without issues until now. Recently I have not changed anything besides the occasional apt update&upgrade. But now my devices cannot connect…
jaaq
- 173
- 1
- 7
3
votes
1 answer
Where to find debug output from SD driver?
I have trouble with some SD Cards so I enabled debug output from SD driver with sd_debug=on in /boot/config.txt. I have looked with journalctl and checked the files in /var/log and in /tmp but cannot find any debug information.
Where to find the…
Ingo
- 42,961
- 20
- 87
- 207