Linking with weakly defined ISRs only works with lib_archive = no
– many threads here regarding e.g. FreeRTOS + SVC/Timer interrupts are also about this.
If you want PlatformIO to do this automatically for your library, give your library folder within lib/
a library.json
and specify libArchive
to true
.