Thanks for the notes, very useful. Now that there are multiple cores on
the Pi, compiling with GCC is a lot less painful.
There are JLink drivers available for ARM targets now as well, which is
nice for this kind of thing. We use the Pi3 for production all the time,
flashing boards with the JLink.
Go to https://www.segger.com/downloads/jlink and select 'J-Link Software
and Documentation pack for Linux ARM systems'
That will give you JLinkExe as well as GDB server, etc.
Kevin
On 20/04/17 19:16, marko kiiskila wrote:
Hi,
I jotted the major steps to duplicate what I did, in case
there are others interested in this.
1. Download rasbian image
https://www.raspberrypi.org/downloads/raspbian/
and follow instructions on how to get it to microSD card.
2. Boot the system, set up networking.
3. Install golang
https://golang.org/dl/
You can use the binary version built for armv6l.
I used this one: go1.8.1.linux-armv6l.tar.gz
4. Install & build newt
Follow tutorial
http://mynewt.apache.org/latest/faq/go_env
starting from step 2
5. Get blinky
newt new blinky
modify project.yml to use 0-dev (latest from master) as the version.
newt install
6. Change to use sim-armv7 as your architecture
modify the following lines repos/apache-mynewt-core/hw/bsp/native/bsp.yml
bsp.arch: sim-armv7
bsp.compiler: compiler/sim-armv7
7. Build and run 'my_blinky_sim'
newt run my_blinky_sim
—
M