Search found 57 matches

by Y@@J
Thu Dec 17, 2020 2:43 pm
Forum: General discussion
Topic: emulating a OLED display on a VGA and/or a LCD monitor
Replies: 64
Views: 32580

Re: Looking for a suitable SPI slave example/tutorial

(couldn't post more than 3 files in a post ?) PulseView4.JPG As you can see, the data are really simple ! In fact I'm not satisfied. I used a SSD1306 OLED because the protocol is simple. But this display is not supported by Marlin in SPI mode. It has to be done by hand (I posted how to do it on RepR...
by Y@@J
Thu Dec 17, 2020 2:32 pm
Forum: General discussion
Topic: emulating a OLED display on a VGA and/or a LCD monitor
Replies: 64
Views: 32580

Re: Looking for a suitable SPI slave example/tutorial

Yes I read somewhere IRQs cannot be interrupted.
At this time, I've not tested on VGA, only on terminal. I'm about to start hacking an old VGA cable.

The data, zooming more and more :
PulseView1.JPG
PulseView1.JPG (42.32 KiB) Viewed 4747 times
PulseView2.JPG
PulseView2.JPG (72.82 KiB) Viewed 4747 times
PulseView3.JPG
PulseView3.JPG (54.92 KiB) Viewed 4747 times
by Y@@J
Thu Dec 17, 2020 11:39 am
Forum: General discussion
Topic: emulating a OLED display on a VGA and/or a LCD monitor
Replies: 64
Views: 32580

Re: Looking for a suitable SPI slave example/tutorial

I found why my code wasn't working... It has nothing to do with SPI/DMA, it had to do with my decoding function (conversion to bitmap). For some reason I can't explain, at some point I put this at the begining of my decoding function : if (frame_complete) return; FACEPALM FACEPALM FACEPALM AGAIN ! L...
by Y@@J
Thu Dec 17, 2020 2:42 am
Forum: General discussion
Topic: emulating a OLED display on a VGA and/or a LCD monitor
Replies: 64
Views: 32580

Re: Looking for a suitable SPI slave example/tutorial

@Bakisha : the keywords you gave returned little information, and searching the sources on the HHD nearly nothing. I found this function, but no effect : dma_clear_isr_bits(DMA #, DMA channel #) Something interesting I can't interpret : I made mistake, with a weird effect... I doubled the buffer siz...
by Y@@J
Wed Dec 16, 2020 6:40 pm
Forum: General discussion
Topic: emulating a OLED display on a VGA and/or a LCD monitor
Replies: 64
Views: 32580

Re: Looking for a suitable SPI slave example/tutorial

Exactly ! The interrupt is triggered, but the buffer is not updated, it keeps the previous data. Verified filling it with zeros after first update. [EDIT] I mean : filled with the previous data. The simplest (and most efficient) way to do what I need would be to get one interrupt for each and every ...
by Y@@J
Wed Dec 16, 2020 4:11 pm
Forum: General discussion
Topic: emulating a OLED display on a VGA and/or a LCD monitor
Replies: 64
Views: 32580

Re: Looking for a suitable SPI slave example/tutorial

Yes, I'm aware of the story (Roger's Git and EEVBlogs), and of the work for the old forum with a website copier. Resetting DMA after each new frame is what I've been trying to do since yesterday. I'm out of ideas. It's like dma_get_irq_cause() doesn't reset the flags and the buffer. Tried everything...
by Y@@J
Wed Dec 16, 2020 1:18 am
Forum: General discussion
Topic: emulating a OLED display on a VGA and/or a LCD monitor
Replies: 64
Views: 32580

Re: Looking for a suitable SPI slave example/tutorial

Huge progress ! Copied the code from this link : http://stm32duinoforum.com/forum/viewtopic_f_14_t_3527_start_10.html Removed Tx related code, adapted the code made for the Nano, and got this (crappy image, the forum always saying : too large) CaptureSTM32.jpg But after a SPI frame capture is comple...
by Y@@J
Tue Dec 15, 2020 6:18 pm
Forum: Projects
Topic: STM32F103C8 BluePill VGA Project
Replies: 42
Views: 38296

Re: STM32F103C8 BluePill VGA Project

Thank you for the answers. I was suspecting it was not easy. Integrating such a feature at the lowest level needs a lot of knowledge, and Marlin bacame a huge mammoth ! (the LPC boards SKR 1.1 and 1.4 Turbo are 100 and 120GHz, Marlin runs on 8 bit 48GHz) I'm working on SPI to TV with "some"...
by Y@@J
Tue Dec 15, 2020 6:14 pm
Forum: General discussion
Topic: emulating a OLED display on a VGA and/or a LCD monitor
Replies: 64
Views: 32580

Re: Looking for a suitable SPI slave example/tutorial

Some news... As at this time I can't understand a word of the STM32 SPI slave, I test with a Nano and the library TVOut. I get images, it seems reactive, but the images are garbled. I just filled the TVOut buffer directly with the SPI bus data, without knowing how it is organized (for example is it ...
by Y@@J
Sun Dec 13, 2020 7:01 pm
Forum: General discussion
Topic: emulating a OLED display on a VGA and/or a LCD monitor
Replies: 64
Views: 32580

Re: Looking for a suitable SPI slave example/tutorial

A SPI frame is 1048 bytes (8 * (3+128)) and 12ms long with a LPC1769. It is up to 3x better than what gives a 328P (25-30ms). But I have no idea of the SPI parameters. When idle, the refresh rate is one frame every half a second or so. It's difficult to evaluate when playing with the UI. I had up to...

Go to advanced search