-
Notifications
You must be signed in to change notification settings - Fork 93
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
Integrate LR1110 and mbed-os #223
Comments
First, the config should be all uppercase (lr1110). Can you check if mbed_config.h contians the definitions that are missing? |
If you look at drivers, for instance GEMALTO, you can find mbed_lib.json config where pins are defined
I assume you need something similar for your radio driver |
I do not have mbed_config.h file in my application. Do I need to create one? |
If your app is using the config values, they need to come from somewhere. You should add mbed_lib.json to your driver you are adding. The default value I assume would be null. An application, would overwrite this to specific layout you got on your board. This should fix the issue. |
@kvkc97 This issue has an incomplete or old issue template.For future reference please use an up to date clone of the repository before raising issues. Many thanks. |
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. |
Check cmake_build//develop/GCC_ARM/mbed-os/compile_time_defs.txt |
I checked the above mentioned file and found the variables but could not understand how to move forward with it. Also in the mbed_lib.json file, I have added value NC for spi-mosi, spi-miso and spi-sclk and an error is generated in command prompt. I have attached the error and also the mbed-lib.json file and the compile_time_defs.txt file. |
Definition looks OK in mbed_lib.json. |
Can I have an update regarding this issue. |
Where are your pinnames defined? THe error indicates the compiler can't resolve Regarding the custom target,is it linked properly? There was a recent discussion about it , see ARMmbed/mbed-tools#278 (comment) if it helps |
The pinnames are defined in PinNames.h file in the custom target's folder. Have attached the file. The same pins can be defined successfully for SX1272 Radio. I believe the custom target addition is successful as the program is compiled successfully when SX1272 is selected as LoRa radio. |
it would be helpful to provide an example that would reproduce an issue (possibly with regular target, adding this new lr1110 driver and get this error). |
Can I have an update on this query |
The latest errors might be better to be reported to mbed-tools. It is not obvious what element was not found. What is printed if you use |
The latest errors are cleared but the pin definition error is still there. I tried to compile using three target board and all three of them are giving the same result, ie, the code is compiled for driver SX1276 but not for LR1110 (custom driver). The same pin definition error as previously attached is displayed. |
Can you create a simple code snippet or provide a branch we can use to reproduce the issue locally? |
I have created a pull request of my code #228 |
Hi, I modified the SX1276 radio files(from COMPONENT_SX1276 folder in mbed-os) with LR1110 radio functions. The code is compiled properly. However, I cannot change the generic pin names(MBED_CONF_SX1276_LORA_DRIVER_NAME) given in the radio files. Is there a way to solve this and also the previous issue of adding custom driver. |
Can I have an update on this case |
Is there any update on this case. Thank you |
The PR is too big, please just include the changes needed - rebase onto the branch you're making the PR against. Are you sure you have the configuration options defined in your new driver? Looks like the configuration tools can't find the options you are trying to override in your mbed_app.json. |
I have my PR with latest files. The error is persisting. I have mentioned the configuration options I did in my PR. However, I am not sure if there is something missing. The PR is #234 |
I want t use LR1110 as the LoRa driver for the lorawan example code. I have added the LR1110 driver in mbed-os\connectivity\drivers\lora folder. A pull request for the same was added to the mbed-os and link is given below.
ARMmbed/mbed-os#14560
I am using MBED CLI2 to compile and added STM32WB55RGV6 as a custom target (Custom target addition and compilation was successful). I modified the lora_radio_helper.h file to include the lr1110 driver. The file is attached.
lora_radio_helper.txt
I am getting compilation error as attached.
The text was updated successfully, but these errors were encountered: