-
Notifications
You must be signed in to change notification settings - Fork 13
MIMXRT1060 EVK
Fanda Vacek edited this page Aug 5, 2020
·
8 revisions
cd /home/fanda/proj/nx/nuttx
make distclean
./tools/configure.sh imxrt1060-evk:nsh
make menuconfig
make
https://arm-software.github.io/CMSIS_5/DAP/html/index.html
cp cmsis-dap.rules /etc/udev/
cd /etc/udev/rules.d && ln -s ../cmsis-dap.rules 89-cmsis-dap.rules && udevadm control --reload-rules
Compile openOCD
git clone https://git.code.sf.net/p/openocd/code openocd-code
cd openocd-code
./bootstrap
cd ..
mkdir build && cd build
../openocd-code/configure --enable-maintainer-mode --prefix=/opt/openocd \
--enable-ftdi --enable-parport --enable-usbprog --enable-cmsis-dap \
--enable-ep93xx --enable-at91rm9200 --enable-jlink --enable-arm-jtag-ew \
--enable-rlink --enable-usb_blaster_libftdi --enable-vsllink
make
make install
run openOCD
/opt/openocd/bin/openocd -d -f imxrt.cfg
connect to openOCD
telnet localhost 4444
command openOCD via telnet to flash device unfortunatell doesn't work with current version of openOCD, so following command probably will not work, but you can still at least reset the device using reset
command.
> program /home/fanda/proj/nx/nuttx/nuttx verify reset
Fortunately the firmware can be flashed copying elf file to USB mass storage created when device is plugged to PC
cp /home/fanda/proj/nx/nuttx/nuttx /media/fanda/RT1060-EVK/
then reset board using openOCD telnet connection on port 4444 using command reset
tio /dev/ttyACM0
(press ENTER twice to show prompt)
Launch GDB
gdb-multiarch /home/fanda/proj/nx/nuttx/nuttx
Connect gdb to target from gdb prompt
target remote localhost:3333