Search found 1091 matches

by victor_pv
Sat Apr 29, 2017 7:56 pm
Forum: Generic bootloader
Topic: Linux: flashing own STM32F103C8T6 generic USB bootloader not much luck
Replies: 8
Views: 65

Re: Linux: flashing own STM32F103C8T6 generic USB bootloader not much luck

Where in the stm32duino environment did you a change to reflect the 12MHz Xtal? The file ~/Arduino/hardware/Arduino_STM32/STM32F1/variants/generic_stm32f103c/wirish/boards_setup.cpp is #ifndef BOARD_RCC_PLLMUL #if F_CPU==72000000 #define BOARD_RCC_PLLMUL RCC_PLLMUL_9 #elif F_CPU==48000000 #define B...
by victor_pv
Sat Apr 29, 2017 7:52 pm
Forum: CubeMX and HAL
Topic: [STM32GENERIC] SPI DMA
Replies: 0
Views: 4

[STM32GENERIC] SPI DMA

I am adding SPI.dmaSend and SPI.dmaTransfer as discussed in another thread. Now, for doing so I need to add a number of defines, and those defines are going to be different depending on the series (things like the SPI1 DMA controller and channel to use, IRQ line, same for SPI2, SPI3...SPI6). Should ...
by victor_pv
Sat Apr 29, 2017 7:48 pm
Forum: CubeMX and HAL
Topic: [STM32GENERIC] SDIO
Replies: 1
Views: 35

Re: [STM32GENERIC] SDIO

I would think the HAL SDIO driver already takes in account the errata, but would be worth checking.
by victor_pv
Sat Apr 29, 2017 12:56 am
Forum: Generic bootloader
Topic: Linux: flashing own STM32F103C8T6 generic USB bootloader not much luck
Replies: 8
Views: 65

Re: Linux: flashing own STM32F103C8T6 generic USB bootloader not much luck

The bootloader will not enumerate as a serial port, only as a DFU device.
When you load a sketch and the sketch starts, the sketch code will emulate a serial device.
by victor_pv
Fri Apr 28, 2017 8:04 pm
Forum: Cores
Topic: STM32GENERIC, my arduino implementation
Replies: 124
Views: 1350

Re: STM32GENERIC, my arduino implementation

I got earlier SPIFFS working from sources with F103 and winbond spi flash chip. But it was only the core SPIFFS and didn't have extra layer for Arduino File API like they've done for esp8266. I'll aim for that because it's easier to use File API from Arduino I think. We could also make it work so t...
by victor_pv
Fri Apr 28, 2017 7:55 pm
Forum: CubeMX and HAL
Topic: [STM32GENERIC] micros() bug??
Replies: 21
Views: 199

Re: [STM32GENERIC] micros() bug??

That makes sense for delaymicros(), but how would you use it for micros()?
by victor_pv
Fri Apr 28, 2017 4:42 pm
Forum: Cores
Topic: STM32GENERIC, my arduino implementation
Replies: 124
Views: 1350

Re: STM32GENERIC, my arduino implementation

If you add the SDIO we do not mind to wait for a week :D :D :D I believe SDIO is working already, although without DMA. Either on this thread or in another Daniel posted some examples. I'll try to get the SPI DMA working, after that may try to tackle adding DMA for the SDIO, but I haven't looked at...
by victor_pv
Fri Apr 28, 2017 4:29 pm
Forum: Cores
Topic: STM32GENERIC, my arduino implementation
Replies: 124
Views: 1350

Re: STM32GENERIC, my arduino implementation

In SdFat there is a file called SdSpiSTM32F1.cpp - that is the "DMA driver" for STM32F103 Bill 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 F4 s...
by victor_pv
Fri Apr 28, 2017 4:13 pm
Forum: Cores
Topic: STM32GENERIC, my arduino implementation
Replies: 124
Views: 1350

Re: STM32GENERIC, my arduino implementation

Got the black board today. Should we try to integrate SPIFFS as a filesystem like it is in esp8266 ? I would like it, for small files I'd rather use that than SDcard, and many generic boards include some SPI flash. I think there was a port working for the libmaple F1 core already, may work as a base.
by victor_pv
Fri Apr 28, 2017 4:11 pm
Forum: Cores
Topic: STM32GENERIC, my arduino implementation
Replies: 124
Views: 1350

Re: STM32GENERIC, my arduino implementation

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)....

Go to advanced search