Search found 1154 matches

by stevestrong
Mon Jun 26, 2017 7:52 pm
Forum: Projects
Topic: OV7670, Generic STM32F103RC and ILI9341 display
Replies: 84
Views: 6483

Re: OV7670, Generic STM32F103RC and ILI9341 display

@indrekluuk, Thanks for the info. Indeed, calling spi transfer for each byte in part is not a good idea. But we have efficient spi multi-byte write routines, with and without dma. So you could use SPI.write(buffer, nr_bytes); instead of calling SPI.transfer many times consecutively. According to you...
by stevestrong
Mon Jun 26, 2017 5:56 pm
Forum: Projects
Topic: OV7670, Generic STM32F103RC and ILI9341 display
Replies: 84
Views: 6483

Re: OV7670, Generic STM32F103RC and ILI9341 display

I ordered 2 camera modules (2.35 EUR per piece).
I will test the software when those modules arrive.
by stevestrong
Mon Jun 26, 2017 9:07 am
Forum: Projects
Topic: OV7670, Generic STM32F103RC and ILI9341 display
Replies: 84
Views: 6483

Re: OV7670, Generic STM32F103RC and ILI9341 display

Using PB2 (BOOT1) is not a problem, I am using it for 8 bit parallel output for a display board, and is working, so I assume it should work as input as well. Just that the resistor which is connected between the BOOT1 jumper and the input pin should be shorted. But can we trigger DMA on an (rising/f...
by stevestrong
Mon Jun 26, 2017 5:51 am
Forum: Projects
Topic: OV7670, Generic STM32F103RC and ILI9341 display
Replies: 84
Views: 6483

Re: OV7670, Generic STM32F103RC and ILI9341 display

Back to the clocks... Please explain me what is going on there, I simply don't understand it. First of all, does the CPU use SYSCLK? Does the CPU run with 72MHz? If i check the RM0008 figure 8 Clock tree, I see the source for SYSCLK can be HSI, PLLCLK or HSE. HSI = 8MHz. HSE = 8MHz (on BP). PLLCLK =...
by stevestrong
Sun Jun 25, 2017 9:14 pm
Forum: General discussion
Topic: Should we still use optimisation level -Os (Small)
Replies: 15
Views: 189

Re: Should we still use optimisation level -Os (Small)

Roger, do you also have all those nops in your code?
It seems that they serve a precise timing.
What i dont understand at which frequency is the epixel clock working? It should be PLLCLK/2.
Is the CPU runnung with twice of this? If so, i dont get the point of those nops, other than an undersampling.
by stevestrong
Sun Jun 25, 2017 4:55 pm
Forum: Projects
Topic: OV7670, Generic STM32F103RC and ILI9341 display
Replies: 84
Views: 6483

Re: OV7670, Generic STM32F103RC and ILI9341 display

I"ve pushed a commit to fix this for the BP and a few other boards; however some boards seem to have other pins defined as the Disconnect pin, (not just the maple mini) so I've left those untouched in case people are using boards with disconnect hardware Would this affect in any way the USB re-enum...
by stevestrong
Sun Jun 25, 2017 4:48 pm
Forum: STM32generic
Topic: [STM32GENERIC] Latest - issues
Replies: 11
Views: 234

Re: [STM32GENERIC] Latest - issues

For F1 one need "VERY_HIGH" (50MHz) GPIO speed, otherwise SPI@36MHz won't work. Btw, I think the GPIO speed setting was set to "MEDIUM" due to Pito's recommendation for F4 SDIO to work. Well, SDIO works for libmaple F4 with GPIO set to push-pull with enabled pull-up and the default push-pull speed "...
by stevestrong
Sun Jun 25, 2017 9:11 am
Forum: STM32generic
Topic: [STM32GENERIC] Latest - issues
Replies: 11
Views: 234

Re: [STM32GENERIC] Latest - issues

And how is performing with a 102400kB file?
by stevestrong
Sun Jun 25, 2017 9:07 am
Forum: STM Nucleo boards
Topic: STM32F091 ADC resolution 10 bit instead of 12 bit
Replies: 17
Views: 152

Re: STM32F091 ADC resolution 10 bit instead of 12 bit

RogerClark wrote:
Sat Jun 24, 2017 11:15 pm
BTW. Am am not going to change what libmaple does, as plenty of code has been written for it already and expects 12 bit
Indeed, it seems a pure Arduino_Core issue, not a libmaple core one.
by stevestrong
Sun Jun 25, 2017 9:02 am
Forum: Libraries & Hardware
Topic: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi
Replies: 177
Views: 6281

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Aleksey, do you use this software https://github.com/stevstrong/Arduino_STM32/tree/generic_f4 together with this display lib https://github.com/stevstrong/Adafruit_ILI9486_STM32 ? If yes, please detail what exactly is not working. Unfortunately I don't have any F4 discovery board, so I cannot test i...