Find a example code of using driver / interfaces for MPC5748G?

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

Find a example code of using driver / interfaces for MPC5748G?

跳至解决方案
3,154 次查看
tobiasfuelle
Contributor I

Hello all,

 

I want to start testing my MPC5748G with some reference or example projects (can be baremetal without OS as well). If possible, I like to include and integrate several drivers in the future:
- CAN bus

- LIN bus

- FlexRay bus
- Ethernet port
- SPI port

 

Could you help me to find projects for that MCU or for similar ones?

 

Thanks,
kind regards,

 

Tobias

标签 (1)
0 项奖励
回复
1 解答
1,726 次查看
alexvinchev
Contributor V

You need AN4830, which contains all but FlexRay example. For FlexRay you'll have to use proprietary stack from AUTOSAR supplier or Vector (due to licensing issues).

在原帖中查看解决方案

3 回复数
1,727 次查看
alexvinchev
Contributor V

You need AN4830, which contains all but FlexRay example. For FlexRay you'll have to use proprietary stack from AUTOSAR supplier or Vector (due to licensing issues).

1,726 次查看
tobiasfuelle
Contributor I

Hello Aleksandar,

thank you very much. The examples are very helpful. But I am struggeling with the declaration of the function, since I can't find its definition:

__ghs_board_devices_init_AFTER_main(void);

Is that the actual name of it or will I substitute board_devices with its name?
Thanks,
regards,
Tobias

0 项奖励
回复
1,726 次查看
alexvinchev
Contributor V

Hi Tobias,

__ghs_board_devices_init_AFTER_main is defined in

<zip file>\AN4830_rev1_SW\MPC5748G_rev<revision>_silicon\tgt\libboardinit\mpc5748g_rev1.ppc

Normally, compiler should find it, since demo projects contain and build

tgt\resources.gpj

which builds libboardinit.gpj, containing mentioned file.

BR,

Alex

0 项奖励
回复