From 83641a4f54fba4287a0e221f9852306cbf331684 Mon Sep 17 00:00:00 2001 From: pascallanger Date: Sun, 26 Nov 2017 21:45:17 +0100 Subject: [PATCH 1/4] Update Compiling_STM32.md --- docs/Compiling_STM32.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/docs/Compiling_STM32.md b/docs/Compiling_STM32.md index d75621f..a116108 100644 --- a/docs/Compiling_STM32.md +++ b/docs/Compiling_STM32.md @@ -30,14 +30,15 @@ Flashing precompiled **binaries** is done very simple with the cable setup prese 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); - } */ +/* +void __irq_usart2(void) { + usart_irq(&usart2_rb, &usart2_wb, USART2_BASE); +} + +void __irq_usart3(void) { + usart_irq(&usart3_rb, &usart3_wb, 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. From 486c2170cd92df7e56a9e658c97b15324f599283 Mon Sep 17 00:00:00 2001 From: pascallanger Date: Sun, 26 Nov 2017 21:49:02 +0100 Subject: [PATCH 2/4] Update Compiling_STM32.md --- docs/Compiling_STM32.md | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/docs/Compiling_STM32.md b/docs/Compiling_STM32.md index a116108..4cd8643 100644 --- a/docs/Compiling_STM32.md +++ b/docs/Compiling_STM32.md @@ -29,17 +29,15 @@ 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_wb, USART2_BASE); -} + ``` /* + void __irq_usart2(void) { + usart_irq(&usart2_rb, &usart2_wb, USART2_BASE); + } -void __irq_usart3(void) { - usart_irq(&usart3_rb, &usart3_wb, USART3_BASE); -} -*/ - ``` + void __irq_usart3(void) { + usart_irq(&usart3_rb, &usart3_wb, 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 From 0f965b680026317547b04542357aa2269d25b14b Mon Sep 17 00:00:00 2001 From: pascallanger Date: Sun, 26 Nov 2017 21:49:29 +0100 Subject: [PATCH 3/4] Update Compiling_STM32.md --- docs/Compiling_STM32.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/Compiling_STM32.md b/docs/Compiling_STM32.md index 4cd8643..e6bedf7 100644 --- a/docs/Compiling_STM32.md +++ b/docs/Compiling_STM32.md @@ -29,7 +29,8 @@ 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_wb, USART2_BASE); } @@ -37,7 +38,8 @@ Flashing precompiled **binaries** is done very simple with the cable setup prese void __irq_usart3(void) { usart_irq(&usart3_rb, &usart3_wb, 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 From cb1ba0e00c61e173c1fbf4b2d5f3644e10a198bc Mon Sep 17 00:00:00 2001 From: pascallanger Date: Sun, 26 Nov 2017 21:51:40 +0100 Subject: [PATCH 4/4] Update Compiling_STM32.md --- docs/Compiling_STM32.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/docs/Compiling_STM32.md b/docs/Compiling_STM32.md index e6bedf7..5299a81 100644 --- a/docs/Compiling_STM32.md +++ b/docs/Compiling_STM32.md @@ -30,15 +30,13 @@ Flashing precompiled **binaries** is done very simple with the cable setup prese 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_wb, USART2_BASE); - } + //void __irq_usart2(void) { + // usart_irq(&usart2_rb, &usart2_wb, USART2_BASE); + //} - void __irq_usart3(void) { - usart_irq(&usart3_rb, &usart3_wb, USART3_BASE); - } - */ + //void __irq_usart3(void) { + // usart_irq(&usart3_rb, &usart3_wb, 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.