Hi guys,
I'm relatively at the beginning with the use of Teensy3.6, and I'm trying to migrate some existing applications.
Currently I have the following difficulty, which appears trivial, but stop me from moving forward in my work:
1.) how to declare a variable/struct that must be saved in the internal EEPROM ??
In previous developments with Atmel-Framework Environments for AVR products you will be able to use the "EEMEM" keyword.
example:
During the upload, the declared variables are thus transferred to the EEPROM area.
Currently I'm using the following tools:
1.) Arduino 1.8.1
2.) TeensyLoader 1.35
(Although I would as soon as possible switch to Visual Studio)
Can someone help me?
I'm relatively at the beginning with the use of Teensy3.6, and I'm trying to migrate some existing applications.
Currently I have the following difficulty, which appears trivial, but stop me from moving forward in my work:
1.) how to declare a variable/struct that must be saved in the internal EEPROM ??
In previous developments with Atmel-Framework Environments for AVR products you will be able to use the "EEMEM" keyword.
example:
Code:
typedef struct
{
uint8_t a;
uint8_t b;
uint8_t c;
}defvalue_type;
defvalue_type EEMEM Varname = { 1,2,3 };
During the upload, the declared variables are thus transferred to the EEPROM area.
Currently I'm using the following tools:
1.) Arduino 1.8.1
2.) TeensyLoader 1.35
(Although I would as soon as possible switch to Visual Studio)
Can someone help me?
Last edited: