gtalusan / PADIIoTStamp

Arduino board package for PADI IoT Stamp from PINE64
17 stars 9 forks source link

Fails with most recent Ameba package and Linux hosts #4

Open schnommus opened 7 years ago

schnommus commented 7 years ago

Installing this package fails with the most recent ameba-arduino package (2.0.2), due to dependency issues. Also, there aren't host identifiers listed for linux hosts.

The following patch fixes the issues: ameba_hosts_patch.txt

(everything below here is just bonus information for others)

For anyone else who is trying to get this to work on Linux (Arch in my case), and bleeding edge OpenOCD and GCC7; you will also have to

schnommus commented 7 years ago

Another note: If you are using the JLINK adapter that is shipped by PINE64, the JLINK debugger setting in the arduino IDE won't work, because it will set the adapter to JTAG mode instead of SWD mode, which is what you need.

This can be easily fixed by adding another line at the end of the existing openocd jlink.cfg config with `transport select swd'. A better solution would be to add an option to board.txt (i.e selectable IDE options) for JLINK (JTAG) and JLINK (SWD) and just have 2 different scripts - which is what I did on my machine.