Search found 1509 matches

by stevestrong
Sat Sep 23, 2017 9:09 am
Forum: Projects
Topic: OV7670, Generic STM32F103RC and ILI9341 display
Replies: 306
Views: 11616

Re: OV7670, Generic STM32F103RC and ILI9341 display

You could try to leave the timer settings, just disable the DMA channel //timer_pause(TIMER2); // stop timer dma_disable(DMA1, DMA_CH2); dma_clear_isr_bits(DMA1, DMA_CH2); and re-enable the DMA channel. dma_set_num_transfers(DMA1, DMA_CH2, 2*PIXELS_PER_LINE+1); // 2 readings for each pixel dma_clear...
by stevestrong
Sat Sep 23, 2017 9:00 am
Forum: Projects
Topic: OV7670, Generic STM32F103RC and ILI9341 display
Replies: 306
Views: 11616

Re: OV7670, Generic STM32F103RC and ILI9341 display

After receiving a complete line from the camera, before writing the data to LCD, I do: timer_pause(TIMER2); // stop timer dma_disable(DMA1, DMA_CH2); dma_clear_isr_bits(DMA1, DMA_CH2); and then I re-enable them within the loop: dma_set_num_transfers(DMA1, DMA_CH2, 2*PIXELS_PER_LINE+1); // 2 readings...
by stevestrong
Sat Sep 23, 2017 8:40 am
Forum: Projects
Topic: OV7670, Generic STM32F103RC and ILI9341 display
Replies: 306
Views: 11616

Re: OV7670, Generic STM32F103RC and ILI9341 display

Strange, this means that the DMA is triggered even if the timer is stopped?
Hmm.
by stevestrong
Sat Sep 23, 2017 8:30 am
Forum: Projects
Topic: OV7670, Generic STM32F103RC and ILI9341 display
Replies: 306
Views: 11616

Re: OV7670, Generic STM32F103RC and ILI9341 display

Roger, you should first stop the timer before you write to SD. This way the timer DMA, even if enabled, will not be activated. After writing to SD card, simply resume the timer (XCLK). EDIT1 Ah, I think the pixel reading will not work if the XCLK is stopped. In this case one should temporarily de-ac...
by stevestrong
Fri Sep 22, 2017 12:29 pm
Forum: Projects
Topic: OV7670, Generic STM32F103RC and ILI9341 display
Replies: 306
Views: 11616

Re: OV7670, Generic STM32F103RC and ILI9341 display

Just for the record, here an example how to write BMP: http://forum.arduino.cc/index.php?topic ... #msg849962

and a nice JPEG encoder (for STM32L1): https://github.com/mitchd/vt-fox-1/tree ... de/encoder
by stevestrong
Fri Sep 22, 2017 8:47 am
Forum: Builds and Announcements
Topic: Unverified user deletion
Replies: 2
Views: 52

Re: Unverified user deletion

Makes sense.
by stevestrong
Fri Sep 22, 2017 8:45 am
Forum: Ideas & suggestions
Topic: Differential ADC (ADC1-ADC2)
Replies: 12
Views: 248

Re: Differential ADC (ADC1-ADC2)

My experience is that the only way you get reasonable ADC values (having low noise +/-1 bit (!!), non-differential input) is to feed the BP from a battery (~3.6V). Then I used to send the sampled values over SPI to another BP, having only GND and the SPI lines common for both BPs. Important is to se...
by stevestrong
Thu Sep 21, 2017 11:08 am
Forum: New users MUST post here first, and let us know a bit about you and your projects
Topic: Hi every one KHODIDAS from INDIA
Replies: 4
Views: 115

Re: Hi every one KHODIDAS from INDIA

The Arduino_STM32 core has no USB host functionality implemented.
You could try the generic core or the official STM32 core.
by stevestrong
Wed Sep 20, 2017 2:04 pm
Forum: USB bootloader
Topic: MapleMini : Standalone Bootloading and USB/Serial Usage
Replies: 10
Views: 106

Re: MapleMini : Standalone Bootloading and USB/Serial Usage

I can follow you, that is why I suggested the link. Please use the DFU loader, involved by uploading to the bootloader:http://wiki.stm32duino.com/index.php?title=Uploading_a_sketch#Upload_via_STM32duino_bootloader Have a look to the maple loader BAT file: https://github.com/rogerclarkmelbourne/Ardui...