Arduino nano esp32 error code avr/ pgmspace no such file or directory

Hi I'm trying to upload a sketch code from Arduino ide to my Arduino nano esp32 but I get the error code
22 Replies
Maverick
Maverick2w ago
Sounds like the code is not compatible with the ESP32.
j3163290
j3163290OP2w ago
Hi maverick yes it is supported by the code
j3163290
j3163290OP2w ago
No description
j3163290
j3163290OP2w ago
Ok will try now boss If you are UK based I can send you a PCB for free if you are interested
j3163290
j3163290OP2w ago
No description
j3163290
j3163290OP2w ago
Still getting error
j3163290
j3163290OP2w ago
No description
Maverick
Maverick2w ago
You need to get rid of #define AVR_BOARD, or #include "avr/pgmspace". You only want the #include "pgmspace.h".
j3163290
j3163290OP2w ago
I uncoment avr board and avr pgmspace still get the same error
Maverick
Maverick2w ago
If #include "avr/pgmspace" no longer exists on the line mentioned by the error message, that will be impossible.
j3163290
j3163290OP2w ago
So do I uncomment the define or delete Can you right what I need to uncoment in a step by step guide plz
Maverick
Maverick2w ago
In the file I linked earlier you will see this:
c++
#ifndef F_INTERFACE_AL
#define F_INTERFACE_AL

#define AVR_BOARD
#ifdef AVR_BOARD
#include <avr/pgmspace.h>
#else
#include <pgmspace.h>
#endif
// CRC lookup table with polynomial of 0x131
PROGMEM const unsigned char _crc8_table[256] = {
c++
#ifndef F_INTERFACE_AL
#define F_INTERFACE_AL

#define AVR_BOARD
#ifdef AVR_BOARD
#include <avr/pgmspace.h>
#else
#include <pgmspace.h>
#endif
// CRC lookup table with polynomial of 0x131
PROGMEM const unsigned char _crc8_table[256] = {
You can change it to this:
c++
#ifndef F_INTERFACE_AL
#define F_INTERFACE_AL

#include <pgmspace.h>

// CRC lookup table with polynomial of 0x131
PROGMEM const unsigned char _crc8_table[256] = {
c++
#ifndef F_INTERFACE_AL
#define F_INTERFACE_AL

#include <pgmspace.h>

// CRC lookup table with polynomial of 0x131
PROGMEM const unsigned char _crc8_table[256] = {
The .ino file has the same problem. Why the author does this twice I cannot say. https://github.com/Alexbox364/F_Interface_AL/blob/master/F_Interface_AL_Software_v0_06/F_Interface_AL_Software_v0_06.ino#L23
j3163290
j3163290OP2w ago
Hi boss I fell asleep I will try now thanks
j3163290
j3163290OP2w ago
No description
No description
j3163290
j3163290OP2w ago
I done what you said but I get this error now
j3163290
j3163290OP2w ago
No description
Maverick
Maverick2w ago
I can't read the text in these photos. You can install discord on your computer and copy / paste text. I was able to view them in a browser. Here is the solution :https://github.com/adafruit/Adafruit-MCP23017-Arduino-Library/issues/100#issuecomment-1982028761
j3163290
j3163290OP3d ago
Hi buddy I haven't tried your solution yet but I burned bootloader from Arduino mega 2560 to Arduino nano and uploaded sketch and it worked. But I'm trying to burn bootloader on Arduino pro micro and I keep getting error code
DarwinWasWrong
@j3163290 how about posting the TEXT of the error instead of blurry pictures
j3163290
j3163290OP3d ago
Will do tomorrow what is the steps to burn bootloader to Arduino pro micro do i need a 10uf resistor

Did you find this page helpful?