Search found 1744 matches

by stevestrong
Sun Nov 19, 2017 11:37 pm
Forum: STM32F4 Boards
Topic: [libmaple] Generic F407VE mini (vcc-gnd version)
Replies: 13
Views: 268

Re: [libmaple] Generic F407VE mini (vcc-gnd version)

OK, so it seems that it was me (as always :? )
I forgot to set the AF mode register correspondingly.
Funny, as soon as I set it right, it started to work... :mrgreen:
by stevestrong
Sun Nov 19, 2017 9:43 am
Forum: STM32F4 Boards
Topic: [libmaple] Generic F407VE mini (vcc-gnd version)
Replies: 13
Views: 268

Re: [libmaple] Generic F407VE mini (vcc-gnd version)

Well, I don't know whether the official ST core has support for this board, this has 25MHz crystal. I only found the Disco 407G the closest target supported. EDIT I checked the I2C part of ST official core , it does exactly the same as I do in the init phase. Hmm. It is really strange that the pins ...
by stevestrong
Sun Nov 19, 2017 8:43 am
Forum: STM32F4 Boards
Topic: [libmaple] Generic F407VE mini (vcc-gnd version)
Replies: 13
Views: 268

Re: [libmaple] Generic F407VE mini (vcc-gnd version)

I have a problem with this board, the I2C 1 interface seems to get locked to BUSY state (SR2 bit 1) right after setting at least one of the PB6/7 pins to GPIO_AF_OUTPUT_OD. I tried the software reset (SWRST), it clear the BUSY bit for the moment, but it gets set again after I release the SWRST bit. ...
by stevestrong
Sun Nov 19, 2017 7:30 am
Forum: General discussion
Topic: SPI with DMA , erratic behavior on ADC1
Replies: 4
Views: 61

Re: SPI with DMA , erratic behavior on ADC1

In my case both ADC0 and ADC1 readings were affected.
by stevestrong
Sat Nov 18, 2017 10:59 pm
Forum: General discussion
Topic: SPI with DMA , erratic behavior on ADC1
Replies: 4
Views: 61

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

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

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: 16
Views: 229

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

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: 16
Views: 229

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