Advertisement
Guest User

Atmel 161025

a guest
Oct 25th, 2016
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.54 KB | None | 0 0
  1. Prog.......
  2.  
  3. //#ifndef F_CPU
  4. #define F_CPU 16000000UL // 16 MHz clock speed
  5. //#endif
  6.  
  7. #include <avr/io.h>
  8. #include <util/delay.h>
  9. #include "Arduino.h"
  10.  
  11. //Declared weak in Arduino.h to allow user redefinitions.
  12. int atexit(void (* /*func*/ )()) { return 0; }
  13.  
  14. // Weak empty variant initialization function.
  15. // May be redefined by variant files.
  16. void initVariant() __attribute__((weak));
  17. void initVariant() { }
  18.  
  19. int main(void) {
  20.     init();
  21.     initVariant(); 
  22.     setup();
  23.     while(1) {
  24.         loop();
  25.         //if(serialEventRun) serialEventRun();
  26.     }
  27. }
  28.  
  29. void setup() {
  30.     //tone(3, 3100);
  31. }
  32.  
  33. void loop() {
  34.   digitalWrite(4,HIGH);
  35.   delay(500);
  36.   digitalWrite(4,LOW);
  37.   delay(500);
  38. }
  39.  
  40.  
  41. result . . . .
  42. Severity    Code    Description Project File    Line
  43. Error       MakeFileGenFailureException captured - Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))  sketch_jul26a   C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Compiler.targets     line 5
  44. Error       Error in generating MakeFile    sketch_jul26a   sketch_jul26a   line 0
  45.  
  46.  
  47. If I run last successful build I get.....
  48. Severity    Code    Description Project File    Line
  49. Error       skipping incompatible C:\Users\Joel\Documents\Atmel Studio\7.0\TaxiBuzzer\TaxiBuzzer\ArduinoCore\Debug\libArduinoCore.a when searching for -lArduinoCore    sketch_jul26a       1
  50. Error       cannot find -lArduinoCore   sketch_jul26a       1
  51. Error       recipe for target 'sketch_jul26a.elf' failed    sketch_jul26a   C:\Users\Joel\Documents\Atmel Studio\7.0\TaxiBuzzer\TaxiBuzzer\sketch_jul26a\Debug\Makefile 109
  52. Error       ld returned 1 exit status   sketch_jul26a   collect2.exe    0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement