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

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

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

Jump to solution
2,998 Views
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

Labels (1)
0 Kudos
1 Solution
1,570 Views
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).

View solution in original post

3 Replies
1,571 Views
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,570 Views
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 Kudos
1,570 Views
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 Kudos