IPCF with FreeRTOS throwing error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

IPCF with FreeRTOS throwing error

跳至解决方案
906 次查看
honeybee1881
Contributor II

I am using 

I am trying out example of IPCF with baremetal and FreeRTOS. 

Baremetal is working and I can see the output.

But when I ran IPCF example with FreeRTOS facing the below error.

 ./ipc-shm-sample_cdev.elf
ipc-shm-usr-lib: ipc_os_init(): Created Rx softirq thread with priority=99
ipc-shm-usr-lib: ipc_os_init(): done
ipc-shm-usr-lib: ipc_shm_init_instance(): initializing channels...
ipc-shm-usr-lib: ipc_shm_init_channels(): ipc shm channel 0 initialized
ipc-shm-usr-lib: ipc_buf_pool_init(): ipc shm pool 0 of chan 1 initialized
ipc-shm-usr-lib: ipc_buf_pool_init(): ipc shm pool 1 of chan 1 initialized
ipc-shm-usr-lib: ipc_buf_pool_init(): ipc shm pool 2 of chan 1 initialized
ipc-shm-usr-lib: ipc_shm_init_channels(): ipc shm channel 1 initialized
ipc-shm-usr-lib: ipc_buf_pool_init(): ipc shm pool 0 of chan 2 initialized
ipc-shm-usr-lib: ipc_buf_pool_init(): ipc shm pool 1 of chan 2 initialized
ipc-shm-usr-lib: ipc_buf_pool_init(): ipc shm pool 2 of chan 2 initialized
ipc-shm-usr-lib: ipc_shm_init_channels(): ipc shm channel 2 initialized
ipc-shm-usr-lib: ipc_shm_init_instance(): ipc shm initialized

Input number of messages to send: 10
ipc-shm-us-app: ch 0 >> 20 bytes: SENDING MESSAGES: 10
ipc-shm-usr-lib: ipc_shm_is_remote_ready(): inside remote_global->state is 0x0
ipc-shm-usr-lib: ipc_shm_unmanaged_tx(): inside ipc_shm_is_remote_ready
ipc-shm-us-app: send_ctrl_msg(): tx failed on control channelipc-shm-usr-lib: ipc_shm_free(): ipc shm released
ipc-shm-us-app: exit

 What can be the issue?

IPCF S32G-VNP-RDB3 S32G3 

 

0 项奖励
回复
1 解答
719 次查看
honeybee1881
Contributor II

Hi,

Its working now with following combination versions

  • S32 Design Studio for S32 Platform
    Version: 3.5
    Build id: 240726 (Update 13)
  • FreeRTOS 4.0.2 D2307
  • S32 Real-Time Drivers Version 4.0.2 P04 is AUTOSAR 4.4.0
  • IPCF S32G 4.10.0.202405310722 

 

在原帖中查看解决方案

0 项奖励
回复
4 回复数
878 次查看
Joey_z
NXP Employee
NXP Employee

hi,honeybee1881

Thank you for your information.

Do you use the example of IPCF_FreeRTOS_S32G399A_M7_0? How do you use the demo?

And do you try to use the IPCF sample from u-boot?

BR

Joey

0 项奖励
回复
867 次查看
honeybee1881
Contributor II

Hi Joey,

Yes, I do use the example of IPCF_FreeRTOS_S32G399A_M7_0 from the installation.

honeybee1881_0-1756886849571.png

 

How I use it

  • From "S32DS project from Example" I load the project.
  • Loaded the mex file its shows warning "The loaded configuration has been created by an older version of the tool. If saved, the old version of the tool may not be able to open again". Clicked on Ok.
  • I couldn't build out of the box, so I had to enable "Platform Interrupt Controller Configuration"
    honeybee1881_1-1756886930868.png
  • After giving "Update Code" it generates code
  • Build Project
  • Faced error "./Project_Settings/Startup_Code/system.c:72:14: fatal error: S32G399A_MC_CGM.h: No such file or directory"
  • Commented out the specific header and I am able to generate the "IPCF_FreeRTOS_S32G399A_M7_0.bin" 

I load the IPCF sample from the U-Boot console.

Please let me know for further queries.

0 项奖励
回复
812 次查看
Joey_z
NXP Employee
NXP Employee

hi,honeybee1881

Thank you for your reply.

About the issues: 

  • Faced error "./Project_Settings/Startup_Code/system.c:72:14: fatal error: S32G399A_MC_CGM.h: No such file or directory"

If you use the IPCF of version IPCF_S32G_4.10.0, please refer to the Release notes, and check the version of related package.

You need version of RTD and S32DS IDE as the attachment.

Hope this can help you.

BR

Joey

0 项奖励
回复
720 次查看
honeybee1881
Contributor II

Hi,

Its working now with following combination versions

  • S32 Design Studio for S32 Platform
    Version: 3.5
    Build id: 240726 (Update 13)
  • FreeRTOS 4.0.2 D2307
  • S32 Real-Time Drivers Version 4.0.2 P04 is AUTOSAR 4.4.0
  • IPCF S32G 4.10.0.202405310722 

 

0 项奖励
回复