Search found 18 matches
- Sun May 19, 2024 8:52 pm
- Forum: Libraries & Hardware
- Topic: Bug in SPI-library or in example sketch?
- Replies: 8
- Views: 497
Re: Bug in SPI-library or in example sketch?
Also for a STM32 must be a default setting, so after power up program recognizes a SD-card at the correct SPI-pins or a sensor at SDA/SCL. And the datasheet is not the right place! Of course I looked into chapter 4 and there in table 8. In column "Pin name (function after reset)" there is ...
- Sun May 19, 2024 5:38 pm
- Forum: Libraries & Hardware
- Topic: Bug in SPI-library or in example sketch?
- Replies: 8
- Views: 497
Re: Bug in SPI-library or in example sketch?
https://www.st.com/resource/en/application_note/an4899-stm32-microcontroller-gpio-hardware-settings-and-lowpower-consumption-stmicroelectronics.pdf Nice document, but not my question. If I buy a Arduino UNO I can see printed on the board RX, TX, SCL, SDA. So I know where I have to connect a RS485-a...
- Sun May 19, 2024 5:02 pm
- Forum: Libraries & Hardware
- Topic: Bug in SPI-library or in example sketch?
- Replies: 8
- Views: 497
Re: Bug in SPI-library or in example sketch?
Sketch has not been updated after SPI rework. I changed sketch to new functions and used a WeAct Studio BlackPill STM32F411CEUS, pin numbers are from their pinout graphic. LED on PA13 is connected to +3.3V, so it shines, when output level of PA13 is LOW. So I placed defines for LED_ON and LED_OFF a...
- Sun May 19, 2024 6:35 am
- Forum: Libraries & Hardware
- Topic: Bug in SPI-library or in example sketch?
- Replies: 8
- Views: 497
Bug in SPI-library or in example sketch?
My system: Windows 10 ArduinoIDE 2.3.2 Arduino core for STM32 MCUs 2.7.1 There is a test-sketch named SPI_loop.ino inside examples https://github.com/stm32duino/STM32Examples/blob/main/examples/NonReg/SPI_loop/SPI_loop.ino The code from line 50 to 53 is: SPI.begin(CS_PIN); for (uint8_t received = 0;...
- Fri May 17, 2024 7:31 pm
- Forum: General discussion
- Topic: STM32C011 (WeAct) - first steps
- Replies: 14
- Views: 1966
Re: STM32C011 (WeAct) - first steps
There is an issue in your setup as you used: Wire.setSDA(PA5); Wire.setSCL(PA4); But they are not I2C pins based on the PinMap_I2C_SDA array you provide. The "PYn_R" pin is remap pin that's all but when you remap some other "PYn" pins will not be available. @fpiSTM: I'm still in...
- Fri May 17, 2024 2:26 pm
- Forum: General discussion
- Topic: STM32C011 (WeAct) - first steps
- Replies: 14
- Views: 1966
Re: STM32C011 (WeAct) - first steps
Let me start with the last part: Finally I tried it on PB6/PB7, but the I2scanner.ino tells me, there is not I²c-device. Do you have Pullup on each I2C line ? I took out a STM32F411CE board to compare. I uploaded the i2scanner.ino via STLink. Then I connected A9/A10 to an USB-TTL-adapter to see outp...
- Fri May 17, 2024 10:41 am
- Forum: General discussion
- Topic: STM32C011 (WeAct) - first steps
- Replies: 14
- Views: 1966
Re: STM32C011 (WeAct) - first steps
Do you read my posting???trimarco232 wrote: ↑Fri May 17, 2024 10:03 am lots of answers here : https://github.com/stm32duino/Arduino_C ... 2/wiki/API
- Fri May 17, 2024 8:19 am
- Forum: General discussion
- Topic: STM32C011 (WeAct) - first steps
- Replies: 14
- Views: 1966
Re: STM32C011 (WeAct) - first steps
What drives me crazy at the moment is I²C :cry: Generally information is spread over several places. I know there are STM32Examples, but there is nothing about I²C. Instead you have to look at Arduino_Core_STM32/libraries/Wire/ And for some additional information, you have to look at: https://githu...
- Fri May 17, 2024 7:31 am
- Forum: General discussion
- Topic: STM32C011 (WeAct) - first steps
- Replies: 14
- Views: 1966
Re: STM32C011 (WeAct) - first steps
- DAPLink is for MBed , and will work for other IDEs , but for Arduino , I really fear it won't work , so far I think the problem is, that ArduinoIDE started with 8bit microcontroller. And debugging is a new topic since IDE 2.x comes out. In documentation I found: Arduino® boards with a SAMD microc...
- Fri May 17, 2024 7:08 am
- Forum: General discussion
- Topic: STM32F103CB ‘Sleepy mode’ and ‘Wake up’ function
- Replies: 10
- Views: 1695