We just need to know which core do you use.
see this for your reference: viewtopic.php?f=2&t=301
Search found 502 matches
- Fri Apr 02, 2021 3:50 pm
- Forum: General discussion
- Topic: Mux errors...
- Replies: 9
- Views: 5195
- Wed Mar 31, 2021 5:04 pm
- Forum: STM boards (Discovery, Eval, Nucleo, ...)
- Topic: w5500 Ethernet Nucleo STM32F303RE crash
- Replies: 5
- Views: 5617
Re: w5500 Ethernet Nucleo STM32F303RE crash
If it runs on bluepill correctly, then it must be related to the new board and/or STM derivate MCU, so you should check the supply voltages / pins / core settings...
- Tue Mar 30, 2021 9:03 pm
- Forum: Projects
- Topic: Reading SPI accelerometers
- Replies: 10
- Views: 7726
Re: Reading SPI accelerometers
Thanks! I eliminated the lines for beginTransaction and endTransaction, and I'm getting slightly better results (12.5kHz) but I didn't get your first point; are you suggesting to use something like dest=SPI.transfer(zeros, count) instead of for (uint8_t ii = 0; ii < count; ii++) { dest[ii] = SPI.tr...
- Tue Mar 30, 2021 2:21 pm
- Forum: Projects
- Topic: Reading SPI accelerometers
- Replies: 10
- Views: 7726
Re: Reading SPI accelerometers
I assume that you are using the official STM core. Here are some suggestions: i) You have to look whether there is another block transfer function to transfer array of bytes instead of doing several single byte transfers. ii) you can use digitalWriteFast() to set CS. iii) you can skip SPI.beginTrans...
- Mon Mar 29, 2021 3:55 pm
- Forum: STM boards (Discovery, Eval, Nucleo, ...)
- Topic: w5500 Ethernet Nucleo STM32F303RE crash
- Replies: 5
- Views: 5617
Re: w5500 Ethernet Nucleo STM32F303RE crash
Don't you have some SPI pins of the F303 board shared with other on-board chips?
Which SPI interface do you use? CS pin?
Which core?
Which SPI interface do you use? CS pin?
Which core?
- Mon Mar 29, 2021 3:51 pm
- Forum: General discussion
- Topic: Hang on udp.endPacket
- Replies: 5
- Views: 4892
Re: Hang on udp.endPacket
Insert some debug prints into socketSendUDP function so that you know where exactly is hanging
Also, you can add some debug prints in the yield() function.
Btw, which core do you use?
Also, you can add some debug prints in the yield() function.
Btw, which core do you use?
- Sun Mar 28, 2021 4:06 pm
- Forum: General discussion
- Topic: Hang on udp.endPacket
- Replies: 5
- Views: 4892
Re: Hang on udp.endPacket
If you are using the Ethernet library form Arduino, then it should not hang at all because the function socketSendUDP() - which is called in udp.endPacket() - has an integrated timeout condition, see here: https://github.com/arduino-libraries/Ethernet/blob/75a3c37b5e513305b82e926ca6a4f8190f536c9d/sr...
- Sat Mar 20, 2021 8:54 am
- Forum: General discussion
- Topic: I2C timeout for STM32F103C8
- Replies: 13
- Views: 8656
Re: I2C timeout for STM32F103C8
To guarantee that the amount of data is less than the buffer size is not enough. You also have to make sure that the buffer will be emptied within a specified time. Basically, if the value indicated by available for write is (<buffer size>-1) then theoretically no overflow should occur. In this case...
- Fri Mar 19, 2021 1:50 pm
- Forum: General discussion
- Topic: I2C timeout for STM32F103C8
- Replies: 13
- Views: 8656
Re: I2C timeout for STM32F103C8
I ran the sketch on a bluepill board and I got 1 ms processing time. This is only possible because the serial transmission is actually non-blocking . The user should check before sending the data that there is enough space in the Tx buffer, otherwise Tx data overflow will occure. If you insert this ...
- Fri Mar 19, 2021 10:05 am
- Forum: General discussion
- Topic: I2C timeout for STM32F103C8
- Replies: 13
- Views: 8656
Re: I2C timeout for STM32F103C8
This sequence if ((millis()-startL) < printDelay){ delay((printDelay - (millis() - startL))); } looks very dubious. I do not know what you wanted to achieve with that, but I se a big problem when (millis() - startL) becomes greater then printDelay. This can happen when the serial interface cannot se...