Search found 1515 matches

by stevestrong
Mon Sep 25, 2017 7:58 am
Forum: New users MUST post here first, and let us know a bit about you and your projects
Topic: trouble with timers and library structure
Replies: 3
Views: 20

Re: trouble with timers and library structure

I think this is the environment: Arduino: 1.6.9 (Windows XP), Board: "Discovery, STM32F100RB-DISCVL, STLink, None, None" Arduino 1.6.9. should work ok. Upload via ST-Link (V2?). Just wondering, the Arduino_STM32 core does not have any variant named "Discovery, STM32F100RB-DISCVL". Which target did y...
by stevestrong
Sun Sep 24, 2017 4:09 pm
Forum: Projects
Topic: DLO-138 OScope
Replies: 77
Views: 3761

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: 159

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: 159

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: 314
Views: 11741

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: 159

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: 314
Views: 11741

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: 314
Views: 11741

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: 314
Views: 11741

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: 314
Views: 11741

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