Mbed Studio - mbed_app.json problem [SOLVED]

Can anyone help me to figure out what I do wrong here?


{
  "target_overrides": {
    "macros": [
      "CFG_TUSB_MCU=1",
      "CFG_TUSB_OS=1"
    ],
    "*": {
      "STM32_F207ZG": {
        "target.features_add": "USBHOST_OTHER",
        "platform.stdio-convert-newlines;": "true"
      }
    }
  }
}

[ERROR] in .\mbed_app.json element target_overrides.*.STM32_F207ZG: OrderedDict([('target.features_add', 'USBHOST_OTHER'), ('platform.stdio-convert-newlines;', 'true')]) is not of type 'array', 'string', 'integer', 'boolean', 'null'; in .\mbed_app.json element target_overrides.*.STM32_F207ZG: OrderedDict([('target.features_add', 'USBHOST_OTHER'), ('platform.stdio-convert-newlines;', 'true')]) is not of type 'array', 'string', 'integer', 'boolean', 'null'; in .\mbed_app.json element target_overrides.macros: ['CFG_TUSB_MCU=1', 'CFG_TUSB_OS=1'] is not of type 'object'

Ineed to define some macros for “tinyusb” that I am trying to test with mbed
Thanks.

“macros” doesn’t go in the “target_overrides” block, it should be a top level element.

If anyone get this problem. I put a valid configuration, you can check the diff.
The star shouldn’t be there.

{
    "config":{},
    "macros": [
      "CFG_TUSB_MCU=1",
      "CFG_TUSB_OS=1",
      "USBHOST_OTHER=1"
    ],
"target_overrides":
    {     
"NUCLEO_F207ZG":
        {
"target.components_add": ["SD"],
"target.components_add": ["STORAGE"],
"target.components_add":["InterruptIn"]
        }
    }
}

Thaks Jamie