Search found 70 matches

by Bakisha
Thu Jan 21, 2021 10:07 am
Forum: General discussion
Topic: [Solved] How to get SdFat to work on the ST Core/STM32F103
Replies: 13
Views: 216

Re: [Solved] How to get SdFat to work on the ST Core/STM32F103

When i was doing project with SdFat (but 1.1.4 version) on (original and fake) bluepills. It compiled and run on both cores (plus, it also works on STM32F401CC/F411CE/F407VE boards that i have). Maximum speed was 18MHz, but it run fine on 1MHz too. I tested on various SD Cards, but maximum size was ...
by Bakisha
Wed Jan 20, 2021 7:28 pm
Forum: General discussion
Topic: [Solved] How to get SdFat to work on the ST Core/STM32F103
Replies: 13
Views: 216

Re: [Solved] How to get SdFat to work on the ST Core/STM32F103

What is interesting, is that the actual SPI clock speed didn't change... the logic analyzer still measured it at ~2.28 Mhz before and after the above change. That's kind of odd, but it works :) As i recall, SdFat is rounding down requested speed to actual SPI speed available. You can only have SPI ...
by Bakisha
Sat Jan 16, 2021 6:04 pm
Forum: Off topic
Topic: Need advice about decoding ST7920 commands
Replies: 1
Views: 105

Re: Need advice about decoding ST7920 commands

As i see it, you pretty much figure out most of the stuff. I am only confused why there is no 72uS delay (execution time) after every two bytes. Maybe not all commands need large execution time? When first byte received is F8, rest of pair of bytes are commands, until CS goes low? (RS=0, RW=0) When ...
by Bakisha
Sun Dec 27, 2020 7:32 pm
Forum: General discussion
Topic: emulating a OLED display on a VGA and/or a LCD monitor
Replies: 64
Views: 2912

Re: emulating a OLED display on a VGA and/or a LCD monitor

@Y@@J Yeah, i'm impressed with that parallel sending data! I can't say from TvOUT library why it breaks if onStartVBlanking() is shorter then Vblank. I couldn't figure out from code is that per scanline callback or only when it's in Vblank stage. I'm not into 3d printer hardware and terminology, so ...
by Bakisha
Sun Dec 27, 2020 6:20 pm
Forum: General discussion
Topic: emulating a OLED display on a VGA and/or a LCD monitor
Replies: 64
Views: 2912

Re: emulating a OLED display on a VGA and/or a LCD monitor

+1 Nice job! As i recall, vertical blanking interval on NTSC is around 2.5mS. Maybe little more with TvOUT library, just by looking the numbers, it should be 2.9mS. Maybe you are exceeding that time while bluepill/nano wait each other for sync and those 2 microsecond delay. Just an idea, you could t...
by Bakisha
Fri Dec 18, 2020 12:32 pm
Forum: General discussion
Topic: emulating a OLED display on a VGA and/or a LCD monitor
Replies: 64
Views: 2912

Re: Looking for a suitable SPI slave example/tutorial

Artekit used DMA stream to SPI, so i don't think it's usefull in your project. Another idea is simpler one: Example sketch from roger core, https://github.com/rogerclarkmelbourne/Arduino_STM32/blob/master/STM32F1/libraries/A_STM32_Examples/examples/Maple/CrudeVGA/CrudeVGA.ino But instead of bit-bang...
by Bakisha
Thu Dec 17, 2020 8:27 pm
Forum: General discussion
Topic: emulating a OLED display on a VGA and/or a LCD monitor
Replies: 64
Views: 2912

Re: Looking for a suitable SPI slave example/tutorial

Without external electronic, i don't know how to combine DS and /SS signal when receiving SPI. I would use more blunt solution: -copy rx_buffer to 2nd_rx_buffer as soon as dma_transfer_complete = true -search in 2nd_rx_buffer sequence of 0x10 , 0x00 , 0xB0 -once found set it as offset -copy from 2nd...
by Bakisha
Thu Dec 17, 2020 5:01 pm
Forum: General discussion
Topic: emulating a OLED display on a VGA and/or a LCD monitor
Replies: 64
Views: 2912

Re: Looking for a suitable SPI slave example/tutorial

Looks OK to me. Maybe remove delay from main loop? Basically, if (rebuidBitmap()) printFrame(); must end before /SS line goes LOW again. Only error i could think of is that slave must be ready to receive data on power up before master start to send any data, or you might get your data shifted. As, i...
by Bakisha
Thu Dec 17, 2020 12:30 pm
Forum: General discussion
Topic: emulating a OLED display on a VGA and/or a LCD monitor
Replies: 64
Views: 2912

Re: Looking for a suitable SPI slave example/tutorial

@Bakisha, that is a perfect example how to use SPI. 1. Instead of using 4 lines to begin the master, you could use only one: 2. You can also send a whole buffer using 1. Yeah, i forgot about that, i was just copy-pasting code from very useful links you previously posted 2. Master code is simplified...
by Bakisha
Thu Dec 17, 2020 9:09 am
Forum: General discussion
Topic: emulating a OLED display on a VGA and/or a LCD monitor
Replies: 64
Views: 2912

Re: Looking for a suitable SPI slave example/tutorial

I successfully establish a connection between two blupills, one is set as master to send data to second bluepill that act as slave. Master code: #include <SPI.h> #define SPI1_NSS_PIN PA4 //SPI_1 Chip Select pin is PA4. You can change it to the STM32 pin you want. uint8_t data1; void setup() { // Set...

Go to advanced search