RogerClark
Posts: 9
Joined: Sat Jul 25, 2015 10:08 pm

Arduino toolchain for Stm32f4

Sat Jul 25, 2015 10:24 pm

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 ??

emwadmin
Site Admin
Posts: 61
Joined: Tue Jul 14, 2015 7:29 am

Re: Arduino toolchain for Stm32f4

Sun Jul 26, 2015 7:23 pm

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,

User avatar
emilfr
Posts: 63
Joined: Wed Jul 22, 2015 10:05 pm
Location: Iceland
Contact: Website

Re: Arduino toolchain for Stm32f4

Wed Aug 05, 2015 10:37 pm

The earlier EMW3162 uses SDIO, but IIRC the EMW3165 has the option to use either SPI or SDIO for the wifi module.
Maintainer of the EMW3162 and EMW3165 port of Broadcom WICED.
== Github == Gitter.im chatroom == WICED subforum == Getting started with WICED on EMW ==

-- Neither I nor the WICED for EMW project are affiliated with MXCHIP or Broadcom --

RogerClark
Posts: 9
Joined: Sat Jul 25, 2015 10:08 pm

Re: Arduino toolchain for Stm32f4

Mon Aug 10, 2015 8:18 am

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 ?

User avatar
emilfr
Posts: 63
Joined: Wed Jul 22, 2015 10:05 pm
Location: Iceland
Contact: Website

Re: Arduino toolchain for Stm32f4

Mon Aug 10, 2015 3:39 pm

Look at the Broadcom WICED sources. There are both SDIO and SPI drivers there AFAIK
Maintainer of the EMW3162 and EMW3165 port of Broadcom WICED.
== Github == Gitter.im chatroom == WICED subforum == Getting started with WICED on EMW ==

-- Neither I nor the WICED for EMW project are affiliated with MXCHIP or Broadcom --

User avatar
emilfr
Posts: 63
Joined: Wed Jul 22, 2015 10:05 pm
Location: Iceland
Contact: Website

Re: Arduino toolchain for Stm32f4

Mon Aug 10, 2015 3:46 pm

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.
Maintainer of the EMW3162 and EMW3165 port of Broadcom WICED.
== Github == Gitter.im chatroom == WICED subforum == Getting started with WICED on EMW ==

-- Neither I nor the WICED for EMW project are affiliated with MXCHIP or Broadcom --

RogerClark
Posts: 9
Joined: Sat Jul 25, 2015 10:08 pm

Re: Arduino toolchain for Stm32f4

Sat Aug 15, 2015 11:31 am

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

User avatar
emilfr
Posts: 63
Joined: Wed Jul 22, 2015 10:05 pm
Location: Iceland
Contact: Website

Re: Arduino toolchain for Stm32f4

Tue Aug 18, 2015 12:30 pm

CMSIS is included in WICED, so you could use that for everything except communications with the wifi chip.
Maintainer of the EMW3162 and EMW3165 port of Broadcom WICED.
== Github == Gitter.im chatroom == WICED subforum == Getting started with WICED on EMW ==

-- Neither I nor the WICED for EMW project are affiliated with MXCHIP or Broadcom --

Troyacal
Posts: 1
Joined: Fri Nov 06, 2015 6:13 am

Arduino toolchain for Stm32f4

Sat Nov 07, 2015 8:10 pm

Does this mean that we can soon use the complete mormot framework without having to go to delphi for the rtti generation?


Return to “Compiler & Tool Chain”

Who is online

Users browsing this forum: No registered users and 0 guests