Page 1 of 1

Applications uploaded to the Seeed Studio LoRa-E5 mini does not boot

Posted: Thu Mar 02, 2023 12:47 pm
by larswd
My supervisor and I have been trying to do some work using the Seeed studio board LoRa-E5 mini using STM32WLE5JC.

After struggling a bit with removing the included write protection using the STM Programmer and a ST-Link, we managed to upload a script to the board. While we can, indeed see that the script has been uploaded, see picture attached below, the board seems to be entirely unresponsive. We can neither detect any activity on the connected serial ports, nor does the builtin LED flash (Code included below). We have also tried this on two boards, making it more unlikely to be caused by faulty hardware. The only response we have been able to get is that the RX LED flashes briefly if we send messages to it using the Arduino IDE (v2) serial monitor.

Has anyone encountered similar problems to ours?



Image showing that data has been uploaded to the controller: (We have also found machine instructions for writing to serial and blinking the built in LED in the system memory)

Re: Applications uploaded to the Seeed Studio LoRa-E5 mini does not boot

Posted: Thu Mar 02, 2023 12:47 pm
by larswd
The script we uploaded was a standard blink-script, namely



#include <Arduino.h>



void setup() {

// put your setup code here, to run once:

Serial.begin(115200);

delay(100);

Serial.println(F("booted"));



pinMode(LED_BUILTIN, OUTPUT); //We have tried using the exact pin name as well

digitalWrite(LED_BUILTIN, HIGH);

}



void loop() {

delay(2000);

Serial.println(F("loop"));

// put your main code here, to run repeatedly:

}

Re: Applications uploaded to the Seeed Studio LoRa-E5 mini does not boot

Posted: Thu Mar 02, 2023 2:38 pm
by fpiSTM
I guess you used the Generic WLE5JCIx target ?
So the LED_BUILTIN is simply undefined as a generic is not a board so don't know which pin to used. It is defined to allow build in CI.

Code: Select all

// On-board LED pin number
[code]#ifndef LED_BUILTIN
  #define LED_BUILTIN           PNUM_NOT_DEFINED
#endif
[/code]
Up to you to define it to the correct pin of the board.
You can redefine it using build_opt.h: https://github.com/stm32duino/Arduino_C ... uild_opt.h
with

Code: Select all

 -DLED_BUILTIN=xx
Same for Serial, default port is defined with:

Code: Select all

// UART Definitions
#ifndef SERIAL_UART_INSTANCE
  #define SERIAL_UART_INSTANCE  101
#endif

// Default pin used for generic 'Serial' instance
// Mandatory for Firmata
#ifndef PIN_SERIAL_RX
  #define PIN_SERIAL_RX         PA3
#endif
#ifndef PIN_SERIAL_TX
  #define PIN_SERIAL_TX         PA2
#endif
See https://github.com/stm32duino/Arduino_C ... wareserial

Re: Applications uploaded to the Seeed Studio LoRa-E5 mini does not boot

Posted: Fri Mar 31, 2023 11:53 am
by larswd
Thank you for the reply, and sorry for the late answer. The notification probably disappeared into some inbox. We managed to make it work, and while the pin target had to be changed, the main issue, I think, was something else. I have written a step-by-step-guide here outlining how we got it to work with functional code.

https://github.com/larswd/STM32WL-Seeed ... Playground