trampoline icon indicating copy to clipboard operation
trampoline copied to clipboard

NXP DEVKIT-MPC57xx Support.

Open dapperfu opened this issue 7 years ago • 13 comments
trafficstars

NXP has released 2 new inexpensive development boards. Both are much more accessible options for grad students and hobbyists as the XPC56xxMB2 starts at $375.

Having an actually ASIL certified chip to do development would really lower the barrier of entry for anyone that wanted to jump into AUTOSAR.

  • DEVKIT-MPC5748G, $39.00 The MPC5748G addresses functional safety, security and Industrial/Automotive gateway application needs, it offers up to three e200 Power Arch MCUs, Hardware Security Module, vast of communication interfaces and flexible memory options. DEVKIT-MPC5748G is a development tool for MPC5748G MCU and provides easy access to more than 100 GPIOS of the MCU plus access to onboard Ethernet, CAN, LIN, USB, etc. The standard-based form factor compatible with the Arduino™ pin layout, provides a broad range of expansion board options, the board has option to be powered with external power supply.
  • DEVKIT-MPC5744P, $35.00 The MPC5744P addresses Automotive/Industrial functional safety and motor control applications. It offers dual e200z4 lockstep cores, motor control, safety, and communication interfaces to facilitate a complete safety/chassis solution. DEVKIT-MPC5744P is a development tool for MPC5744P and provides easy access to more than 100 GPIOs plus access to onboard CAN, LIN, FlexRay, etc. The standard form factor compatible with the Arduino pin layout provides a broad range of expansion options. The board can be powered with an external power supply or directly through USB.

I would be more than willing to ship mine to developers (in the US) or figure out how to get them to you from local sources.

dapperfu avatar Nov 16 '18 02:11 dapperfu

Hello,

We can get one from Farnell. However, we are lacking workforce to do a port on this platform. Would you be interested in contributing to the project by carrying out this port?

Best regard

jlbirccyn avatar Dec 14 '18 09:12 jlbirccyn

I would love to contribute, but my backlog of other projects would probably upset my wife.

Are there any university students (anywhere in the world) that would like to do this as a capstone project? I don't have any connections to any universities but if anyone here does I would happily sponsor some students.

dapperfu avatar Dec 17 '18 21:12 dapperfu

Hello,

I have just bought two of those cards (DEVKIT-MPC5744P). I am available to port Trampoline on this platform. I do not where to start. I have the main.pdf documentation where chapters 15 and 16.2 might be useful.

Regards,

Eddy

chatoune avatar May 07 '19 03:05 chatoune

Hello Eddy,

Good news ! The first thing to do is to run something on the board and to analyze the memory mapping and the startup code. Since this CPU supports only the VLE ISA, you will start by doing a copy of machines/ppc/mpc5643l and rename it to mcp5744p (startup code) and goil/templates/code/ppc/mpc5643l (templates to generate target specific code) and goil/templates/config/ppc/mpc5643l (basically the files to compile in machines/ppc/mpc5643l and interrupt sources). What compiler are you going to use ?

jlbirccyn avatar May 08 '19 07:05 jlbirccyn

Hello,

I will be using GCC. I am working with the IDE (S32 DS) from NXP. I have also added the latest SDK which includes drivers for the MPC5744P and also GCC (4.9.4).

chatoune avatar May 08 '19 10:05 chatoune

Hello, So, in addition, in goil/templates/linker/gnu_ld/ppc/mpc5744p you will have to provide a link script template. It will be similar to the one in mpc5510 but with a different memory mapping. But I attach a link script template for the MPC5643L and GNU LD below

script.goilTemplate.zip

The template language has a documentation you'll find here : https://github.com/TrampolineRTOS/GTL/blob/master/documentation/GTL.pdf

Best regards

Feel free to ask if you have any question.

jlbirccyn avatar May 09 '19 06:05 jlbirccyn

Hi,

Thanks for your support. I have forked the project and I will update it tonight with all the modifications. I downloaded the complete documentation set for MPC5744P and MPC5643L. For the link script, NXP is providing examples for this platform. With the GTL doc I might be able to have a first version quickly.

Regards,

Eddy

chatoune avatar May 09 '19 07:05 chatoune

@chatoune , let me know if you need extra testers.

dapperfu avatar Jun 30 '19 15:06 dapperfu

@jed-frey , thanks for your proposal. I had some work priorities for few weeks, now that I am available again I will rework my code (and write a complete porting documentation). I am still missing the linker script and then we could test it.

Regards,

Eddy

chatoune avatar Jul 03 '19 03:07 chatoune

Hi, just to give some news about the project. I am reviewing the scripts to verify I am not missing anything. I noticed boundaries which are not tested. In the root.goilTemplate, priority limits should be tested. If I choose 232 as priority then the result is over the limit of an UINT32 and there is no place for the ISRs.

chatoune avatar Jul 29 '19 03:07 chatoune

Hello, In fact priorities are packed by the script so that there is no hole in priority levels. So even if you use 232 for a task priority and if this task is alone, its priority will be in fact 1 (0 being the priority of the idle task). However you are right, even if 232 tasks would be needed to overflow the priority levels and would overflow the RAM of any microcontroller, this should be checked.

jlbirccyn avatar Jul 29 '19 10:07 jlbirccyn

Hello, did you figure out MPC5744P GCC linker script for autosar mcal 4.0 ? Can you help me about linker script ?

mahmudsamiunlu avatar Jan 03 '20 06:01 mahmudsamiunlu

Anyone have update for this topic?It's very interesting

quyleduc avatar Oct 20 '22 07:10 quyleduc