Skip to content

MIMXRT1060 EVK

Fanda Vacek edited this page Aug 5, 2020 · 8 revisions

MIMXRT1060-EVK: i.MX RT1060 Evaluation Kit

compile Nuttx

cd /home/fanda/proj/nx/nuttx
make distclean
./tools/configure.sh imxrt1060-evk:nsh
make menuconfig 
make

Add udev rules for CMSIS DAP

https://arm-software.github.io/CMSIS_5/DAP/html/index.html

cmsis-dap.rules

cp cmsis-dap.rules /etc/udev/
cd /etc/udev/rules.d && ln -s ../cmsis-dap.rules 89-cmsis-dap.rules && udevadm control --reload-rules

openOCD

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

imxrt.cfg

/opt/openocd/bin/openocd -d -f imxrt.cfg

connect to openOCD

telnet localhost 4444

Flashing

Flashing using openOCD

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

Flashing using mass-storage

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

connect to serial console

tio /dev/ttyACM0 

(press ENTER twice to show prompt)

GDB

Launch GDB

gdb-multiarch /home/fanda/proj/nx/nuttx/nuttx

Connect gdb to target from gdb prompt

target remote localhost:3333