View: 12353|Reply: 12

Arduino-1.6.7-arm (AVR, ARM STM32, ESP8266 toolchains)

[Copy link]

11

threads

75

posts

376

credits

Intermediate member

Rank: 3Rank: 3

credits
376
Published in 2016-4-17 23:18:13 | Show all floors |Read mode
Edited by bhgv at 2016-6-22 11:17

hi,

i've just built Arduino-1.6.7 (using https://github.com/ShorTie8/Arduino_IDE ). lubuntu, orange pi 2.
has tested on sparkfun pro micro board (chinese clone from aliexpress). tested usb upload (atmega32u4), usb serial communication and different leds blinking/buttons pushing. all worked well.

link to package (arduino-1.6.7.bld-1.tgz):
            https://mega.nz/#F!NkwiBLQI!uQ20eQo_cVA40tN_ZNWdUA
        
just untar it say to ~/ and run ~/arduino-1.6.7/arduino . to use usbasp (i use this programmer) it needs to sudo arduino

0

threads

6

posts

44

credits

Novice

Rank: 1

credits
44
Published in 2016-4-18 00:28:36 | Show all floors
Hi , is it with esp8266 library, have some difficultes with download from properties/additional board web , there is no option

11

threads

75

posts

376

credits

Intermediate member

Rank: 3Rank: 3

credits
376
 Author| Published in 2016-4-18 01:49:19 | Show all floors
it works only with AVR standard boards current. the boards from the arduino's downloader come with 386 toolchains (gcc). they must be replaced/ported to ARM ones.
it's need to compile or take somewhere only the arm-gcc compiler to your target. libs and headers may be used from 386-linux platform. install your package, install the gcc to your platform and correct keys, paths to compiler/includes/libs in  the ~/.arduino15/packages/arduino/hardware/...your_package.../platform.txt

i don't know where may be found sources of gcc compiler (or arm hosted build) for esp8266. maybe here https://github.com/esp8266/esp8266-wiki/wiki/Toolchain ? you can try to build it yourself. it's interesting.

11

threads

75

posts

376

credits

Intermediate member

Rank: 3Rank: 3

credits
376
 Author| Published in 2016-4-18 02:19:50 | Show all floors
aha,  https://github.com/esp8266/esp8266-wiki/wiki/Toolchain  ->  https://github.com/pfalcon/esp-open-sdk . there is a working (there is written that it's working) os gcc for esp8266.

here http://allan.me/2014/12/28/esp8266-raspberry-pi-development/  is another instruction how to build it

11

threads

75

posts

376

credits

Intermediate member

Rank: 3Rank: 3

credits
376
 Author| Published in 2016-4-18 02:20:32 | Show all floors
aha,  https://github.com/esp8266/esp8266-wiki/wiki/Toolchain  ->  https://github.com/pfalcon/esp-open-sdk . there is a working (there is written that it's working) os gcc for esp8266.

here http://allan.me/2014/12/28/esp8266-raspberry-pi-development/  is another instruction how to build it

0

threads

6

posts

44

credits

Novice

Rank: 1

credits
44
Published in 2016-4-18 03:21:04 | Show all floors
Thanks will try one, gave up with xtensa-lx106-elf

11

threads

75

posts

376

credits

Intermediate member

Rank: 3Rank: 3

credits
376
 Author| Published in 2016-4-26 00:01:39 | Show all floors
the ARM toolchain for Arduino. corrected and tested on Mapple Mini board (STM32F1), http://docs.leaflabs.com/static. ... are/maple-mini.html

how to install:
- in the tools -> board -> boards manager, download and install the package for arduino DUE (SAM)

after,
- go to ~/.arduino15/packages/arduino/tools
- remove there the folder arm-none-eabi-gcc as it for 386 processor
- unpack there arm-none-eabi-gcc.tgz  from my link. this is the embedded arm toolchain , but hosted on arm

after,
- go to ~/Arduino/hardware
- unpack there Arduino_STM32.tgz from my link . this is a set of libraries and configs from Roger Clark for different stm32 mk / i slightely changed and recompiled to ARM host the part containing the stm32f1 (my maple mini)
- go to ~/Arduino/hardware/Arduino_STM32/tools/linux
- run there install.sh

that's all. you can run arduino ide, select the MappleMini bord from the board list, select old bootloader (if you flashed new  one from Roger Clark use new), select /dev/ttyACM<number> port and go program /communicate with your maple mini or other stm32f1 (with bootloader from Roger Clark) via usb from orange pi arduino.

my link with all packages:
https://mega.nz/#F!NkwiBLQI!uQ20eQo_cVA40tN_ZNWdUA

github page of original Arduino_STM32 progect by roger clark:
https://github.com/rogerclarkmelbourne/Arduino_STM32
if you download changes from there, leave the folder Arduino_STM32/tools/linux  and the file Arduino_STM32/STM32F1/platform.txt from my package.

7

threads

49

posts

234

credits

Intermediate member

Rank: 3Rank: 3

credits
234
Published in 2016-4-26 11:27:26 | Show all floors
forget xtensa-lx106-elf

11

threads

75

posts

376

credits

Intermediate member

Rank: 3Rank: 3

credits
376
 Author| Published in 2016-6-22 05:48:43 | Show all floors
Edited by bhgv at 2016-6-22 11:08

precompiled to arm esp8266 gcc toolchain + sdk (esp-open-sdk). ready to use with arduino ide. i tested it with blinker and webserver sketches.

https://mega.nz/#F!NkwiBLQI!uQ20eQo_cVA40tN_ZNWdUA
(
* xtensa-lx106-elf+sdk.xz - main package, use it for Arduino
* xtensa-lx106-elf+sdk2.xz - full package, with examples and different stuff
* xtensa-lx106-elf.xz       -  a package without sdk headers/libs
* xtensa-sdk.xz  - only examples and stuff
)

the main source is from https://github.com/pfalcon/esp-open-sdk (if you want to build it yourself), instruction i used to build - https://github.com/esp8266/Arduino/issues/1421

------
how to use:
---------------
- download xtensa-lx106-elf+sdk.xz and unpack somewhere.
- export PATH=<path to your xtetsa toolchain>/xtensa-lx106-elf/bin
- compile/link with xtensa-lx106-elf-gcc or xtensa-lx106-elf-g++ or other (see to bin folder)

how to embbed to arduino ide:
----------------------------------------
- install esp8266 boards in boards manaer ( tools -> board -> boards manager) using http://arduino.esp8266.com/stable/package_esp8266com_index.json
- replace 386 esp toolchain ( ~/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/ ) with contents of just unpacked xtensa-lx106-elf+sdk.xz (with contents of unpacked /esp-open-sdk/xtensa-lx106-elf folder)
- do somewhere (this is easy and fast):
```
git clone https://github.com/igrr/esptool-ck
cd esptool-ck
make
```
- copy esptool to ~/.arduino15/packages/esp8266/tools/esptool/0.4.8 (replace there 386 one)

----
that's all. you can run Arduino and compile/upload your sketches.

11

threads

75

posts

376

credits

Intermediate member

Rank: 3Rank: 3

credits
376
 Author| Published in 2016-6-22 06:15:47 | Show all floors
...
```
ln -s $HOME/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/ ~/esp-open-sdk
export PATH=$HOME/esp-open-sdk/binPATH
....
... compile what you want
```
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list