From c9f3e5176d7c337903fbe92616643f54b78244c7 Mon Sep 17 00:00:00 2001 From: midelic Date: Mon, 1 Aug 2016 02:06:28 +0300 Subject: [PATCH] new compilation info --- README.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4c66b7a..175a4a6 100644 --- a/README.md +++ b/README.md @@ -269,12 +269,25 @@ You can 3D print your box (details [here](http://www.rcgroups.com/forums/showpos ###Toolchain Multiprotocol source can be compiled using the Arduino IDE. -The currently supported Arduino version is [1.6.7](https://www.arduino.cc/download_handler.php?f=/arduino-1.6.7-windows.exe). +The currently supported Arduino version is [1.6.5](https://www.arduino.cc/download_handler.php?f=/arduino-1.6.5-windows.exe). You need to download and install aditionally [STM32 core](https://github.com/rogerclarkmelbourne/Arduino_STM32/archive/master.zip) ,Arduino_STM32 folder in ...../Arduino/hardware/ folder (note. if the hardware folder doesn't exist you will need to create it). -Then run the IDE, and on the Tools menu, select the Boards manager, and install the Arduino Zero from the list of available boards. You must do this step, it installs the arm-none-eabi-g++ toolchain! +In order to compile suscesfully you need also to modify a maple library file. +In ....\hardware\Arduino_STM32\STM32F1\cores\maple\libmaple\usartf1.c +comment 2 function as below.This is required to have acces to low level of USART intrerupt. -Download the [zip file](https://github.com/midelic/DIY-Multiprotocol-TX-Module/archive/master.zip) of this repository, unzip it in a folder, navigate to the Multiprotocol directory and then click on Multiprotocol.ino. The Arduino environment will appear and the Multiprotocol project will be loaded.Then you can use "Upload" button which will compile and upload to the module: Skecth->Upload (Ctrl+U). +//void __irq_usart2(void) { + usart_irq(&usart2_rb, USART2_BASE); +} + +//void __irq_usart3(void) { +usart_irq(&usart3_rb, USART3_BASE); +} + + +Then run the IDE, and on the Tools menu, select the Boards manager, and install the Arduino DUE(ARM-Cortex M3) from the list of available boards. You must do this step, it installs the arm-none-eabi-g++ toolchain! + +Download the [zip file](https://github.com/midelic/DIY-Multiprotocol-TX-Module/archive/multi-STM32.zip) of this repository, unzip it in a folder, navigate to the Multiprotocol directory and then click on Multiprotocol.ino. The Arduino environment will appear and the Multiprotocol project will be loaded.Then you can use "Upload" button which will compile and upload to the module: Skecth->Upload (Ctrl+U). Warning: The dial must be set to 0 before flashing!