I’m workig with a RAK3172 using de Arduino IDE. I tried to use a TSL2561 to read luminosity with this library. It Compiled ok, then uploaded it to my board but it didn’t work (Nothing comes to the Serial Monitor) then I tried to upload another program I knwo it work correctly (the RAK analog read example) but then i got this error:
Since then, I can’t no longer upload any code to my boards. This happend to 3 of my RAK3172. I tried to reset the board before upload but still the same.
Can you please tell me if there is any way to “erraese” this uploaded code from my rak3172 modules or anything I can do to repair them.
Thanks in advance!
Here is the code i uploaded
#include <Digital_Light_TSL2561.h>
void setup()
{
// initialize serial communication at 115200 bits per second
Serial.begin(115200);
Serial.println("RAKwireless Light Sensor");
Serial.println("------------------------------------------------------");
Wire.begin();
TSL2561.init();
}
void loop()
{
Serial.print("The Light value is: ");
Serial.println(TSL2561.readVisibleLux());
delay(1000);
}
I have the same issue,
Before everything is good, I can upload my code.
But after someday, it still prints via Serial2 (string im uploaded before) but detects baud failure when im upload a new code.
Hello how are you, I have the same problem and I would like to know if there was a feasible solution to the problem. Did it work to load the firmware again with the stm32CubeProgrammer? Did this work?
hello community, I managed to solve this problem, using the stm32CUbeprogrammer software provided in STM32CubeProg - STM32CubeProgrammer software for all STM32 - STMicroelectronics , You must download the latest firmware of the module which can be found at index - powered by h5ai v0.30.0 (https://larsjung.de/h5ai/) ,In my case, it generated an error related to the fact that the boot mode of the device had to be activated, for this I implemented the connection between the 3.3V output to the boot pin and reconnected the module to the computer, This way it was able to connect with the device, and it is only to download the .hex or .bin file. the device can be used again later.