Thanks for the suggestion.
I did flash the HID bootloader (https://github.com/Serasidis/STM32_HID_Bootloader) for the STM32F103 using ST-Link 2 & STMCubeProgrammer at 0x8000000 before I loaded this program. I changed the required settings in the Arduino IDE and it worked great on 5-6 different ...
Search found 30 matches
- Tue Jan 19, 2021 10:06 pm
- Forum: General discussion
- Topic: [Solved] Can I use SPI2 with Uno/Nano Library that uses SPI?
- Replies: 11
- Views: 11576
- Mon Jan 18, 2021 2:54 pm
- Forum: General discussion
- Topic: [Solved] Can I use SPI2 with Uno/Nano Library that uses SPI?
- Replies: 11
- Views: 11576
Re: Can I use SPI2 with Uno/Nano Library that uses SPI?
Update:
Before I changed the MCP_CAN_lib, I remapped the default SPI to use SPI2 pins, as it is 5 volt tolerant
SPI.setMOSI(PB15);
SPI.setMISO(PB14);
SPI.setSCLK(PB13);
AND IT WORKED! :)
Now the weird part:
Yesterday I started to use the WONDERFUL HID Bootloader (https://github.com ...
Before I changed the MCP_CAN_lib, I remapped the default SPI to use SPI2 pins, as it is 5 volt tolerant
SPI.setMOSI(PB15);
SPI.setMISO(PB14);
SPI.setSCLK(PB13);
AND IT WORKED! :)
Now the weird part:
Yesterday I started to use the WONDERFUL HID Bootloader (https://github.com ...
- Mon Jan 18, 2021 1:05 pm
- Forum: General discussion
- Topic: [Solved] Can I use SPI2 with Uno/Nano Library that uses SPI?
- Replies: 11
- Views: 11576
Re: Can I use SPI2 with Uno/Nano Library that uses SPI?
Thank you VERY much for your help!
I will try it later this morning.
I will try it later this morning.
- Mon Jan 18, 2021 1:39 am
- Forum: General discussion
- Topic: [Solved] Can I use SPI2 with Uno/Nano Library that uses SPI?
- Replies: 11
- Views: 11576
[Solved] Can I use SPI2 with Uno/Nano Library that uses SPI?
I am working on using a MCP 2515 CAN Bus module on my STM32F103C8 generic board running the STM32duino core.
(Yes, I understand the STM32F103 has a built in CAN controller, but I also require USB)
I am using the (wonderful!) MCP_CAN-lib (https://github.com/coryjfowler/MCP_CAN_lib)
As I understand ...
(Yes, I understand the STM32F103 has a built in CAN controller, but I also require USB)
I am using the (wonderful!) MCP_CAN-lib (https://github.com/coryjfowler/MCP_CAN_lib)
As I understand ...
- Sat Jan 16, 2021 1:57 am
- Forum: General discussion
- Topic: [Solved] I2C OLED Only Displays if Reset is Pressed??
- Replies: 9
- Views: 11871
Re: I2C OLED Only Displays if Reset is Pressed??
Adding a 25ms delay right after StartUp() resolved the issue.
20ms was not enough, so I will add a buffer just in case temperature is an issue and use 100ms.
That is a long time to a uC, but the end user won't notice a slower boot up.
20ms was not enough, so I will add a buffer just in case temperature is an issue and use 100ms.
That is a long time to a uC, but the end user won't notice a slower boot up.
- Fri Jan 15, 2021 9:43 pm
- Forum: General discussion
- Topic: [Solved] I2C OLED Only Displays if Reset is Pressed??
- Replies: 9
- Views: 11871
Re: I2C OLED Only Displays if Reset is Pressed??
It looks like OLED controller might need more time to start then STM. Try adding delay before initializing display.
I also recommend u8g2 library. It's faster than adafruit and much more fonts. You can also create own font quite easily.
Thanks, for the reply.
Tonight I will:
• Check the I2C ...
- Fri Jan 15, 2021 5:09 pm
- Forum: General discussion
- Topic: [Solved] I2C OLED Only Displays if Reset is Pressed??
- Replies: 9
- Views: 11871
Re: I2C OLED Only Displays if Reset is Pressed??
Do you used a bootloader ?
Do you used PU on I2C line ?
(Thanks for the quick reply!!)
Answers :)
(1) Before this project, I did load the "STM32duino-bootloader". I didn't want to load a ST USB driver on my Mac, so I erased it (using the STMCubeProgrammer) and reprogrammed from the Arduino IDE ...
- Fri Jan 15, 2021 3:48 pm
- Forum: General discussion
- Topic: [Solved] I2C OLED Only Displays if Reset is Pressed??
- Replies: 9
- Views: 11871
Re: I2C OLED Only Displays if Reset is Pressed??
UPDATE from logic analyzer:
• Upon start up the OLED address (0x3C) is sent and the OLED responds with a negative acknowledgement / NAK
• After I press reset, the OLED address is sent, and the OLED responds with a positive acknowledgement / ACK
Next steps... get out the DSO and look at the raw ...
• Upon start up the OLED address (0x3C) is sent and the OLED responds with a negative acknowledgement / NAK
• After I press reset, the OLED address is sent, and the OLED responds with a positive acknowledgement / ACK
Next steps... get out the DSO and look at the raw ...
- Fri Jan 15, 2021 2:17 pm
- Forum: General discussion
- Topic: [Solved] I2C OLED Only Displays if Reset is Pressed??
- Replies: 9
- Views: 11871
[Solved] I2C OLED Only Displays if Reset is Pressed??
My setup:
• STM32F103C8T6
• ST Arduino core
• 0.96 SSD1306 I2C OLED
• Program: Adafruit "ssd1306_128x64_i2c" example program
The program compiles fine and uploads without issue using ST-Link and serial.
After upload, the program starts and the display works.
BUT if I disconnect the power (provided ...
• STM32F103C8T6
• ST Arduino core
• 0.96 SSD1306 I2C OLED
• Program: Adafruit "ssd1306_128x64_i2c" example program
The program compiles fine and uploads without issue using ST-Link and serial.
After upload, the program starts and the display works.
BUT if I disconnect the power (provided ...
- Sat Mar 28, 2020 7:10 pm
- Forum: Installation and OS related
- Topic: Mac Mojave STM32CubeProgrammer Install Tips
- Replies: 2
- Views: 20703
Mac Mojave STM32CubeProgrammer Install Tips
(Note: There is no need to install Java to get the installer to run)
For those that want to set up the STM33duino using the STM32 Cores on a Mac running Mojave (10.14) here is what worked for me.
Follow the excellent instructions at: https://github.com/stm32duino/wiki/wiki/Getting-Started until ...
For those that want to set up the STM33duino using the STM32 Cores on a Mac running Mojave (10.14) here is what worked for me.
Follow the excellent instructions at: https://github.com/stm32duino/wiki/wiki/Getting-Started until ...