2022-09-03 09:06 PM
My old project using 16bit infineon MCU with tasking c166, now I am moving to spc5 with free gnu gcc spc5studio.
I am working with typedef struct.
typedef struct
{
struct
{
struct
{
INT16 Rpm[6];
INT16 Load[7];
INT16 Threshold[6];
}
pickup;
} sensor;
UINT16 checksum;
} USERDATA;
in c166 I set a struct object to an absolute address with ___at
USERDATA __at( 0xE00004 ) userData;
how to do the same with spc5 free gnu gcc?
2022-09-04 01:09 PM
The SPC5 is your platform, is the address RAM?
Or FLASH you want to set via calibration process?
My example was one of using pointers vs globals.
2022-09-04 02:07 PM
Yes, the address is RAM.
I tried the code in windows pc first, still waiting for the development board.