microsoft / vscode-arduino

Visual Studio Code extension for Arduino
Other
1.17k stars 223 forks source link

unknown register name "r0"C/C++(1118) #1277

Open vde69 opened 3 years ago

vde69 commented 3 years ago

const uint8_t daysInMonth [12] PROGMEM = { 31,28,31,30,31,30,31,31,30,31,30,31 }; uint32_t days = D; for (uint8_t i = 1; i < M; ++i) days += pgm_read_byte(daysInMonth + i - 1); // <<<<< unknown register name "r0"


v0.4.3

vde69 commented 3 years ago

the problem was solved by deleting the c_cpp_properties file.json, and the subsequent manual configuration of the directories.

ttttttom commented 3 years ago

may i know what you have included in the c_cpp_properties in order to solve your problem? thanks in advance!

cinderblock commented 2 years ago

When using inline assembly or global register features of GCC, IntelliSense doesn't know how to handle it. I'm still looking for a way to have it not fail when using AVR registers.

register uint8_t example asm("r2");