Hi everybody,
New user here.
I am using an esp8266 Wemos D1 mini pro.
My desktop environment is Win 10 64.
My Arduino version is 1.8.12.
I got the error in the title with my Arduino sketch when trying to debug. It compiled fine in Release mode and I was able to upload the sketch to my board where it behaved as expected. When I try to debug, the compiler fails to build and the debugging process cannot even start, as a result there is no output in the Output window for debug.
I followed the information here to try and use the debug mode:
https://www.visualmicro.com/page/ESP8266-Debugging.aspx My sketch shows "No issues found" with a white tick mark on a green background.
I switched on verbose and build properties for the compiler.
The crux of the problem seems to be linked to a file called pgmspace.h on line 107 but I am not sure what that problem is.
stdio.h:6: In file included from
stdio.h:63: from
cstdio:42: from
random:39: from
stl_algo.h:65: from
algorithm:62: from
WiFiClientSecureBearSSL.cpp:27: from
pgmspace.h: In function uint32_t pgm_read_dword_unaligned(const void*)
pgmspace.h: 107:1: error: a15 cannot be used in asm here
Using previously compiled file: i_pro\Debug\ESP8266WiFi\WiFiServer.cpp.o
Using previously compiled file: i_pro\Debug\ESP8266WiFi\WiFiServerSecureAxTLS.cpp.o
Using previously compiled file: i_pro\Debug\ESP8266WiFi\WiFiServerSecureBearSSL.cpp.o
Using previously compiled file: i_pro\Debug\ESP8266WiFi\WiFiUdp.cpp.o
Line 107 in that file is the closing curly bracket in that function:
static inline uint32_t pgm_read_dword_unaligned(const void *addr) {
uint32_t res;
pgm_read_dword_with_offset(addr, res);
return res;
}
If anybody knows how to get solve that issue it would be great. I am attaching the build log as well as the pgmspage.h file that crashed the party in the attached zip file.
Thanks,
Arnaud