cvimembeddedatmelstudio

How to configure vim for embedded programming?


I was wondering how to configure vim for embedded programming? Precisely, how to "replace" Atmel studio with vim (I do not want to install Atmel studio with wine)?

Imagine we have only a single main.c file, ALE says that these files cannot be found:

#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>

int main() {
    // nothing special
}

And of course it does not compile as compiler can't find those header files.

I think I installed all the necessary libraries. Maybe there is some problem with the path? How do I configure the path?


Solution

  • I was trying to compile main.c with gcc, but then I compiled it with avr-gcc instead. Warnings of "file not found" didn't go away, but it compiled successfully.