Okay, I've managed to gather all the required files for a build from the Arduino IDE and put them here: https://tclinux.de/due.tar.gz
Thats 100 MB :-(
-> Including the GCC Toolchain, which can be omitted.
A simple Testprogram looks like that:
[#include](https://forum.espruino.com/search/?q=%23include) "../include/due_sam3x.init.h"
/**
* Simply blink the amber LED on the DUE with 2Hz:
*/
int main(void)
{
/* The general init (clock, libc, watchdog ...) */
init_controller();
/* Board pin 13 == PB27 */
PIO_Configure(PIOB, PIO_OUTPUT_1, PIO_PB27, PIO_DEFAULT);
/* Main loop */
while(1) {
Sleep(250);
if(PIOB->PIO_ODSR & PIO_PB27) {
/* Set clear register */
PIOB->PIO_CODR = PIO_PB27;
} else {
/* Set set register */
PIOB->PIO_SODR = PIO_PB27;
}
}
return 0;
}
So step 4 is done. Now I'm trying to modify Espruino to compile for the Arduino Due. If anyone wants to help, feel free to do so.
This might take some time!
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Okay, I've managed to gather all the required files for a build from the Arduino IDE and put them here: https://tclinux.de/due.tar.gz
Thats 100 MB :-(
-> Including the GCC Toolchain, which can be omitted.
A simple Testprogram looks like that:
You can compile it with:
So step 4 is done. Now I'm trying to modify Espruino to compile for the Arduino Due. If anyone wants to help, feel free to do so.
This might take some time!
Thomas
Credits: Arduino IDE
Tutorial from: http://www.atwillys.de/content/cc/using-custom-ide-and-system-library-on-arduino-due-sam3x8e/?lang=en
-> But the Tutorial is outdated and has some errors. I needed to correct them.