Search found 1740 matches

by stevestrong
Sat Nov 18, 2017 10:59 pm
Forum: General discussion
Topic: SPI with DMA , erratic behavior on ADC1
Replies: 3
Views: 29

Re: SP2 with DMA , erratic behavior on ADC1

You probably mean SPI, right? I have the same experience, the digital noise influnces the ADC readings a lot. That is why the latest original maple mini boards had separated Vcc and GND for analog and digital. The china clones don't have them. The workaround i did was reading the analog input with o...
by stevestrong
Sat Nov 18, 2017 2:36 pm
Forum: General discussion
Topic: Select the SPI bus within a function
Replies: 3
Views: 42

Re: Select the SPI bus within a function

Another example from here: https://github.com/stevstrong/Ethernet_STM32 You have to declare an SPI class object with appropriate SPI port number (1 or 2 for F1, 1..3 for F4) SPIClass mSpi(1); // you can use 1..2 for F1, 1..3 for F4) Then you need to call a function in setup(): Ethernet.init(mSpi, PA...
by stevestrong
Sat Nov 18, 2017 11:13 am
Forum: Projects
Topic: Complete dashboard for an old car
Replies: 2
Views: 64

Re: Complete dashboard for an old car

You should first have basic things clear like different variable types (int, uint8_t, float,...). You use a lot of int arrays/variable and do math with float values, :shock: So all those float values will be reduced to integers. I personally recommend to always specify variable types by the bit widt...
by stevestrong
Sat Nov 18, 2017 10:59 am
Forum: Libraries & Hardware
Topic: Hard time to make SPI work in slave mode
Replies: 15
Views: 196

Re: Hard time to make SPI work in slave mode

If you really need to transmit from slave only a couple of bytes, then u could use USART (serial), the blue pill has 3 USARTs. Otherwise, to transmit over SPI slave, you need to do the following: - setup the DMA Tx channel for the number of bytes u want to transmit: static const dma_channel dma_tx_c...
by stevestrong
Sat Nov 18, 2017 10:35 am
Forum: Problems with libraries
Topic: Problems using w5500
Replies: 1
Views: 63

Re: Problems using w5500

It would help us if you point out which chip and which library are u using, and eventually post a simple sketch with which the problem can be reproduced.

What are those parameters in the socket log?

P.S. I moved the topic to the right place.
by stevestrong
Thu Nov 16, 2017 8:10 pm
Forum: Libraries & Hardware
Topic: Hard time to make SPI work in slave mode
Replies: 15
Views: 196

Re: Hard time to make SPI work in slave mode

Do you have to do some processing on the received data? If not, then you can use the same double buffer to receive the data directly into the RGB buffer. Make the DMA buffer circular (which is actually the case in my example) and set it to the RGB buffer and forget about everything. There is no need...
by stevestrong
Thu Nov 16, 2017 1:44 pm
Forum: Libraries & Hardware
Topic: Hard time to make SPI work in slave mode
Replies: 15
Views: 196

Re: Hard time to make SPI work in slave mode

I am not sure, but you can try to see if it works.
If not, then connect same wire to another pin, too.
by stevestrong
Thu Nov 16, 2017 1:42 pm
Forum: New users MUST post here first, and let us know a bit about you and your projects
Topic: Decoding the Gameboy LCD output.
Replies: 118
Views: 988

Re: Decoding the Gameboy LCD output.

Sorry, i was wrong, of course you're right. I was thinking on F4....
by stevestrong
Thu Nov 16, 2017 1:15 pm
Forum: Libraries & Hardware
Topic: Hard time to make SPI work in slave mode
Replies: 15
Views: 196

Re: Hard time to make SPI work in slave mode

You could monitor the SPI and DMA stats rgisters for errors, and if any occur, then re-init the DMA.

Alternatively, you could signal the start of the frame with a nother pin to trIgger an interrpt wich resets the DMA before starting the frame, before NSS goes low.