mattairtech / ArduinoCore-samd

This is a fork from arduino/ArduinoCore-samd on GitHub. This will be used to maintain Arduino support for SAM D|L|C (M0+ and M4F) boards including the MattairTech Xeno Mini and the MT-D21E (see https://www.mattairtech.com/). It adds support for new devices like the D51, L21, C21, and D11. It also adds new clock sources, like a high speed crystal or internal oscillator.
104 stars 43 forks source link

Cannot Build Bootloader #5

Closed fabltd closed 7 years ago

fabltd commented 7 years ago

The release link does not download the build tools.

The beta link does down load the tools.

How ever the following error is produced:

\1.0.0-mattairtech-1\CMSIS\Device\ATMEL\samd21\include\samd21g18a.h(237,26): error: core_cm0plus.h: No such file or directory

mattairtech commented 7 years ago

Yes, definitely use 1.6.8-beta-b0 (the release link is for an older version of the bootloader anyway). Be sure to download both the Arduino SAMD Boards package, as well as the MattairTech M0+ Boards (1.6.8-beta-b0+).

I have just corrected the makefile to work on Windows. It looks like the Windows version of the Arduino IDE does not install the stock tools from arduino into the Arduino15\packages\MattairTech_Arduino\tools\ directory, instead relying on the versions in the Arduino15\packages\arduino\tools\ directory. This works fine for compiling and uploading sketches (and installing the bootloader), but the bootloader needed to have the extra arduino tools path added.

Then, download make from http://gnuwin32.sourceforge.net/packages/make.htm (choose the full package w/o source). Make note of the install /bin directory and add it to your PATH or just copy the 3 files in the bin directory to the bootloader root directory (with the Makefile). Be sure that no other version of make is in your PATH (ie: MinGW).

I tested this out on Windows 7 64-bit and it compiled. I have also updated the bootloader documentation with these changes.