Closed jpmeijers closed 3 years ago
I agree. With NUCLEO_WL55JC, CONSOLE pins are using LPUART_1, so all others LPUART_1 pins were commented. With LORA_E5, CONSOLE pins are using UART_1, so all others UART_1 pins should be commented, and LP_UART1 available :-)
Is it necessary to comment out the pins used by the console? I've used printf and UnbufferedSerial on the same uart without issues.
For a module like the LORA E5, I guess it's up to the board designer which pins are used for the console, so all uart pins should be available.
That's a good question, I was wondering yesterday which pins I could use for UART and if I could comment out some,
From my point of view you could use uart only on pins defined here (and not commented out of course) but tell me if I'm wrong (it was like that on this framwork
Console pins are defined on board template (makes sense), so by board designer but can be overwritten in mbed_app.json
.
So if @jpmeijers uncomment works, let's do it. may be we could also use other pins, which would be great, but need to be tested.
https://github.com/ARMmbed/stm32customtargets/blob/e7db2bbc78af3db31695a252e8b9f243bc37d754/TARGET_STM32WL/TARGET_LORA_E5/PeripheralPins.c#L133-L159
I would like to use the LPUART on PC0+PC1. I've tried changing the definition to:
This looks like it is working now, but it did not work the previous time. Maybe I had a mistake.
Can someone with more experience with the mbed custom target definitions please have a look and add the LPUART and additional UART pins? @hallard