Page 1 of 1

Arduino toolchain for Stm32f4

Posted: Sat Jul 25, 2015 10:24 pm
by RogerClark
FYI

There are several working toolchains for the STM32F4 using the Arduino ide

github.com/rogerclarkmelbourne/arduino_stm32

I'd be interested to know how the wifi module attaches to the F4, I had a feeling its via SDIO ??

Re: Arduino toolchain for Stm32f4

Posted: Sun Jul 26, 2015 7:23 pm
by emwadmin
I imagine that it's via SDIO. As far as I'm aware, all of Broadcom's WICED-supported WiFi devices are using SDIO as their interface,

Re: Arduino toolchain for Stm32f4

Posted: Wed Aug 05, 2015 10:37 pm
by emilfr
The earlier EMW3162 uses SDIO, but IIRC the EMW3165 has the option to use either SPI or SDIO for the wifi module.

Re: Arduino toolchain for Stm32f4

Posted: Mon Aug 10, 2015 8:18 am
by RogerClark
We already have SPI working for STM32F4 in the Arduino IDE, but without docs on the protocol it will be impossible to use it.

Does anyone know if there are any docs for this ?

Re: Arduino toolchain for Stm32f4

Posted: Mon Aug 10, 2015 3:39 pm
by emilfr
Look at the Broadcom WICED sources. There are both SDIO and SPI drivers there AFAIK

Re: Arduino toolchain for Stm32f4

Posted: Mon Aug 10, 2015 3:46 pm
by emilfr
Nb. It should be kept in mind that SPI1 on the EMW3165 is dedicated to the external SPI flash, so it can't be used for anything else, due to assumtions in the code, if you build the Arduino support on top of WICED.

Re: Arduino toolchain for Stm32f4

Posted: Sat Aug 15, 2015 11:31 am
by RogerClark
emilfr wrote:Nb. It should be kept in mind that SPI1 on the EMW3165 is dedicated to the external SPI flash, so it can't be used for anything else, due to assumtions in the code, if you build the Arduino support on top of WICED.


Yes.

I think the normal build for Arduino on STM32 may not be the way forward with this.

I'm going to take a look at what the existing WICED build for the EMW3165 looks like to see if the WICED stuff can be added to either our existing F4 which is not based on a CMSIS / Standard peripheral lib.
Or whether perhaps one of the newer experimental Arduino cores based on STM's CubeMX code, which is a HAL version of the SPL, or whether we need to to back to a pure SPL / CMSIS

Or whether it would need to be a special set of code based on WICED.

I'm really hoping that its not the latter

Re: Arduino toolchain for Stm32f4

Posted: Tue Aug 18, 2015 12:30 pm
by emilfr
CMSIS is included in WICED, so you could use that for everything except communications with the wifi chip.

Arduino toolchain for Stm32f4

Posted: Sat Nov 07, 2015 8:10 pm
by Troyacal
Does this mean that we can soon use the complete mormot framework without having to go to delphi for the rtti generation?