Press 'p' to enter presentation mode. Or even better:
13-03-2023
Fab Academy 2023
by: Henk & Nicolas
Press 'p' to enter presentation mode. Or even better:
1-Attitude 2-General principles 3-Multimeter 4-Logical analyzers 5-Oscilloscope 6-How to debug almost anything kit 7-Flashing your board 8- Microcontroller debugging 9-Serial (or any) "Hello world!" 10-USB and computer detection 11 -Radio Communications
Don't forget to undrestand what you just read!
Big chance the problem is located here.
Big chance the problem is located here.
Big chance the problem is located here.
Saleae, Pulseview with Cypress CY7C68013A, ...
And what can go wrong
edbg -b -l
edbg -ebpv -t <processor> -f <program.bin>
flags:
Common problems
RX
and TX
connected together with a 4.7k
resistor or diode1.5k
and 10k
will work)pymcuprog -d <processor> -t uart -u <port> -v info erasepymcuprog -d <processor> -t uart -u <port> -v info write -f <program.hex>
Arduino IDE
4.7k
resistor or diode SLOW (57600 bauds)" programmerCommon problems
RX
and TX
connected together?Advanced debugging
apt get install openocd
openocd.cfg
:source [find interface/cmsis-dap.cfg]set CHIPNAME at91samd11c14source [find target/at91samdXX.cfg]
openocd
arm-none-eabi-gdb -iex "target extended-remote localhost:3333"
Debugging SAM-Based Arduino® Boards:
https://docs.arduino.cc/tutorials/mkr-wifi-1010/atmel-ice
Sending internal info through communication line
Example:
#define DEBUG_MODE 1...#if DEBUG_MODE Serial.print("DEBUG -- MyVal value = "); Serial.println(MyVal, DEC);#endif
Check your USB device can be found by the OS
$ lsusbBus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 001 Device 003: ID 046d:c05a Logitech, Inc. M90/M100 Optical MouseBus 001 Device 004: ID 413c:2011 Dell Computer Corp. Multimedia Pro Keyboard
$ lsusbBus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hubBus 001 Device 003: ID 046d:c05a Logitech, Inc. M90/M100 Optical MouseBus 001 Device 004: ID 413c:2011 Dell Computer Corp. Multimedia Pro KeyboardBus 001 Device 029: ID 6666:6666 Prototype product Vendor ID
If nothing :
If declared but doesn't work :
How to see what you can't even touch?
1-Attitude 2-General principles 3-Multimeter 4-Logical analyzers 5-Oscilloscope 6-How to debug almost anything kit 7-Flashing your board 8- Microcontroller debugging 9-Serial (or any) "Hello world!" 10-USB and computer detection 11 -Radio Communications
Keyboard shortcuts
↑, ←, Pg Up, k | Go to previous slide |
↓, →, Pg Dn, Space, j | Go to next slide |
Home | Go to first slide |
End | Go to last slide |
Number + Return | Go to specific slide |
b / m / f | Toggle blackout / mirrored / fullscreen mode |
c | Clone slideshow |
p | Toggle presenter mode |
t | Restart the presentation timer |
?, h | Toggle this help |
Esc | Back to slideshow |