As the title says, a project I've taken over has a static volatile struct that basically holds network data when connecting to a WiFi network. I need to create an array of these structs to save the data of previous networks.
This is what the struct I'm trying to copy looks like:
static volatile struct
{
BYTE MySSID[32];
BYTE SsidLength;
BYTE SecurityMode;
BYTE SecurityKey[32];
BYTE SecurityKeyLength;
BYTE dataValid;
BYTE networkType;
BYTE IsLinked;
BYTE ConnectionID;
} NetworkStruct;
And this is the most recent of my failed attempts at creating an array that I can copy the data in this struct to:
static volatile struct
{
BYTE MySSID[32];
BYTE SsidLength;
BYTE SecurityMode;
BYTE SecurityKey[32];
BYTE SecurityKeyLength;
BYTE dataValid;
BYTE networkType;
BYTE IsLinked;
BYTE ConnectionID;
} SavedNetworks[10];
So far, this and every other attempt throws an error.
Here is the error the above attempt throws:
Link Error: Could not allocate section .nbss, size = 944 bytes, attributes = bss near
Link Error: Could not allocate data memory