Where to put mbed_app.json files

I have a simple question,

Where in the project tree should I put mbed configuration files like mbed_app.json? I want to disable a few things e.g. hwfc for the nRF52 DK target. I know I can do this in target.json in /framework-mbed/targets folder, but I would like to have separate settings for this specific project.

We don’t support mbed_app.json, please use Redirecting... and build options.

1 Like

Can you provide an example how this can be specified?

How do you do that with mbed CLI?

I think there is no answer in the thread. I want to do this:

“target_overrides”: {
“NRF52_DK”: {
“target.uart_hwfc”: 0
}
To the mbed_app.json

any way to do this in some config?

1 Like

Hi byq77,

Did you find a solution by now?

Yours,
BleDude

Hi @ivankravets, may you help a bit?

How to set this type options?

I tried to figure out how to use Low Frequency Internal Crystal.

Thanks, Taras.

See my comment here

A temporary solution is to use build_flags. For example,

[env:myenv]
platform = ...
build_flags = -D MBED_CONF_NORDIC_NRF_LF_CLOCK_CALIB_TIMER_INTERVAL

@ivankravets thanks,

build_flags = 
    -D MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC=NRF_LF_SRC_RC

it works well for me :slight_smile:

1 Like

What is your mbed_app.json? We will add soon support for it.

1 Like

I followed this doc:

{
     "target_overrides": {
        "*": {
            "target.lf_clock_src": "NRF_LF_SRC_XTAL"
        }
     }
}