Static variables missing in map file

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Static variables missing in map file

914件の閲覧回数
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 件の賞賛
返信
1 返信

768件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

is optimization level set to none? 

0 件の賞賛
返信