Search found 1514 matches

by stevestrong
Sun Sep 24, 2017 4:09 pm
Forum: Projects
Topic: DLO-138 OScope
Replies: 77
Views: 3757

Re: DLO-138 OScope

Please post here the complete error message from the Arduino IDE window (which file, which line,...).
Which core are u using?

[german]:
Bitte die komplette Fehlemeldung hier posten, einschliesslich Dateiname, Zeilennummer, usw.
Welcher Core wird verwendet?
by stevestrong
Sun Sep 24, 2017 3:40 pm
Forum: STLink
Topic: Ultra simple STM32 debugger
Replies: 6
Views: 154

Re: Ultra simple STM32 debugger

After opening it any further time, unhandled exception after clicking four times on any button in any combination/order. Error message attached. Fields are auto-filled, but the program does not reset anymore. For "pause" it stops and shows the line number, but after further clicks comes the said exc...
by stevestrong
Sun Sep 24, 2017 3:04 pm
Forum: STLink
Topic: Ultra simple STM32 debugger
Replies: 6
Views: 154

Re: Ultra simple STM32 debugger

Same result, no improvement... :( I am testing it with the BP supplied over USB, and a ST-Link V2 clone (connected: GND, SWCLK, SWDIO). SUCCESS! I figured out my problem: I was uploading over USB, so the debug port was deactivated. I wondered why I could also not connect with the ST-LINK utility......
by stevestrong
Sun Sep 24, 2017 8:32 am
Forum: Projects
Topic: OV7670, Generic STM32F103RC and ILI9341 display
Replies: 313
Views: 11728

Re: OV7670, Generic STM32F103RC and ILI9341 display

I wired up the SD card, removed the resistors, SdInfo works, so I will check your sketch soon.
Where is the defined readPixels24()? I think it should read and stores 4 bytes instead of 3, because as far as I know the BMP pixel data must be 4 bytes aligned.
by stevestrong
Sat Sep 23, 2017 2:18 pm
Forum: STLink
Topic: Ultra simple STM32 debugger
Replies: 6
Views: 154

Re: Ultra simple STM32 debugger

Unfortunately, it does not work for me. Win 10, 64 bit. I select all folders/bins. As soon as I press any button (reboot, pause, play) the program freezes for ~15seconds, then it shows a corresponding message in the window ("MCU is rebooting... (0x08000000)", "Continuing program execution..."), but ...
by stevestrong
Sat Sep 23, 2017 9:09 am
Forum: Projects
Topic: OV7670, Generic STM32F103RC and ILI9341 display
Replies: 313
Views: 11728

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: 313
Views: 11728

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: 313
Views: 11728

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: 313
Views: 11728

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: 313
Views: 11728

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