Disabling RTOS really helped a bit but it’s slow compared to VSCode.
setFrequency(16000000) delay between instructions:
VSCode with RTOS → 12µS
VSCode without RTOS → 5.5µs (fastest one)
Mbed Studio with RTOS → 18µS
Mbed Studio without RTOS → 9µs
Config I used to disable RTOS and other features on MBed Studio:
.mbedignore
rtos/*
features/cellular/
features/frameworks/*
features/net/*
features/netsocket/*
features/nvstore/*
features/storage/*
drivers/source/usb/*
features/lorawan*
features/lwipstack*
features/nanostack*
all .mbedignore files on VSCode:
find ./ -iname “.mbedignore” -type f -print -exec cat {} ;
.//components/TARGET_PSA/services/attestation/qcbor/.mbedignore
test/*
.//events/source/.mbedignore
tests/*
.//features/FEATURE_BLE/.mbedignore
tests/.//features/frameworks/mbed-client-randlib/.mbedignore
linux/
test/*
.//features/frameworks/mbed-coap/.mbedignore
test/*
unittest/*
.//features/frameworks/mbed-trace/.mbedignore
build/*
yotta_modules/*
yotta_targets/*
test/*
example/*
.//features/frameworks/nanostack-libservice/.mbedignore
test/*
.//features/lwipstack/.mbedignore
lwip/doc/*
lwip/test/*
lwip/src/apps/*
lwip/src/netif/lwip_slipif.c
lwip/src/include/lwip/apps/*
lwip/src/include/compat/stdc/*
lwip-eth/*
.//features/nanostack/coap-service/.mbedignore
test/*
.//features/nanostack/mbed-mesh-api/.mbedignore
test/*
.//features/nanostack/nanostack-hal-mbed-cmsis-rtos/.mbedignore
cs_nvm/test/*
.//features/nanostack/sal-stack-nanostack/.mbedignore
test/*
unittest/*
release/*
source/Service_Libs/CCM_lib/mbedOS/aes_mbedtls.c
output/*
.//features/storage/filesystem/littlefs/.mbedignore
littlefs/emubd/
littlefs/tests/
TESTS/util
.//features/storage/filesystem/littlefs/littlefs/emubd/.mbedignore
lfs_emubd.*
.//features/unsupported/.mbedignore
.//targets/TARGET_Silicon_Labs/TARGET_EFM32/TESTS/.mbedignore
*.//tools/.mbedignore
*.//UNITTESTS/.mbedignore
*%