Arm Mbed OS support forum

Path in compiled binaries - platformio

Hi,
I’m using platformio with Mbed framework 6.51401.200622. After building my project in the compiled binary I find my computer path, e.g.:

00010440h: 9E 46 70 47 43 3A 5C 55 73 65 72 73 5C 47 47 47 ; žFpGC:\Users\MB
00010450h: 5C 2E 70 6C 61 74 66 6F 72 6D 69 6F 5C 70 61 63 ; \.platformio\pac
00010460h: 6B 61 67 65 73 5C 66 72 61 6D 65 77 6F 72 6B 2D ; kages\framework-
00010470h: 6D 62 65 64 2F 70 6C 61 74 66 6F 72 6D 2F 53 69 ; mbed/platform/Si
00010480h: 6E 67 6C 65 74 6F 6E 50 74 72 2E 68 00 70 20 3D ; ngletonPtr.h.p =
00010490h: 3D 20 72 65 69 6E 74 65 72 70 72 65 74 5F 63 61 ; = reinterpret_ca
000104a0h: 73 74 3C 54 20 2A 3E 28 26 5F 64 61 74 61 29 00 ; st<T *>(&_data).

I’ve tried setting the macro MBED_CONF_PLATFORM_ERROR_FILENAME_CAPTURE_ENABLED=0 but nothing has changed.
I’ve found a similar question on stack overflow.

How can I compile my project without showing these paths? Thank you

It looks like those paths are coming from MBED_ASSERT macros. So you should be able to build in release mode or define -DNDEBUG to cause the asserts to get compiled out.