-
Notifications
You must be signed in to change notification settings - Fork 94
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
Target NUCLEO WL55JC does not compile #232
Comments
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. |
FWIW, looks like the interface for STM32WL_LoRaRadio changed, but the example wasn't updated accordingly (the only constructor is the default one - yet the example passes 3 params). An updated example would be greatly appreciated! |
P.s.
|
Hi |
@jeromecoutant thanks, My bad, I searched for the 3 symbols for STM32WL could not find them so was thinking it was the issue, not thought
pay attention setting But we're using some custom module such as LoRa-E5 from seeed And the Wiki says that LoRa-E5 module ONLY transmits through RFO_HP and that Receive is done with PA4=1, PB5=0 and Transmit(high output power, SMPS mode) with PA4=0, PB5=1 So in LoRa-E5 module looks like in this case we have:
So pins are different from NUCLEO As we also plan to try RAK3172 modules also I asked to RAK wiring and they kindly and promptly replied (thanks to them), here it is the wiring for
I can try to create new PR to add new boards as mbed new targets but I may need some direction to help on LoRaWAN config side. I already added them as new targets (without LoRaWAN config), it compile and works fine so just need to add them now for LoRaWAN config. As you seems to be the expert on this side, any help will be greatly appreciated. Charles |
In fact, this was exactly goal of ARMmbed/mbed-os#14734
Yes, we will be happy to review it! @ARMmbed/team-st-mcd |
@jeromecoutant interesting, in the meantime I found a solution settings these pins as follow in "LORA_E5": {
"stm32wl-lora-driver.debug_rx": "LED1",
"stm32wl-lora-driver.debug_tx": "LED2",
"stm32wl-lora-driver.rf-switch-ctl1": "PA_4",
"stm32wl-lora-driver.rf-switch-ctl2": "PA_5",
"stm32wl-lora-driver.rf-switch-ctl3": "NC"
}, But now I have another issue, mbed just fire a HardFault once the sample flashed.
I must admit that something is out of my brain because I can run other samples with this custom target board (atecc608, spiflash, blink, ...) without any issue. So my. guess it's related to LoRaWAN and my board definition. Based on NUCLEO-WL55 which is dual core the LoRa-E5 (and RAK3172) are based on STM32WLE5, and it's single core so may be I missed something in my custom target definition Anyway, to makes things easier and code availability I forked this example and created both custom target on branch So now If a board guru have some can check if I missed something un custom targets definition, it will be awesome. Once fixed, I'll remove the custom target from this sample code (deleting this branch) to put them into main mbed-os, but I need to check everything is working fine before that. PS : Definition is for this custom board Thanks |
Ok took me some time to figure all this out, everything is fixed with this new PR done on mbed-os that add these 2 new modules. |
Let's close this issue ? And on a PR on this example repo to add the new modules ? |
yes, no need example, once PR ARMmbed/mbed-os#14859 merged, this example will works with new boards |
Description of defect
When trying to compile this example for target
NUCLEO WL55JC
it does fire an errorTarget(s) affected by this defect ?
NUCLEO_WL55JC
Toolchain(s) (name and version) displaying this defect ?
GCC_ARM
What version of Mbed-os are you using (tag or sha) ?
mbed-os-6.12.0
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
mbeb Studio or mbed-tools V2
How is this defect reproduced ?
import example
https://github.com/ARMmbed/mbed-os-example-lorawan/
select target
NUCLEO-WL55JC
clean build
from IDE or from terminalmbed-tools compile -t GCC_ARM -m NUCLEO_WL55JC --clean
FYI same setup works selecting target
DISCO-L072CZ-LRWAN1
The text was updated successfully, but these errors were encountered: