"__vfprintf.h: No such file or directory" getting compilation error in segger

Hi, I am following your blog post, Ruuvi Firmware – Part 1: Sleep, to familiarise myself with the toolchain and programming. I am encountering following error "‘__vfprintf.h: No such file or directory’ " when I build the Ruuvi firmware c code as mentioned in the blog. I am exploring the internet to fix this issue. Meanwhile, I thought I would also post it here, if someone encountered the same error before and has a solution to share, it can save some time for me.

Thanks in advance.

Hi @BleTagLearner ,

Thanks for your message, maybe @otso has idea about this error.

Hello,

Have you installed the nRF15.3 SDK and ARMGCC as per Nordic’s instructions?

Personally I symlink the SDK, that way I can have many different projects without duplicating SDK files. e.g.

-projects
--MyRuuviProject
---nRF5_SDK15.3 (symlink)
--nRF5_SDK15.3 (actual folder)

Yes, I have installed the nRF5_SDK_15.0.0_a53641a and ARMGCC.

From one of the forums, I learned that some C files are deprecated in the latest Segger version (version 8), and it was recommended to install an older version, specifically version 5. I was able to download Segger for Nordic V5.68 from the Nordic tutorial on manual installation using the following link:

Segger for Nordic Version 5.68

Now, the code compiles successfully.

Thank you for your prompt response and for the idea of 'symlinking the SDK.

1 Like

Happy to hear that code compiles now