Search found 848 matches

by Pito
Fri Apr 28, 2017 10:20 pm
Forum: CubeMX and HAL
Topic: [STM32GENERIC] I2C Examples
Replies: 9
Views: 85

Re: [STM32GENERIC] I2C Examples

I've spent 5h messing with the DS3232RTC library I like :) The issue is following: How to build a demo, reading time off DS3231/2, when using I2C2 (not the default I2C1). When playing with simple stuff like above, no prob, but this is a chicken-egg-situation (or Catch22 one).. TwoWire Wire2(I2C2, pi...
by Pito
Fri Apr 28, 2017 7:06 pm
Forum: CubeMX and HAL
Topic: [STM32GENERIC] micros() bug??
Replies: 21
Views: 195

Re: [STM32GENERIC] micros() bug??

There is another option, even sexier.. :) There is the "special" 32bit cpu clock counter which simply counts (up), for ever.. :) The resolution of the counter is 5.95ns at 168MHz (4.166ns @240MHz). The counter overflows in 25.56secs. So when you want to mess with micros() based on that cou...
by Pito
Fri Apr 28, 2017 7:05 pm
Forum: CubeMX and HAL
Topic: [STM32GENERIC] micros() bug??
Replies: 21
Views: 195

Re: [STM32GENERIC] micros() bug??

There is another option, even sexier.. :)
There is the "special" 32bit clock counter which simply counts (up), for ever.. :)
The resolution of the counter is 5.95ns at 168MHz.
The counter overflows in 25.56secs.
So when you want to mess with nanos() it may work fine. Hopefully.. :P
by Pito
Fri Apr 28, 2017 6:53 pm
Forum: Cores
Topic: STM32GENERIC, my arduino implementation
Replies: 124
Views: 1307

Re: STM32GENERIC, my arduino implementation

Important reading for all F407 fans - the Errata from Nov2016.
http://www.st.com/content/ccc/resource/ ... 037591.pdf
by Pito
Fri Apr 28, 2017 5:19 pm
Forum: Cores
Topic: STM32GENERIC, my arduino implementation
Replies: 124
Views: 1307

Re: STM32GENERIC, my arduino implementation

I believe SDIO is working already, although without DMA.

SdFat with SDIO is working already?
by Pito
Fri Apr 28, 2017 4:35 pm
Forum: Cores
Topic: STM32GENERIC, my arduino implementation
Replies: 124
Views: 1307

Re: STM32GENERIC, my arduino implementation

If you add the SDIO we do not mind to wait for a week :D :D :D
by Pito
Fri Apr 28, 2017 4:18 pm
Forum: Cores
Topic: STM32GENERIC, my arduino implementation
Replies: 124
Views: 1307

Re: STM32GENERIC, my arduino implementation

In SdFat there is a file called SdSpiSTM32F1.cpp - that is the "DMA SPI driver" for STM32F103 BillG did in past, most probably libmaple based.. The dma based BluePill does 3.5MB/sec rd/wr @36MHz, we currently do a half on F407. And then there is a file SdioTeensy.cpp with SDIO enabled for ...
by Pito
Fri Apr 28, 2017 4:01 pm
Forum: Cores
Topic: STM32GENERIC, my arduino implementation
Replies: 124
Views: 1307

Re: STM32GENERIC, my arduino implementation

michael_l wrote:Got the black board today. Should we try to integrate SPIFFS as a filesystem like it is in esp8266 ?

What about SdFat??
There is a lot work around it.. For F407:
1. enable dma for SPI (F103 already done, so it is a good template)
2. implement SDIO (Teensy F4 already done, so it is a good template).
by Pito
Fri Apr 28, 2017 3:47 pm
Forum: Cores
Topic: STM32GENERIC, my arduino implementation
Replies: 124
Views: 1307

Re: STM32GENERIC, my arduino implementation

There is a bug/typo in SeriaUART.cpp line 44:

Code: Select all

     if (!static_rx_used) {
       txBuffer = (uint8_t*)rx;     <<<< shall be rxBuffer
        static_rx_used = true;
     } else {
       rxBuffer = (uint8_t*)malloc(BUFFER_SIZE);
     }
  }
by Pito
Fri Apr 28, 2017 3:22 pm
Forum: CubeMX and HAL
Topic: [STM32GENERIC] Serial Examples
Replies: 5
Views: 69

Re: [STM32GENERIC] Serial Examples

It seems the SerialUART RX does not work.. Like a different speed at RX.. Can confirm somebody??
PS: Solved, bug/typo in SerialUART.cpp line 44.

Go to advanced search