Closed maxgerhardt closed 3 years ago
Thanks for reporting this, looks like the the config folder is partially redundant and partially incorrect as you pointed out. I'll see if I can streamline the configs so we don't need the templates (or at least update the files).
@maxgerhardt thank you for raising this issue.Please take a look at the following comments:
Could you add some more detail to the description? A good description should be at least 25 words.
NOTE: If there are fields which are not applicable then please just add 'n/a' or 'None'. This indicates to us that at least all the fields have been considered. Please update the issue header with the missing information, the issue will not be mirrored to our internal defect tracking system or investigated until this has been fully resolved.
@maxgerhardt it has been 5 days since the last reminder. Could you please update the issue header as previously requested?
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. Internal Jira reference: https://jira.arm.com/browse/IOTOSM-3562
Fix merged
Description of defect
When using the files in the
config/
folder asmbed_app.json
files, the application fails to compile since it seems to be using old definitions styles for LoRa radio pins etc.Target(s) affected by this defect ?
All
Toolchain(s) (name and version) displaying this defect ?
All
What version of Mbed-os are you using (tag or sha) ?
6.6.0
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
PlatformIO (core 5.1.1.a)
How is this defect reproduced ?
Try and use this project with first with the
mbed_app.json
in the root of this repo. Everything works.Now exchange the contents of the file with the content of e.g.
config/SX127X_example_config.json
.Compilation now gives
because the
mbed_app.json
defines the pin ashttps://github.com/ARMmbed/mbed-os-example-lorawan/blob/890a6a919fb84e86fac210fed4daed24d3ff465c/mbed_app.json#L18-L32
whereas the template does it as e.g.
https://github.com/ARMmbed/mbed-os-example-lorawan/blob/890a6a919fb84e86fac210fed4daed24d3ff465c/config/SX127X_example_config.json#L43-L62
(
sx1276-lora-driver.spi-mosi
vslora-spi-mosi
etc).It seems like the
mbed_app.json
was updated about a month ago but the templates are from november last year and don't represent the needed syntax anymore to describe the pins with the current driver version.