Search found 5942 matches

by RogerClark
Mon Jun 26, 2017 7:36 am
Forum: Projects
Topic: OV7670, Generic STM32F103RC and ILI9341 display
Replies: 78
Views: 6379

Re: OV7670, Generic STM32F103RC and ILI9341 display

OK. I checked, and XCLK is is showing as 33mhz on my analyser but it must mean 36Mhz (72Mhz /2) Pixel clock seems to be 2.25Mhz i.e DIV16 of 36Mhz @ 12 FPS If I change the framerate, to 7.2 FPS, the Pixel clock changes to 1.51 Mhz (I presume this is 36Mhz DIV24 ) Back on 12 FPS QQVGA There is a huge...
by RogerClark
Mon Jun 26, 2017 7:07 am
Forum: General discussion
Topic: Should we still use optimisation level -Os (Small)
Replies: 14
Views: 164

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

zoomx wrote:
Mon Jun 26, 2017 6:29 am
It is not possible to change the optimization in the Tools menu?
I think it should be possible to do that, but it means you have to manually set this for each sketch in case it needs to be small or needs to be fast.
by RogerClark
Mon Jun 26, 2017 7:06 am
Forum: Projects
Topic: OV7670, Generic STM32F103RC and ILI9341 display
Replies: 78
Views: 6379

Re: OV7670, Generic STM32F103RC and ILI9341 display

I will check the clocks using my logic analyzer Re: Reading and writing at the same time. It would be more efficient to byte swap as it reads the pixels, and also to pixel duplicate, and perhaps even to duplicate the line into a buffer. This would leave more time for done other processing, but on a ...
by RogerClark
Sun Jun 25, 2017 9:33 pm
Forum: General discussion
Topic: Should we still use optimisation level -Os (Small)
Replies: 14
Views: 164

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

There are still NOPs when it samples the pixels from the camera, but not when sending to the display. AFIK, the clock to the camera is normally 8MHZ ( the spec says the minimum is 10MHz but I think everyone uses 8 MHz as its easier) I am not sure if the clock from the camera, changes depending on fr...
by RogerClark
Sun Jun 25, 2017 8:56 pm
Forum: General discussion
Topic: Should we still use optimisation level -Os (Small)
Replies: 14
Views: 164

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

Do overclock - 100MHz might solve your problems :) Thats an interesting option.. Interrupts already need to be disabled in this code so that the pixels get clocked in correctly, so I could overclock. Also, if I can push the ILI9341 SPI faster it would help. I think QVGA should be possible at 7 FPS ...
by RogerClark
Sun Jun 25, 2017 8:50 pm
Forum: Projects
Topic: OV7670, Generic STM32F103RC and ILI9341 display
Replies: 78
Views: 6379

Re: OV7670, Generic STM32F103RC and ILI9341 display

AFIK pin PB10 has nothing to do with USB. On the BP this is just a GPIO pin, not connected to anything. So for boards without extra usb hardware, this pin should not be set to OUTPUT during the USB enable function. But I think perhaps on boards like the BP, so other code may be needed in USB enable(...
by RogerClark
Sun Jun 25, 2017 10:43 am
Forum: General discussion
Topic: Combining Blink & Count to the bootloader
Replies: 33
Views: 346

Re: Combining Blink & Count to the bootloader

thus far i'm quite happy with just the 'raw' bootloader, in fact after i installed the bootloader i deliberately zero out blocks of flash after 0x8002000 if i remember correctly, this leaves it in 'perpetual' boot loader mode waiting for sketch install either way the 'perpetual mode' keeps the led ...
by RogerClark
Sun Jun 25, 2017 10:40 am
Forum: General discussion
Topic: SD card on ILI9341 display board??
Replies: 15
Views: 185

Re: SD card on ILI9341 display board??

I have several boards, I'll see if any are different or if they all have the SD resistors
by RogerClark
Sun Jun 25, 2017 10:39 am
Forum: General discussion
Topic: Should we still use optimisation level -Os (Small)
Replies: 14
Views: 164

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

OK

I'll leave it as -Os, but I'll need to work out why the camera code runs slow and won't work in -Os optimisation :-(
by RogerClark
Sun Jun 25, 2017 10:22 am
Forum: STM Core
Topic: Using Scheduler Library
Replies: 9
Views: 115

Re: Using Scheduler Library

Scheduler already works with libmaple (and all STM32 cores) as is. Rick's point is only for Cortex M0 chips that need different code path. Umm. Rick wrote You can make this library work with the stm32 chips with a few simple changes. I did not check if it worked already, as it seemed Rick was sayin...