Hi,
I have an existing project for a custom board using Atmega2560 made on PlatformIO on VSCode.
I use EEPROM to store some configuration data. My code takes Serial data from all serial ports of Atmega2560 connected to sensors like GPS, inclinometer and compass and sends it to another controller.
I will post my code if required but it is a large project so I am not posting it right now.
I imported Arduino-Blink example for Teensy4.1 and changed the src with my src folder, lib with my lib folder.
I have made basic changes to the code like disabling GPIO port manipulation etc which was specific to Atmega.
When I Verify the code it gives the following error
I have no idea where to look for this kind of error. It does not seem to be related directly to the code, but to the libraries.
I have an existing project for a custom board using Atmega2560 made on PlatformIO on VSCode.
I use EEPROM to store some configuration data. My code takes Serial data from all serial ports of Atmega2560 connected to sensors like GPS, inclinometer and compass and sends it to another controller.
I will post my code if required but it is a large project so I am not posting it right now.
I imported Arduino-Blink example for Teensy4.1 and changed the src with my src folder, lib with my lib folder.
I have made basic changes to the code like disabling GPIO port manipulation etc which was specific to Atmega.
When I Verify the code it gives the following error
Code:
In file included from C:\Users\DELL\.platformio\packages\framework-arduinoteensy\cores\teensy4/WProgram.h:41:0,
from C:\Users\DELL\.platformio\packages\framework-arduinoteensy\cores\teensy4/Arduino.h:6,
from src\misc.h:6,
from src\BUC_TERR.cpp:2:
C:\Users\DELL\.platformio\packages\framework-arduinoteensy\cores\teensy4/avr/pgmspace.h:30:52: error: section attribute not allowed for 'arr'
#define PROGMEM __attribute__((section(".progmem")))
^
lib\Flash\src/Flash.h:71:33: note: in expansion of macro 'PROGMEM'
_FLASH_STRING(const char *arr PROGMEM);
^
C:\Users\DELL\.platformio\packages\framework-arduinoteensy\cores\teensy4/avr/pgmspace.h:30:52: error: section attribute not allowed for '_arr'
#define PROGMEM __attribute__((section(".progmem")))
^
lib\Flash\src/Flash.h:105:20: note: in expansion of macro 'PROGMEM'
const char *_arr PROGMEM;
^
C:\Users\DELL\.platformio\packages\framework-arduinoteensy\cores\teensy4/avr/pgmspace.h:30:52: error: section attribute not allowed for 'arr'
#define PROGMEM __attribute__((section(".progmem")))
^
lib\Flash\src/Flash.h:200:40: note: in expansion of macro 'PROGMEM'
_FLASH_STRING_ARRAY(const char **arr PROGMEM, size_t count) : _arr(arr), _size(count) {}
^
C:\Users\DELL\.platformio\packages\framework-arduinoteensy\cores\teensy4/avr/pgmspace.h:30:52: error: section attribute not allowed for '_arr'
#define PROGMEM __attribute__((section(".progmem")))
^
lib\Flash\src/Flash.h:223:21: note: in expansion of macro 'PROGMEM'
const char **_arr PROGMEM;
I have no idea where to look for this kind of error. It does not seem to be related directly to the code, but to the libraries.