I am trying to move from PlatformIO 4 to PlatformIO 6 with the codebase from mbedOS 5.13.x.
While the changeover on platformio.ini
to specify using mbedOS 5.15.06 ended up not difficult, I found a very strange issue where some of the filenames under framework-mbed/features/FEATURE_BLE
directories are truncated and with 1970-1-1 file date too.
williamto@NZLT2300093:~/PIO/framework-mbed/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_CORDIO/TARGET_NRF5x$ ls -lrt
total 32
-rw-r--r-- 1 williamto williamto 774 Jan 1 1970 README.md
-rw-r--r-- 1 williamto williamto 1920 Jan 1 1970 NRFCordioHCITransportDr
-rw-r--r-- 1 williamto williamto 2492 Jan 1 1970 NRFCordioHCIDriver.h
-rw-r--r-- 1 williamto williamto 11963 Jan 1 1970 NRFCordioHCIDriver.cpp
-rw-r--r-- 1 williamto williamto 575 Jan 1 1970 mbed_lib.json
drwxrwxr-x 4 williamto williamto 4096 Jul 3 09:21 stack
williamto@NZLT2300093:~/PIO/framework-mbed/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NORDIC_CORDIO/TARGET_NRF5x/stack/sources$ ls -lrt
total 132
-rw-r--r-- 1 williamto williamto 10125 Jan 1 1970 pal_uart.
-rw-r--r-- 1 williamto williamto 13734 Jan 1 1970 pal_twi.c
-rw-r--r-- 1 williamto williamto 7897 Jan 1 1970 pal_timer
-rw-r--r-- 1 williamto williamto 7884 Jan 1 1970 pal_sys.c
-rw-r--r-- 1 williamto williamto 4641 Jan 1 1970 pal_rtc.c
-rw-r--r-- 1 williamto williamto 11768 Jan 1 1970 pal_nvm.c
-rw-r--r-- 1 williamto williamto 7755 Jan 1 1970 pal_led.c
-rw-r--r-- 1 williamto williamto 27758 Jan 1 1970 pal_crypt
-rw-r--r-- 1 williamto williamto 10870 Jan 1 1970 pal_cfg.c
-rw-r--r-- 1 williamto williamto 7625 Jan 1 1970 pal_bb.c
-rw-r--r-- 1 williamto williamto 8566 Jan 1 1970 pal_bb_bl
The build will fail because the build system will consider the truncated files as “missing”.
I used git to check out the source code from GitHub - ARMmbed/mbed-os at mbed-os-5.15.6 and it seems there is no issue similar to the “filename of death”.
The PlatformIO development system is run on Ubuntu 22 directly on metal and not on WSL.