First release of STM32F4 core (deprecated)

The official STMicroelectronics Arduino core
palmerr
Posts: 58
Joined: Tue Jan 31, 2017 6:21 am
Location: Melbourne, Australia

Re: First release of STM32F4 core

Post by palmerr » Sun Apr 16, 2017 8:34 am

Oops!

I left out PB4 from the pinouts and code for the Black F4VET6 board.

It's only connected to the NRF socket and the Winbond Flash, so I picked it up when creating the pinout diagrams for the JTAG, TFT and NRF sockets.

Fixed in the wiki and my repo.

Richard

fpiSTM
Posts: 77
Joined: Fri Sep 16, 2016 12:33 pm
Location: Le Mans, France

Re: First release of STM32F4 core

Post by fpiSTM » Tue Apr 18, 2017 8:42 am

Hi Richard,

I've submit an issue with some advice on your github repo.
BR

zouk199
Posts: 15
Joined: Thu Aug 04, 2016 1:47 am

Re: First release of STM32F4 core

Post by zouk199 » Tue Apr 25, 2017 9:27 am

hi masters

thanks for d f4 core release.i try f103rb with enc28j60 ,it works perfect.

but i need modbus tcp library for f103 and f411 boards to work as modbus master/slave application.

can u help to convert this arduino modbus library to work for stm32???

https://github.com/andresarmento/modbus-arduino

it will be great to connect stm32 from net and get some analog values real time

best regards

Mio
SG

fpiSTM
Posts: 77
Joined: Fri Sep 16, 2016 12:33 pm
Location: Le Mans, France

Re: First release of STM32F4 core

Post by fpiSTM » Thu May 04, 2017 7:19 am

Hi zook199,

sounds good.
Unfortunatelly, I do not have time to study this. If I could get some times I will check that.
But, maybe some other user could check also :)

ChrisMicro
Posts: 168
Joined: Fri Mar 24, 2017 4:51 pm
Location: Germany

Re: First release of STM32F4 core

Post by ChrisMicro » Thu May 04, 2017 9:01 am

@fpiSTM
Did you see, I made this demos for the STM32F4 Discovery STM32GENERIC.
Because there is no DMA-I2S and also no DAMI2S in for the microphone, I had to do it all "blocking" and "bit banging".

When do you plan your next release which supports this peripherals?

palmerr
Posts: 58
Joined: Tue Jan 31, 2017 6:21 am
Location: Melbourne, Australia

Re: First release of STM32F4 core

Post by palmerr » Fri May 05, 2017 3:29 am

The code is now updated for the Black F4 VET6 variant using the new analog pin definition syntax in my repo https://github.com/palmerr23/Black-F407VET6-cube.

It works directly with the new "CubeMX" F4 core at https://github.com/stm32duino/Arduino_Core_STM32F4 managed by @fpiSTM

Richard

palmerr
Posts: 58
Joined: Tue Jan 31, 2017 6:21 am
Location: Melbourne, Australia

Re: First release of STM32F4 core

Post by palmerr » Tue May 09, 2017 7:06 am

I have added a reasonably extensive set of working HAL ADC examples for the new F4 code set at https://github.com/palmerr23/Black-F407 ... r/examples

* Regular Conversion Polling - ADC1 and ADC3
* Regular Conversion Interrupt
* Regular Conversion DMA
* Dual Mode Interleaved - Continuous and burst conversions using DMA with 8 bit and 12 bit samples


If people find these useful I will create some more. A possible list might include:
* VBAT, VTemp
* Multi channel operation and scan mode
* Triple Mode Interleaved
* Analog Watchdog
* Injection modes
* LL and mixed mode examples

fpiSTM
Posts: 77
Joined: Fri Sep 16, 2016 12:33 pm
Location: Le Mans, France

Re: First release of STM32F4 core

Post by fpiSTM » Wed May 10, 2017 2:32 pm

ChrisMicro wrote: When do you plan your next release which supports this peripherals?
Hi @ChrisMicro, I saw your demos. Nice jobs.
I've implemented some examples for otto (mic/player). they are available on the arduino github.
Currently, I do not know when it will be available as lot other stuff to perform before.

@palmerr
Thanks for your work on the ADC. Those modes are necessary I think.
At this time we provided only one mode as an enabler but provide a set of working mode would be fine.

FYI, I've released new repo which is generic for STM32 MCU. Is is compatible with your implementation . ;)
I have to release some packages and it will be available thanks the boards manager soon.

palmerr
Posts: 58
Joined: Tue Jan 31, 2017 6:21 am
Location: Melbourne, Australia

Re: First release of STM32F4 core

Post by palmerr » Thu May 11, 2017 1:36 am

Frederic,

I'll get on with additional modes. Probably VBAT, VTEMP, Channels and Triple interleaved first.

It would be useful to include both HAL and LL drivers for anything time sensitive in the new generic code.

I found that I ran up against the time constraints in the HAL mode interrupt routine. For scan mode applications, and other uses that require very fast responses, the LL drivers are preferred. There are some excellent mixed mode examples in the cube demo code that I have working with some additional LL driver files.

Other than ADC/DAC I'm not sure what else might need LL access. The DMA, GPIO, etc LL files would also need to be included.

Richard

fpiSTM
Posts: 77
Joined: Fri Sep 16, 2016 12:33 pm
Location: Le Mans, France

Re: First release of STM32F4 core

Post by fpiSTM » Tue May 16, 2017 6:33 am

On the new repo Arduino_Core_STM32,
ll are included. There is no more HAL static library.
stm32f4xx_ll_adc.c stm32f4xx_ll_crc.c stm32f4xx_ll_dac.c stm32f4xx_ll_dma.c stm32f4xx_ll_dma2d.c stm32f4xx_ll_exti.c
stm32f4xx_ll_fmc.c stm32f4xx_ll_fsmc.c stm32f4xx_ll_gpio.c stm32f4xx_ll_i2c.c stm32f4xx_ll_lptim.c stm32f4xx_ll_pwr.c
stm32f4xx_ll_rcc.c stm32f4xx_ll_rng.c stm32f4xx_ll_rtc.c stm32f4xx_ll_sdmmc.c stm32f4xx_ll_spi.c stm32f4xx_ll_tim.c
stm32f4xx_ll_usart.c stm32f4xx_ll_usb.c stm32f4xx_ll_utils.c

So, it can be easyly used.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests