Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant Do Serial and LoRaWAN on STM32WLE5JC (Seeed LoRa E5 Mini) #1940

Closed
rajSilikon opened this issue Feb 3, 2023 · 4 comments
Closed

Cant Do Serial and LoRaWAN on STM32WLE5JC (Seeed LoRa E5 Mini) #1940

rajSilikon opened this issue Feb 3, 2023 · 4 comments
Labels
answered question ❓ Usually converted as a discussion

Comments

@rajSilikon
Copy link

Having Issues with Seeed Lora-e5 mini

STM32WLE5JC

I tried blinking an LED and fade an LED just to check if it communicates with the chip.

Blink LED and Fade LED works fine no issues.

but I cant do other than that, for example Serial Read / Write not working.
LoRaWAN code also not working.

Arduino IDE Settings

Am I missing something or is there a bug?

@fpistm
Copy link
Member

fpistm commented Feb 3, 2023

Hi @rajSilikon
by default, generic WLE5JC defined default Serial instance to be on:

// 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

But based on this pinout:
https://files.seeedstudio.com/products/317990687/image/3001615286723_.pic_hd.jpg
image

It seems it should be PB6/PB7.
Before
Serial.begin(speed);
Add:

Serial.setRx(PB7);
Serial.setTx(PB6);

You should also consider to redefine the SystemClock_Config to configure the LSE.

@fpistm fpistm added the question ❓ Usually converted as a discussion label Feb 3, 2023
@fpistm fpistm added the waiting feedback Further information is required label Feb 3, 2023
@rajSilikon
Copy link
Author

I was able to get serial to work using
Serial.setRx(PB7);
Serial.setTx(PB6);

Is LoRaWAN in Arduino IDE supported on this chip already?

Cant seem to get that to work

@fpistm fpistm added answered and removed waiting feedback Further information is required labels Feb 6, 2023
@fpistm
Copy link
Member

fpistm commented Feb 6, 2023

Fine.
For LoRaWan, yes it could be supported thanks:
https://github.com/stm32duino/STM32LoRaWAN

Anyway, some config need to be updated. We will update the library to be able to redefine easily the rfswitch pins.
Like it was done for the RAK:
stm32duino/STM32LoRaWAN#7

@fpistm fpistm closed this as completed Feb 6, 2023
@fpistm
Copy link
Member

fpistm commented Apr 7, 2023

Fixed by #1997

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered question ❓ Usually converted as a discussion
Projects
None yet
Development

No branches or pull requests

2 participants