I tested this:
void i2cRestart(){
if((millis() - lasti2cRestart) > i2cRestartFreq){
Wire.end();
delay(500);
Wire.begin();
delay(500);
lasti2cRestart = millis();
}
}
but as soon as it triggers it resets the entire board (even with the watchdog turned OFF)
Search found 10 matches
- Fri Sep 24, 2021 12:35 pm
- Forum: General discussion
- Topic: recover I2c stuck
- Replies: 5
- Views: 3373
- Fri Sep 24, 2021 9:52 am
- Forum: General discussion
- Topic: recover I2c stuck
- Replies: 5
- Views: 3373
Re: recover I2c stuck
Do you mean by simply looping that? I like the simplicity :)
Another question, this is the code I use in setup():
Wire.begin();
sht.begin(SHT31_ADDRESS);
Wire.setClock(50000);
lcd.begin();
lcd.backlight(); // Turn on the blacklight and print a welcome message.
lcd.setCursor(4,0);
lcd ...
Another question, this is the code I use in setup():
Wire.begin();
sht.begin(SHT31_ADDRESS);
Wire.setClock(50000);
lcd.begin();
lcd.backlight(); // Turn on the blacklight and print a welcome message.
lcd.setCursor(4,0);
lcd ...
- Fri Sep 24, 2021 8:50 am
- Forum: General discussion
- Topic: recover I2c stuck
- Replies: 5
- Views: 3373
recover I2c stuck
Hello,
My project controls, through an STM32F103C8, a relay module. Attached to the board there are also an LCD module and an SHT31 sensor, both connected to the I2c (both on the first i2C. the second one isn't used). I use the Arduino IDE with the wire library and the LiquidCrystal_I2c. I have ...
My project controls, through an STM32F103C8, a relay module. Attached to the board there are also an LCD module and an SHT31 sensor, both connected to the I2c (both on the first i2C. the second one isn't used). I use the Arduino IDE with the wire library and the LiquidCrystal_I2c. I have ...
- Mon Sep 20, 2021 4:51 pm
- Forum: IDE's
- Topic: IWatchdog.h: no such file or directory
- Replies: 11
- Views: 9508
Re: IWatchdog.h: no such file or directory
Thanks for specifyng.
Unfortunately, I tried them all and got these errors:
Cubeprogrammer (serial): Timeout error occured while waiting for acknowledgement.
Error: Activating device: KO. Please, verify the boot mode configuration and check the serial port configuration. Reset your device then try ...
Unfortunately, I tried them all and got these errors:
Cubeprogrammer (serial): Timeout error occured while waiting for acknowledgement.
Error: Activating device: KO. Please, verify the boot mode configuration and check the serial port configuration. Reset your device then try ...
- Mon Sep 20, 2021 2:47 pm
- Forum: IDE's
- Topic: Activating bluepill watchdog using arduino IDE
- Replies: 3
- Views: 3550
Re: Activating bluepill watchdog using arduino IDE
This is my current setup:
settings.png
The goal is to use the watchdog. I tried using the IWatchdog library with this setup and it doesn't compile. I tried using the STM32 core that uses that library and I had to install the STM32cubeprogrammer, reconfiguring the IDE only to find out that I need ...
settings.png
The goal is to use the watchdog. I tried using the IWatchdog library with this setup and it doesn't compile. I tried using the STM32 core that uses that library and I had to install the STM32cubeprogrammer, reconfiguring the IDE only to find out that I need ...
- Mon Sep 20, 2021 1:56 pm
- Forum: IDE's
- Topic: Activating bluepill watchdog using arduino IDE
- Replies: 3
- Views: 3550
Activating bluepill watchdog using arduino IDE
Hello,
I am a novice. I have a bluepill and using the STM32F1/F4 core. Can someone explain how can I command the watchdog using the arduino IDE? Initializing it and reset.
Thanks
I am a novice. I have a bluepill and using the STM32F1/F4 core. Can someone explain how can I command the watchdog using the arduino IDE? Initializing it and reset.
Thanks
- Mon Sep 20, 2021 12:27 pm
- Forum: IDE's
- Topic: IWatchdog.h: no such file or directory
- Replies: 11
- Views: 9508
Re: IWatchdog.h: no such file or directory
ok so, is there a way of using the watchdog with the STM32F1/F4 core?
- Mon Sep 20, 2021 11:03 am
- Forum: IDE's
- Topic: IWatchdog.h: no such file or directory
- Replies: 11
- Views: 9508
Re: IWatchdog.h: no such file or directory
I've fixed the serial3 issue but now, after having installed the STM32CubeProgrammer, at the end of the compile it returns this error:
Error: No debug probe detected.
These are the settings I've used:
Error: No debug probe detected.
These are the settings I've used:
- Mon Sep 20, 2021 9:38 am
- Forum: IDE's
- Topic: IWatchdog.h: no such file or directory
- Replies: 11
- Views: 9508
Re: IWatchdog.h: no such file or directory
<t>Thanks. I think I found the issue. I was using the STM32F1 core -> generic STM32F103C series that doesn't support that library.<br/>
<br/>
I tried to switch to "STM32 boards group" -> generic STM32F1 series but it gives me an error when compiling because it can't use the serial3<br/>
<br/>
Sorry ...
<br/>
I tried to switch to "STM32 boards group" -> generic STM32F1 series but it gives me an error when compiling because it can't use the serial3<br/>
<br/>
Sorry ...
- Mon Sep 20, 2021 8:15 am
- Forum: IDE's
- Topic: IWatchdog.h: no such file or directory
- Replies: 11
- Views: 9508
IWatchdog.h: no such file or directory
Hello,
I'm trying to use the IWatchdog library on the arduino IDE. Please note that I started playing with MCU recently so my knowledge is very very limited. I was already able to make some project work using a bluepill Generic STM32F103C series but now I need to activate and manage the internal ...
I'm trying to use the IWatchdog library on the arduino IDE. Please note that I started playing with MCU recently so my knowledge is very very limited. I was already able to make some project work using a bluepill Generic STM32F103C series but now I need to activate and manage the internal ...