Swan MCU Low Power Mode Issues

Hey everyone I am part of an ECE senior design team at NC State and we are trying to work with the Swan for one of our projects. We are trying to use the Swan in its low-power mode with a small current draw in the microAmp range. We are working in VSCode with the Platform extension and are not using the STlink. Every time we try compiling the code we are met with many


undefined reference errors and cannot figure out what is causing them. We have tried putting the header files in both the src and include folder in the workspace shown in the picture but nothing has changed. Any help or guidance would be greatly appreciated!

Some updates, I managed to download the libraries on the platformio tab and that allows us to build and upload the code. However, the code gets stuck here.

Hi @ali-adloo ,

Let’s see if we can get this resolved for you!

From an internal discussion, it seems that the flash on the Swan may have been corrupted, which could have happened from attempting to flash a binary for another device/architecture.

A couple of things to check; it appears as though you are using USB DFU to flash your Swan? Do you have an STLink available to program the Swan with?

Thanks,
Alex