v1oopc installation on linux

How to install bmptk, hwlib en v1oopc-examples on linux. You will need: Linux, and an Arduino Due.

In your working directory, clone the following repos:

git clone https://github.com/wovo/v1oopc-examples
git clone https://github.com/wovo/hwlib
git clone https://github.com/wovo/bmptk

The install succeeds if the examples from the first repository work. That is, if you run

sudo make run

in one of the v1oopc-examples dirs, for example v1oopc-examples/16-02-blink, the outcome should be approximately as follows:

$ sudo make run
stty -F /dev/ttyACM0 speed 1200 cs8 -cstopb -parenb 
1200
/~~~~/bossac -p ttyACM0 -U false -e -w -v -b main.bin -R
Atmel SMART device 0x285e0a60 found
Erase flash
done in 0.037 seconds

Write 2216 bytes to flash (9 pages)
[==============================] 100% (9/9 pages)
done in 0.438 seconds

Verify 2216 bytes of flash
[==============================] 100% (9/9 pages)
Verify successful
done in 0.409 seconds
Set boot flash true
CPU reset.

A few steps are required to complete the installation however.

(1) Follow the requirements listed in the manual (git, make, .. )

(2) Set the variables TI-SOFTWARE and BMPTK in v1oopc/Makefile.link

(3) Fix the capitalization linking error in v1oopc/Makefile.link, so the line reads:

# include hwlib
HWLIB ?= $(TI-SOFTWARE)/hwlib
include $(HWLIB)/makefile.inc

(4) In bmptk/makefile.local, line 86:

set SERIAL_PORT := $(SERIAL_PORT_DUE) #instead of SERIAL_PORT_UNO

(4) There is a dependency on bossac. If bossac is not packaged for your distribution, simply download the bossac 1.7 executable, and set the following line in bmptk/Makefile.inc, line 120:

BOSSAC ?= your_path_to/bossac

Steps 1-4 are sufficient to get the examples working on Fedora (as of 13-9-2018).

v2cpse Installation on linux

How to install rtos and v2cpse-assignments on linux. You should first finish the v1oopc guide.

In your working directory, clone the following repos:

git clone https://github.com/wovo/v2cpse1-assignments
git clone https://github.com/wovo/v2cpse1-rtos

The install succeeds if calling ‘sudo make run’ in one of the assignment dirs, such as v2cpse1-assignments/w1-demo, results in the familiar outcome (see v1oopc guide).

(1) Set the BMPTK in the v2cpse1-assignments/Makefile.link

(2) Change the capitalization in v2cpse1-assignments/Makefile.link to read

# add hwlib
HWLIB ?= $(TI-SOFTWARE)/hwlib
include $(HWLIB)/makefile.inc

The installation should now work.

Thank you Wouter and Sebastiaan S for debugging.