Open harmut01 opened 3 years ago
I've just followed the repro steps and I ended up with the following in my mbed_config.cmake
141 "-DMBED_CONF_EVENTS_SHARED_STACKSIZE=2048"
142 "-DMBED_CONF_EVENTS_SHARED_EVENTSIZE=768"
143 "-DMBED_CONF_EVENTS_SHARED_DISPATCH_FROM_APPLICATION=0"
144 "-DMBED_CONF_EVENTS_SHARED_HIGHPRIO_STACKSIZE=1024"
145 "-DMBED_CONF_EVENTS_SHARED_HIGHPRIO_EVENTSIZE=256"
146 "-DMBED_CONF_EVENTS_USE_LOWPOWER_TIMER_TICKER=0"
Am I missing something? Could you post the verbose logging output from the tool? If you run mbedtools -vvv configure -t ARM -m RZ_A1H
it'll give you "very verbose" logging output.
I should note I encountered the above using the blinky-baremetal example, and the target library was added to the applications CMakeLists.txt. Here is the verbose logging output:
DEBUG: Searching for mbed-os.lib file at path /Users/harmut01/Projects/mbed-examples/blinky-baremetal
DEBUG: mbed-os.lib file found at /Users/harmut01/Projects/mbed-examples/blinky-baremetal
INFO: Found existing Mbed program at path '/Users/harmut01/Projects/mbed-examples/blinky-baremetal'
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/targets/targets.json
DEBUG: Loading JSON file /usr/local/lib/python3.9/site-packages/mbed_tools/targets/_internal/data/targets_metadata.json
DEBUG: Extracting config setting 'console-uart'='{'help': 'Target has UART console on pins CONSOLE_TX, CONSOLE_RX. Value is only significant if target has SERIAL device.', 'value': True}'
DEBUG: Extracting config setting 'console-uart-flow-control'='{'help': 'Console hardware flow control. Options: null, RTS, CTS, RTSCTS.', 'value': None}'
DEBUG: Extracting config setting 'network-default-interface-type'='{'help': 'Default network interface type. Typical options: null, ETHERNET, WIFI, CELLULAR, MESH', 'value': 'ETHERNET'}'
DEBUG: Extracting config setting 'deep-sleep-latency'='{'help': 'Time in ms required to go to and wake up from deep sleep (max 10)', 'value': 0}'
DEBUG: Extracting config setting 'app_offset'='{'help': 'Application start offset in ROM', 'value': None}'
DEBUG: Extracting config setting 'header_offset'='{'help': 'Application header offset in ROM', 'value': None}'
DEBUG: Extracting config setting 'boot-stack-size'='{'help': 'Define the boot stack size in bytes. This value must be a multiple of 8', 'value': '0x1000'}'
DEBUG: Extracting config setting 'mpu-rom-end'='{'help': 'Last address of ROM protected by the MPU', 'value': '0x0fffffff'}'
DEBUG: Extracting config setting 'default-form-factor'='{'help': "Default form factor of this board taken from supported_form_factors. This must be a lowercase string such as 'arduino'", 'value': None}'
DEBUG: Extracting config setting 'tickless-from-us-ticker'='{'help': 'Run tickless from the microsecond ticker rather than the low power ticker. Running tickless off of the microsecond ticker improves interrupt latency on targets which use lpticker_delay_ticks', 'value': False}'
DEBUG: Extracting config setting 'init-us-ticker-at-boot'='{'help': 'Initialize the microsecond ticker at boot rather than on first use, and leave it initialized. This speeds up wait_us in particular.', 'value': False}'
DEBUG: Extracting config setting 'custom-tickers'='{'help': 'Support custom tickers in addition to USTICKER and LPTICKER. Turning this off can permit some space and speed optimisations, if characteristics of USTICKER and LPTICKER are known at compile time.', 'value': True}'
DEBUG: Extracting config setting 'xip-enable'='{'help': 'Enable Execute In Place (XIP) on this target. Value is only significant if the board has executable external storage such as QSPIF. If this is enabled, customize the linker file to choose what text segments are placed on external storage', 'value': False}'
DEBUG: Extracting config setting 'default-adc-vref'='{'help': 'Default reference voltage for ADC (float)', 'value': 'NAN'}'
DEBUG: Extracting config setting 'internal-flash-uniform-sectors'='{'help': "Target's internal flash has uniform sector sizes", 'value': True}'
DEBUG: Adding config setting: 'target.console-uart'
DEBUG: Adding config setting: 'target.console-uart-flow-control'
DEBUG: Adding config setting: 'target.network-default-interface-type'
DEBUG: Adding config setting: 'target.deep-sleep-latency'
DEBUG: Adding config setting: 'target.app_offset'
DEBUG: Adding config setting: 'target.header_offset'
DEBUG: Adding config setting: 'target.boot-stack-size'
DEBUG: Adding config setting: 'target.mpu-rom-end'
DEBUG: Adding config setting: 'target.default-form-factor'
DEBUG: Adding config setting: 'target.tickless-from-us-ticker'
DEBUG: Adding config setting: 'target.init-us-ticker-at-boot'
DEBUG: Adding config setting: 'target.custom-tickers'
DEBUG: Adding config setting: 'target.xip-enable'
DEBUG: Adding config setting: 'target.default-adc-vref'
DEBUG: Adding config setting: 'target.internal-flash-uniform-sectors'
DEBUG: Applying override 'target.network-default-interface-type'=''ETHERNET''
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed_app.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/events/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/kvstore/direct_access_devicekey/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/emac/TARGET_RENESAS_EMAC/TARGET_RZ_A1XX/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/blockdevice/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/cellular/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/kvstore/kv_config/tdb_internal/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/drivers/device_key/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/nanostack/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/MultiTech/DragonflyNano/PPP/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/UBLOX/AT/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/QUECTEL/M26/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/kvstore/kv_config/tdb_external/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/kvstore/tdbstore/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/rtos/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/802.15.4_RF/mcr20a-rf-driver/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/features/frameworks/mbed-client-cli/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/802.15.4_RF/stm-s2lp-rf-driver/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/QUECTEL/EC2X/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/filesystem/littlefsv2/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/QUECTEL/BC95/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/TELIT/ME910/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/QUECTEL/UG96/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/filesystem/littlefs/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/filesystem/fat/ChaN/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/blockdevice/COMPONENT_SD/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/nfc/PN512/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/platform/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/UBLOX/PPP/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/nanostack/sal-stack-nanostack/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/TELIT/HE910/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/Altair/ALT1250/PPP/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/features/frameworks/unity/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/RiotMicro/AT/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/nanostack/sal-stack-nanostack-eventloop/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/features/frameworks/utest/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/netsocket/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/GENERIC/GENERIC_AT3GPP/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/kvstore/kvstore_global_api/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/features/frameworks/greentea-client/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/cmsis/device/rtos/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/platform/randlib/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/kvstore/kv_config/global/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/QUECTEL/BG96/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/platform/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/platform/bare_metal/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/lwipstack/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/blockdevice/COMPONENT_FLASHIAP/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/802.15.4_RF/atmel-rf-driver/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/TELIT/ME310/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/kvstore/kv_config/filesystem/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/libraries/ppp/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/UBLOX/N2XX/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/drivers/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/platform/mbed-trace/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/GEMALTO/CINTERION/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/filesystem/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/wifi/esp8266-driver/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/lorawan/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/nanostack/mbed-mesh-api/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/cmsis/CMSIS_5/CMSIS/RTOS2/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/nanostack/nanostack-hal-mbed-cmsis-rtos/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/nfc/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/kvstore/filesystemstore/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/nanostack/coap-service/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/libraries/mbed-coap/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/kvstore/kv_config/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/kvstore/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/mbedtls/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/kvstore/securestore/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/drivers/usb/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/libraries/nanostack-libservice/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/platform/bare_metal/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/events/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/kvstore/direct_access_devicekey/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/emac/TARGET_RENESAS_EMAC/TARGET_RZ_A1XX/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/blockdevice/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/cellular/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/kvstore/kv_config/tdb_internal/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/drivers/device_key/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/nanostack/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/MultiTech/DragonflyNano/PPP/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/UBLOX/AT/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/QUECTEL/M26/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/kvstore/kv_config/tdb_external/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/kvstore/tdbstore/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/rtos/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/802.15.4_RF/mcr20a-rf-driver/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/features/frameworks/mbed-client-cli/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/802.15.4_RF/stm-s2lp-rf-driver/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/QUECTEL/EC2X/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/filesystem/littlefsv2/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/QUECTEL/BC95/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/TELIT/ME910/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/QUECTEL/UG96/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/filesystem/littlefs/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/filesystem/fat/ChaN/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/blockdevice/COMPONENT_SD/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/nfc/PN512/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/platform/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/UBLOX/PPP/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/nanostack/sal-stack-nanostack/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/TELIT/HE910/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/Altair/ALT1250/PPP/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/features/frameworks/unity/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/RiotMicro/AT/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/nanostack/sal-stack-nanostack-eventloop/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/features/frameworks/utest/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/netsocket/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/GENERIC/GENERIC_AT3GPP/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/kvstore/kvstore_global_api/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/features/frameworks/greentea-client/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/cmsis/device/rtos/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/platform/randlib/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/kvstore/kv_config/global/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/QUECTEL/BG96/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/platform/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/lwipstack/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/blockdevice/COMPONENT_FLASHIAP/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/802.15.4_RF/atmel-rf-driver/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/TELIT/ME310/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/kvstore/kv_config/filesystem/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/libraries/ppp/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/UBLOX/N2XX/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/drivers/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/platform/mbed-trace/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/cellular/GEMALTO/CINTERION/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/filesystem/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/drivers/wifi/esp8266-driver/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/lorawan/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/nanostack/mbed-mesh-api/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/cmsis/CMSIS_5/CMSIS/RTOS2/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/nanostack/nanostack-hal-mbed-cmsis-rtos/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/nfc/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/kvstore/filesystemstore/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/nanostack/coap-service/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/libraries/mbed-coap/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/kvstore/kv_config/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/kvstore/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/mbedtls/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/kvstore/securestore/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/drivers/usb/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/connectivity/libraries/nanostack-libservice/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/storage/blockdevice/mbed_lib.json
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/rtos/mbed_lib.json
DEBUG: Extracting config setting 'present'='1'
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/platform/mbed_lib.json
DEBUG: Extracting config setting 'stdio-convert-newlines'='{'help': 'Enable conversion to standard newlines on stdin/stdout/stderr', 'value': True}'
DEBUG: Extracting config setting 'stdio-convert-tty-newlines'='{'help': 'Enable conversion to standard newlines on any tty FILE stream', 'value': True}'
DEBUG: Extracting config setting 'stdio-buffered-serial'='{'help': '(Applies if target.console-uart is true and stdio-minimal-console-only is false.) Use BufferedSerial driver to obtain buffered serial I/O on stdin/stdout/stderr. If false, unbuffered serial_getc and serial_putc are used directly.', 'value': False}'
DEBUG: Extracting config setting 'stdio-minimal-console-only'='{'help': '(Ignores stdio-buffered-serial) Creates a console for basic unbuffered I/O operations. Enable if your application does not require file handles to access the serial interface. The POSIX `fsync` function will always an error.', 'value': False}'
DEBUG: Extracting config setting 'stdio-baud-rate'='{'help': '(Applies if target.console-uart is true.) Baud rate for stdio', 'value': 9600}'
DEBUG: Extracting config setting 'stdio-flush-at-exit'='{'help': "Enable or disable the flush of standard I/O's at exit.", 'value': True}'
DEBUG: Extracting config setting 'default-serial-baud-rate'='{'help': 'Default baud rate for a serial object (if not specified in the constructor)', 'value': 9600}'
DEBUG: Extracting config setting 'poll-use-lowpower-timer'='{'help': 'Enable use of low power timer class for poll(). May cause missing events.', 'value': False}'
DEBUG: Extracting config setting 'error-hist-enabled'='{'help': 'Enable for error history tracking.', 'value': False}'
DEBUG: Extracting config setting 'error-hist-size'='{'help': 'Set the number of most recent errors the system keeps in its history, needs error-hist-enabled set to true for this to work.', 'value': 4}'
DEBUG: Extracting config setting 'error-filename-capture-enabled'='{'help': 'Enables capture of filename and line number as part of error context capture, this works only for debug and develop builds. On release builds, filename capture is always disabled', 'value': False}'
DEBUG: Extracting config setting 'error-all-threads-info'='{'help': 'Reports all the threads in the system as part of error report.', 'value': False}'
DEBUG: Extracting config setting 'max-error-filename-len'='{'help': 'Sets the maximum length of buffer used for capturing the filename in error context. This needs error-filename-capture-enabled feature.', 'value': 16}'
DEBUG: Extracting config setting 'memory-tracing-enabled'='{'macro_name': 'MBED_MEM_TRACING_ENABLED', 'help': 'Enable tracing of each memory call by invoking a callback on each memory operation. See mbed_mem_trace.h in the HAL API for more information', 'value': None}'
DEBUG: Extracting config setting 'all-stats-enabled'='{'macro_name': 'MBED_ALL_STATS_ENABLED', 'help': 'Set to 1 to enable all platform stats. When enabled the functions mbed_stats_*_get returns non-zero data. See mbed_stats.h for more information', 'value': None}'
DEBUG: Extracting config setting 'sys-stats-enabled'='{'macro_name': 'MBED_SYS_STATS_ENABLED', 'help': 'Set to 1 to enable system stats. When enabled the function mbed_stats_sys_get returns non-zero data. See mbed_stats.h for more information', 'value': None}'
DEBUG: Extracting config setting 'stack-stats-enabled'='{'macro_name': 'MBED_STACK_STATS_ENABLED', 'help': 'Set to 1 to enable stack stats. When enabled the functions mbed_stats_stack_get and mbed_stats_stack_get_each return non-zero data. See mbed_stats.h for more information', 'value': None}'
DEBUG: Extracting config setting 'stack-dump-enabled'='{'macro_name': 'MBED_STACK_DUMP_ENABLED', 'help': 'Set to true to enable stack dump.', 'value': False}'
DEBUG: Extracting config setting 'cpu-stats-enabled'='{'macro_name': 'MBED_CPU_STATS_ENABLED', 'help': 'Set to 1 to enable cpu stats. When enabled the function mbed_stats_cpu_get returns non-zero data. See mbed_stats.h for more information', 'value': None}'
DEBUG: Extracting config setting 'heap-stats-enabled'='{'macro_name': 'MBED_HEAP_STATS_ENABLED', 'help': 'Set to 1 to enable heap stats. When enabled the function mbed_stats_heap_get returns non-zero data. See mbed_stats.h for more information', 'value': None}'
DEBUG: Extracting config setting 'thread-stats-enabled'='{'macro_name': 'MBED_THREAD_STATS_ENABLED', 'help': 'Set to 1 to enable thread stats. When enabled the function mbed_stats_thread_get_each returns non-zero data. See mbed_stats.h for more information', 'value': None}'
DEBUG: Extracting config setting 'cthunk_count_max'='{'help': 'The maximum CThunk objects used at the same time. This must be greater than 0 and less 256', 'value': 8}'
DEBUG: Extracting config setting 'callback-nontrivial'='{'help': 'Enables support for non-trivial callable objects in Callback. Can be disabled to save ROM if no-one is using non-trivial types. Changing this value may cause incompatibility with pre-built binaries. Choice not available with IAR, value forced to true.', 'value': False}'
DEBUG: Extracting config setting 'callback-comparable'='{'help': 'Enables support for comparing two Callbacks. See notes on operator== for limitations. Can be disabled to save ROM if not required.', 'value': True}'
DEBUG: Extracting config setting 'crash-capture-enabled'='{'help': 'Enables crash context capture when the system enters a fatal error/crash.', 'value': False}'
DEBUG: Extracting config setting 'error-reboot-max'='{'help': 'Maximum number of auto reboots permitted when an error happens.', 'value': 1}'
DEBUG: Extracting config setting 'fatal-error-auto-reboot-enabled'='{'help': 'Setting this to true enables auto-reboot on a fatal error.', 'value': False}'
DEBUG: Extracting config setting 'use-mpu'='{'help': 'Use the MPU if available to fault execution from RAM and writes to ROM. Can be disabled to reduce image size.', 'value': True}'
DEBUG: Extracting config setting 'minimal-printf-enable-64-bit'='{'help': 'Enable printing 64 bit integers when using minimal printf library', 'value': True}'
DEBUG: Extracting config setting 'minimal-printf-enable-floating-point'='{'help': 'Enable floating point printing when using minimal printf library', 'value': False}'
DEBUG: Extracting config setting 'minimal-printf-set-floating-point-max-decimals'='{'help': 'Maximum number of decimals to be printed when using minimal printf library', 'value': 6}'
DEBUG: Adding config setting: 'platform.stdio-convert-newlines'
DEBUG: Adding config setting: 'platform.stdio-convert-tty-newlines'
DEBUG: Adding config setting: 'platform.stdio-buffered-serial'
DEBUG: Adding config setting: 'platform.stdio-minimal-console-only'
DEBUG: Adding config setting: 'platform.stdio-baud-rate'
DEBUG: Adding config setting: 'platform.stdio-flush-at-exit'
DEBUG: Adding config setting: 'platform.default-serial-baud-rate'
DEBUG: Adding config setting: 'platform.poll-use-lowpower-timer'
DEBUG: Adding config setting: 'platform.error-hist-enabled'
DEBUG: Adding config setting: 'platform.error-hist-size'
DEBUG: Adding config setting: 'platform.error-filename-capture-enabled'
DEBUG: Adding config setting: 'platform.error-all-threads-info'
DEBUG: Adding config setting: 'platform.max-error-filename-len'
DEBUG: Adding config setting: 'platform.memory-tracing-enabled'
DEBUG: Adding config setting: 'platform.all-stats-enabled'
DEBUG: Adding config setting: 'platform.sys-stats-enabled'
DEBUG: Adding config setting: 'platform.stack-stats-enabled'
DEBUG: Adding config setting: 'platform.stack-dump-enabled'
DEBUG: Adding config setting: 'platform.cpu-stats-enabled'
DEBUG: Adding config setting: 'platform.heap-stats-enabled'
DEBUG: Adding config setting: 'platform.thread-stats-enabled'
DEBUG: Adding config setting: 'platform.cthunk_count_max'
DEBUG: Adding config setting: 'platform.callback-nontrivial'
DEBUG: Adding config setting: 'platform.callback-comparable'
DEBUG: Adding config setting: 'platform.crash-capture-enabled'
DEBUG: Adding config setting: 'platform.error-reboot-max'
DEBUG: Adding config setting: 'platform.fatal-error-auto-reboot-enabled'
DEBUG: Adding config setting: 'platform.use-mpu'
DEBUG: Adding config setting: 'platform.minimal-printf-enable-64-bit'
DEBUG: Adding config setting: 'platform.minimal-printf-enable-floating-point'
DEBUG: Adding config setting: 'platform.minimal-printf-set-floating-point-max-decimals'
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/drivers/mbed_lib.json
DEBUG: Extracting config setting 'uart-serial-txbuf-size'='{'help': 'Default TX buffer size for a BufferedSerial instance (unit Bytes))', 'value': 256}'
DEBUG: Extracting config setting 'uart-serial-rxbuf-size'='{'help': 'Default RX buffer size for a BufferedSerial instance (unit Bytes))', 'value': 256}'
DEBUG: Extracting config setting 'crc-table-size'='{'macro_name': 'MBED_CRC_TABLE_SIZE', 'help': "Number of entries in each of MbedCRC's pre-computed software tables. Higher values increase speed, but also increase image size. The value has no effect if the target performs the CRC in hardware. Permitted values are 0, 16 or 256.", 'value': 16}'
DEBUG: Extracting config setting 'spi_count_max'='{'help': 'The maximum number of SPI peripherals used at the same time. Determines RAM allocated for SPI peripheral management. If null, limit determined by hardware.', 'value': None}'
DEBUG: Extracting config setting 'qspi_io0'='{'help': 'QSPI data I/O 0 pin', 'value': 'QSPI_FLASH1_IO0'}'
DEBUG: Extracting config setting 'qspi_io1'='{'help': 'QSPI data I/O 1 pin', 'value': 'QSPI_FLASH1_IO1'}'
DEBUG: Extracting config setting 'qspi_io2'='{'help': 'QSPI data I/O 2 pin', 'value': 'QSPI_FLASH1_IO2'}'
DEBUG: Extracting config setting 'qspi_io3'='{'help': 'QSPI data I/O 3 pin', 'value': 'QSPI_FLASH1_IO3'}'
DEBUG: Extracting config setting 'qspi_sck'='{'help': 'QSPI clock pin', 'value': 'QSPI_FLASH1_SCK'}'
DEBUG: Extracting config setting 'qspi_csn'='{'help': 'QSPI chip select pin', 'value': 'QSPI_FLASH1_CSN'}'
DEBUG: Extracting config setting 'ospi_io0'='{'help': 'OSPI data I/O 0 pin', 'value': 'OSPI_FLASH1_IO0'}'
DEBUG: Extracting config setting 'ospi_io1'='{'help': 'OSPI data I/O 1 pin', 'value': 'OSPI_FLASH1_IO1'}'
DEBUG: Extracting config setting 'ospi_io2'='{'help': 'OSPI data I/O 2 pin', 'value': 'OSPI_FLASH1_IO2'}'
DEBUG: Extracting config setting 'ospi_io3'='{'help': 'OSPI data I/O 3 pin', 'value': 'OSPI_FLASH1_IO3'}'
DEBUG: Extracting config setting 'ospi_io4'='{'help': 'OSPI data I/O 4 pin', 'value': 'OSPI_FLASH1_IO4'}'
DEBUG: Extracting config setting 'ospi_io5'='{'help': 'OSPI data I/O 5 pin', 'value': 'OSPI_FLASH1_IO5'}'
DEBUG: Extracting config setting 'ospi_io6'='{'help': 'OSPI data I/O 6 pin', 'value': 'OSPI_FLASH1_IO6'}'
DEBUG: Extracting config setting 'ospi_io7'='{'help': 'OSPI data I/O 7 pin', 'value': 'OSPI_FLASH1_IO7'}'
DEBUG: Extracting config setting 'ospi_sck'='{'help': 'OSPI clock pin', 'value': 'OSPI_FLASH1_SCK'}'
DEBUG: Extracting config setting 'ospi_csn'='{'help': 'OSPI chip select pin', 'value': 'OSPI_FLASH1_CSN'}'
DEBUG: Extracting config setting 'ospi_dqs'='{'help': 'OSPI dqs pin', 'value': 'OSPI_FLASH1_DQS'}'
DEBUG: Adding config setting: 'drivers.uart-serial-txbuf-size'
DEBUG: Adding config setting: 'drivers.uart-serial-rxbuf-size'
DEBUG: Adding config setting: 'drivers.crc-table-size'
DEBUG: Adding config setting: 'drivers.spi_count_max'
DEBUG: Adding config setting: 'drivers.qspi_io0'
DEBUG: Adding config setting: 'drivers.qspi_io1'
DEBUG: Adding config setting: 'drivers.qspi_io2'
DEBUG: Adding config setting: 'drivers.qspi_io3'
DEBUG: Adding config setting: 'drivers.qspi_sck'
DEBUG: Adding config setting: 'drivers.qspi_csn'
DEBUG: Adding config setting: 'drivers.ospi_io0'
DEBUG: Adding config setting: 'drivers.ospi_io1'
DEBUG: Adding config setting: 'drivers.ospi_io2'
DEBUG: Adding config setting: 'drivers.ospi_io3'
DEBUG: Adding config setting: 'drivers.ospi_io4'
DEBUG: Adding config setting: 'drivers.ospi_io5'
DEBUG: Adding config setting: 'drivers.ospi_io6'
DEBUG: Adding config setting: 'drivers.ospi_io7'
DEBUG: Adding config setting: 'drivers.ospi_sck'
DEBUG: Adding config setting: 'drivers.ospi_csn'
DEBUG: Adding config setting: 'drivers.ospi_dqs'
DEBUG: Loading JSON file /Users/harmut01/Projects/mbed-examples/blinky-baremetal/mbed-os/platform/mbed-trace/mbed_lib.json
DEBUG: Extracting config setting 'enable'='{'help': 'Used to globally enable traces.', 'value': None}'
DEBUG: Extracting config setting 'max-level'='{'help': 'This flag is used to optimize the code size. For example, setting trace optimization level to TRACE_LEVEL_INFO will define all tr_debug() macros empty, which reduces the binary size. The possible optimization levels are TRACE_LEVEL_DEBUG, TRACE_LEVEL_INFO, TRACE_LEVEL_WARN, TRACE_LEVEL_ERROR and TRACE_LEVEL_CMD. To set the output tracing level, please use mbed_trace_config_set(TRACE_ACTIVE_LEVEL_INFO). The possible tracing levels for mbed_trace_config_set() are TRACE_ACTIVE_LEVEL_ALL, TRACE_ACTIVE_LEVEL_DEBUG (same as ALL), TRACE_ACTIVE_LEVEL_INFO, TRACE_ACTIVE_LEVEL_WARN, TRACE_ACTIVE_LEVEL_ERROR, TRACE_ACTIVE_LEVEL_CMD and TRACE_LEVEL_NONE.', 'value': None, 'macro_name': 'MBED_TRACE_MAX_LEVEL'}'
DEBUG: Extracting config setting 'fea-ipv6'='{'help': 'Used to globally disable ipv6 tracing features.', 'value': None}'
DEBUG: Extracting config setting 'allocator'='{'value': 'malloc', 'macro_name': 'MEM_ALLOC'}'
DEBUG: Extracting config setting 'deallocator'='{'value': 'free', 'macro_name': 'MEM_FREE'}'
DEBUG: Adding config setting: 'mbed-trace.enable'
DEBUG: Adding config setting: 'mbed-trace.max-level'
DEBUG: Adding config setting: 'mbed-trace.fea-ipv6'
DEBUG: Adding config setting: 'mbed-trace.allocator'
DEBUG: Adding config setting: 'mbed-trace.deallocator'
DEBUG: Applying override 'target.c_lib'=''small''
DEBUG: Applying override 'target.printf_lib'=''minimal-printf''
DEBUG: Applying override 'platform.minimal-printf-enable-floating-point'='False'
DEBUG: Applying override 'platform.stdio-minimal-console-only'='True'
mbed_config.cmake has been generated and written to '/Users/harmut01/Projects/mbed-examples/blinky-baremetal/cmake_build/RZ_A1H/develop/ARM/mbed_config.cmake'
Thanks for clarifying that it's only with the baremetal example.
I think I understand what the problem is now. The issue is because "baremetal" uses the "requires" config field to specify which components it includes in the config. When "requires" is specified then we only pull in config from the mbed components listed in "requires" (and components listed in the required component's "requires" and so on), we skip everything else.
mbed-tools knows nothing about CMake targets or linked libraries, it only knows how to process the mbed JSON config. This means the library dependency probably also has to be declared in mbed_app.json as described in the docs. This isn't ideal as we're duplicating information, but until we rework how the config macros are generated and move that to CMake, it's an accepted nuisance.
If you have added events to the requires list and it still doesn't work, then we have a bug to fix.
Thanks @rwalton-arm that fixes it!
Thanks @rwalton-arm that fixes it!
That's good. We still need to figure out how to avoid duplicating this information, as currently the UX is really poor. I suggest we keep this ticket open to track the issue.
Describe the bug When adding a target library via target_link_library, the tool does not generate the necessary definitions from the libraries 'mbed_lib.json`. This issues was encountered on the blinky bare-metal example
To Reproduce Steps to reproduce the behavior:
mbedtools configure -t ARM -m RZ_A1H
mbed_config.cmake
Expected behavior Tool should automatically generate macros from that linked libraries mbed_lib.json configs .i.e. MBED_CONF_EVENTS_SHARED_EVENTSIZE=2048 for the following:
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Mbed (please complete the following information):
Additional context Add any other context about the problem here.