@@ -64,7 +64,7 @@ import (
6464Build the [ TamaGo compiler] ( https://github.com/usbarmory/tamago-go )
6565(or use the [ latest binary release] ( https://github.com/usbarmory/tamago-go/releases/latest ) ):
6666
67- ```
67+ ``` sh
6868wget https://github.com/usbarmory/tamago-go/archive/refs/tags/latest.zip
6969unzip latest.zip
7070cd tamago-go-latest/src && ./all.bash
@@ -74,7 +74,7 @@ cd ../bin && export TAMAGO=`pwd`/go
7474Go applications can be compiled as usual, using the compiler built in the
7575previous step, but with the addition of the following flags/variables:
7676
77- ```
77+ ``` sh
7878GOOS=tamago GOOSPKG=github.com/usbarmory/tamago GOARM=7 GOARCH=arm \
7979 ${TAMAGO} build -ldflags " -T 0x80010000 -R 0x1000" main.go
8080```
@@ -85,7 +85,7 @@ is [available](https://github.com/usbarmory/tamago-example).
8585Build tags
8686==========
8787
88- The following build tags allow application to override the package own
88+ The following build tags allow applications to override the package own
8989definition for the ` runtime/goos ` overlay:
9090
9191* ` linkramsize ` : exclude ` ramSize ` from ` mem.go `
@@ -109,7 +109,7 @@ Native hardware: imx image on microSD
109109
110110Copy the built ` imx ` image to a microSD as follows:
111111
112- ```
112+ ``` sh
113113sudo dd if=< path to imx file> of=/dev/sdX bs=1M conv=fsync
114114```
115115* IMPORTANT* : /dev/sdX must be replaced with your microSD device (not eventual
@@ -132,7 +132,7 @@ Standard output
132132The standard output can be accessed through the debug console found
133133on micro USB connector J1901 and the following ` picocom ` configuration:
134134
135- ```
135+ ``` sh
136136picocom -b 115200 -eb /dev/ttyUSB0 --imap lfcrlf
137137```
138138
@@ -150,7 +150,7 @@ set remote hardware-watchpoint-limit 4
150150
151151Example:
152152
153- ```
153+ ``` sh
154154# start openocd daemon
155155openocd -f interface/ftdi/jtagkey.cfg -f target/imx6ul.cfg -c " adapter speed 1000"
156156
173173
174174The target can be executed under emulation as follows:
175175
176- ```
176+ ``` sh
177177qemu-system-arm \
178178 -machine mcimx6ul-evk -cpu cortex-a7 -m 512M \
179179 -nographic -monitor none -serial null -serial stdio \
@@ -185,7 +185,7 @@ The emulated target can be debugged with GDB by adding the `-S -s` flags to the
185185previous execution command, this will make qemu waiting for a GDB connection
186186that can be launched as follows:
187187
188- ```
188+ ``` sh
189189arm-none-eabi-gdb -ex " target remote 127.0.0.1:1234" example
190190```
191191
0 commit comments