I was wondering if you ever try to use the network stack, and more precisely the mesh/IPv6/6lowpan from the mbed librairy, using platformio?
Cause this stack is kinda a constellation of smaller librairies ( see here: Introduction - Introduction to Mbed OS 6 | Mbed OS 6 Documentation ), and it seems the nesting librairies functions in PIO 3.0 is having some trouble to get all the dependencies.
Okay, in the end, we kind of manage to update all the network stack mess.
Roughly, the fusion between mbed 2 and 3 ( that leads to mbed 5 now) is kinda incomplete regarding the library folder in the network stack. We use the platformio in order the library, and they are put in an .piolibdeps/ folder.
Then using all those library, we updated our platformio.ini this way:
So now, I have a small problem. While this works on Linux and we manage to compile our test program, the last linkage in windows does not work, resulting in an error “The command line is too long”.
And indeed, when looking at the link commande, this is HUGE.
Do you have any idea how I could reduce that linkage command?
This behavior leading to the excess of character for a windows command.
I assume this is caused by the library Dependency Finder, with the parameter lib_ldf_mode = 2. I think by scanning each .h in order to find the library, it link it withouth checking if that library has been already checked before, leading to multiple calls.