6 years, 5 months ago.

CLI and mbed_app.json

Hello, after having modified the file mbed_app.json the generated file mbed_config.h on the prj root directory is not updated (while the same file in the /BUILD/NUCLE_F401RE/GCC_ARM is updated). When compiling from CLI no problems, but if compiling from a previously exported KEIL prj this cause compiling errors. Is this the correct behavior? Thanks

1 Answer

6 years, 5 months ago.

Yes. The system creates mbed_config.h one time upon export. The Keil build system cannot update mbed_config.h. You'll need to run export again if you want a new config.

You can use Mbed CLI to export again.

Thanks, not fully convinced this is the correct behavior: why not simply check, while compiling from CLI , if in the root dir is present a file *.uvprojx and the configuration was changed, just copy the config.h file from /BUILD/NUCLE_F401RE/GCC_ARM to the prj root in order to override the former one. I guess this should be a minor change in python build scripting.

posted by Licio Mapelli 02 Jan 2018