5 years, 10 months ago.

Configurable values in mbed_app.json and mbed_lib.json ?

How do i find out which values configurable in mbed_app.json and mbed_lib.json in the online compiler ?

For instance, I'd like to pin the spreading factor in the lora stack to SF7. There are a couple of "lora." values there, maybe what is need is already there.

"target_overrides": {
        "*": {
            "platform.stdio-convert-newlines": true,
            "platform.stdio-baud-rate": 115200,
            "platform.default-serial-baud-rate": 115200,
            "lora.over-the-air-activation": false,
            "lora.duty-cycle-on": true,
            "lora.phy": "EU868",
            "lora.appskey": "{}",
            "lora.nwkskey": "{}",
            "lora.device-address": "" 
        },

It would be great if these parameters and the allowed values would be automatically generated and listed somewhere.

1 Answer

5 years, 10 months ago.

I believe they are in the mbed_config.h which should be in the BUILD folder.

these can be found there from my latest build I did:

  1. define MBED_CONF_EVENTS_PRESENT 1 set by library:events
  2. define MBED_CONF_EVENTS_SHARED_DISPATCH_FROM_APPLICATION 0 set by library:events
  3. define MBED_CONF_EVENTS_SHARED_EVENTSIZE 256 set by library:events
  4. define MBED_CONF_EVENTS_SHARED_HIGHPRIO_EVENTSIZE 256 set by library:events
  5. define MBED_CONF_EVENTS_SHARED_HIGHPRIO_STACKSIZE 1024 set by library:events
  6. define MBED_CONF_EVENTS_SHARED_STACKSIZE 1024

I assume this is when you are building locally (offline). I don't think the build folder is accessible in the online compiler