jmgomez-IAA / loogbook

Personal web page
0 stars 0 forks source link

Post Ideas: Programar Atmel SAM4S #16

Open jmgomez-IAA opened 6 years ago

jmgomez-IAA commented 6 years ago

Hacer un 0 to 100% sobre como programar la SAM4S Xplained Pro.

jmgomez-IAA commented 6 years ago

https://boundarydevices.com/debugging-using-segger-j-link-jtag/

jmgomez-IAA commented 6 years ago

openOCD from source, git clone git://git.code.sf.net/p/openocd/code openocd

jmgomez-IAA commented 6 years ago

edbg git clone https://github.com/ataradov/edbg make all No dependencias para arch linux.

jmgomez-IAA commented 6 years ago

Progress per https://wiki.segger.com/IMX6SX

1.) working at /opt/SEGGER/JLink_V614b/ 2.) create /opt/SEGGER/JLink_V614b/JLinkDevices.xml and paste JLinkDevices.xml from https://wiki.segger.com/IMX6SX 3.) change JLinkScriptFile entry to IMX6SoloX_Connect_CortexA9.JLinkScript 4.) copy Samples/JLink/Scripts/IMX6SoloX_Connect_CortexA9.JLinkScript Devices/NXP/. 5.) get flashing algorithm; wget https://wiki.segger.com/images/e/ec/NXP_iMX6SX_SABRE_Board_QSPI_ReferenceFlashAlgorithm.zip 6.) unzip NXP_iMX6SX_SABRE_Board_QSPI_ReferenceFlashAlgorithm.zip 7.) run; JLinkExe -device MCIMX6X1_A9 -if JTAG -speed 1000 -JTAGConf -1,-1 … Cortex-A9 identified.

jmgomez-IAA commented 6 years ago

Hi,

1) There’s no boot requirement for kernel JTAG debugging so as you like. 2) Well you need to attach before the crash happens. Some add a “while(true);” loop at the beginning of kernel initialization (after MMU enablement) so you have time to connect. Then you can step out of the loop with the JTAG. https://elinux.org/images/f/ff/JTAG_In_Linux_Driver_Debug_Anderson.pdf 3) Please have a look at segger and eclipse forums for app debugging: https://forum.segger.com/ https://www.eclipse.org/forums/index.php

Regards