From e537d27e2865ac086f7b22af4a7ebb69bcdcfe5f Mon Sep 17 00:00:00 2001 From: Sebastien Charpentier Date: Wed, 19 Apr 2017 11:40:28 +0200 Subject: [PATCH] Update Compiling_STM32.md Fixed **Prepare the Arduino IDE:** section. --- docs/Compiling_STM32.md | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/docs/Compiling_STM32.md b/docs/Compiling_STM32.md index f45ab8e..65e5db8 100644 --- a/docs/Compiling_STM32.md +++ b/docs/Compiling_STM32.md @@ -28,22 +28,16 @@ Flashing precompiled **binaries** is done very simple with the cable setup prese ### Prepare the Arduino IDE: -1. In order to compile successfully you need also to modify a maple library file. In ```....\hardware\Arduino_STM32\STM32F1\cores\maple\libmaple\usart_f1.c``` comment out the 2 functions as shown below. This is required to have low-level access to the USART interrupt. - -**/*** -**void __irq_usart2(void){** - -**usart_irq(&usart2_rb, USART2_BASE);** - -**}** - - **void __irq_usart3(void) {** - - **usart_irq(&usart3_rb, USART3_BASE);** - -**}** -***/** - +1. In order to compile successfully you need also to modify a maple library file. In ```....\hardware\Arduino_STM32\STM32F1\cores\maple\libmaple\usart_f1.c``` comment out the 2 functions as shown below. This is required to have low-level access to the USART interrupt.
+ ```C + /* void __irq_usart2(void){ + usart_irq(&usart2_rb, USART2_BASE); + } + + void __irq_usart3(void) { + usart_irq(&usart3_rb, USART3_BASE); + } */ + ``` 1. Run the IDE, and on the **Tools** menu, select **Board** and then **Boards manager**.
Click on the Arduino DUE (32 Bits ARM-Cortex M3) from the list of available boards. You must do this step, it installs the arm-none-eabi-g++ toolchain! 1. Close and reopen the Arduino IDE and load the Multiprotocol project. 1. In arduino IDE under the **Tools** -> **Board:** select the **Generic STM32F103C series** board