Where to put mbed_app.json files


#1

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.


#2

We don’t support mbed_app.json, please use http://docs.platformio.org/en/latest/librarymanager/config.html and build options.


STM32 STDIO pin redefinition
#3

Can you provide an example how this can be specified?


#4

How do you do that with mbed CLI?


#5

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?


#6

Hi byq77,

Did you find a solution by now?

Yours,
BleDude


#7

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.


#8

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

#9

@ivankravets thanks,

build_flags = 
    -D MBED_CONF_NORDIC_NRF_LF_CLOCK_SRC=NRF_LF_SRC_RC

it works well for me :slight_smile:


#10

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


#11

I followed this doc:

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