Static variables missing in map file

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Static variables missing in map file

867 Views
Harshalshinde
Contributor I

Hello,

I am using S32 Design Studio for S32 Platform for Compilation
Version: 3.5
Build id: 230629 (Update 3)

T32 for Debugging  : Software Version: R.2023.02.000159199

I imported IPCF example code in S32 design studio and build the code with 0 error and 0 warning 

 

Loaded .elf file in T32, while debugging code, static variable (ipc_shm_priv_data) and *cfg kept in watch window to check whether value is updated or not. 

we found that static variable is not updated and and for cfg  "bus error"  is shown in watch window

After that we checked map file then we found all static variables are missing in map file. 

Please suggest the solution. piece of code attached below 

 

static int ipc_shm_init_instance(uint8 instance,
const struct ipc_shm_cfg *cfg)
{

ipc_shm_priv_data[instance].shm_size = cfg->shm_size;
ipc_shm_priv_data[instance].num_channels = cfg->num_channels;

}

int ipc_shm_init(const struct ipc_shm_instances_cfg *cfg)
{
err = ipc_shm_init_instance(i, &cfg->shm_cfg[i]);
}
0 Kudos
Reply
1 Reply

721 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

is optimization level set to none? 

0 Kudos
Reply