MPC5777c etpu

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

MPC5777c etpu

678 Views
InhyeokHwang
Contributor III

Hello NXP Teams

I am currently new to etpu and I have just finished reading AN4907.

I am using MPC5777C and trying to set up development environments for etpu.

According to AN4907, it says the library api for the functions could be downloaded on www.freescale.com as AN4907SW package but I have no idea where the package is.

So I searched NXP community to find alternative way to download the library and found out that I could select etpu functions and compile it from https://www.nxp.com/webapp/etpu/

In AN4908, it says I should use CodeWarrior 10.6 for IDE but it seems like it's old version and could no longer be downloaded from NXP website. So I downloaded CodeWarrior Development Studio for eTPU v10.3 instead from https://www.nxp.com/design/software/development-software/codewarrior-development-tools/codewarrior-l...

I want to know if my settings are all set. 

Also, are there any instructions on CodeWarrior for beginners?

Plus, are there any example codes with the main function fully implemented to test the etpu functions?

Thanks in advance.

0 Kudos
3 Replies

648 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

CodeWarrior for eTPU and CodeWarrior for MPC5 are two different development suites (in addition to that for MPC57xx no longer existing, replaced by S32 Design Studio). The principle is that with CodeWarrior for eTPU user develops its own function set and output files (.c and .h files) then may be included to any other compiler for MCUs.

So I would recommend to use S32 Design Studio for Power Architecture v2.1 for MCU code:

https://www.nxp.com/design/software/development-software/s32-design-studio-ide/s32-design-studio-for...

 

For eTPU code development I have answered in previous mail, there are two options:

a) Ashware solution

https://www.ashware.com/etpu-tools

b) NXP CodeWarrior Development Studio for eTPU v10.3

http://www.nxp.com/products/automotive-products/microcontrollers-and-processors/32-bit-power-archite...

 

----------

General answer to the question "how to use eTPU?":

 

eTPU is an complex I/O co-processor. You can use it two ways:

1) with using of eTPU functions prepared by NXP

2) to create your own function or modify NXP’s function

 

Ad 1)

For using eTPU functions pre-prepared by NXP (the ones you can download by eTPU Function Selector) without modification you don’t need any eTPU compiler. See

http://www.nxp.com/webapp/etpu/

Also there is some new version, currently containing only some functions:

http://www.nxp.com/webapp/etpu_cw/

Only download them, configure by eTPU graphical configuration tool (GCT), include all needed files to CodeWarrior or other compiler and use it.

GCT is the tool which is intended to configure most of functions prepared by NXP that can be downloaded as a pack here:

http://www.nxp.com/webapp/sps/download/license.jsp?colCode=ETPUGCT&Parent_nodeId=1311258915317726989...

Here you can example procedure how to use eTPU PWM function, step by step:

http://www.nxp.com/files/soft_dev_tools/doc/app_note/AN4687.pdf

 

Every eTPU FUNCTION has its own descriptive documents (application note), its software attachment usually contains some simple example code:

http://www.nxp.com/products/automotive-products/microcontrollers-and-processors/32-bit-power-archite...

 

Ad 2)

If you cannot fit our existing eTPU function to your application you can write your own function or modify the existing one you will need eTPU compiler and simulator.

Currently there are 2 options:

1) Ashware solution (compiler + simulator)

https://www.ashware.com/etpu2-simulators

2) NXP eTPU2 Development Suite (compiler + simulator)

http://www.nxp.com/products/automotive-products/microcontrollers-and-processors/32-bit-power-archite...

 

Buying of following book could be good start point for developing you own eTPU function or library:

https://www.ashware.com/etpu-programming-made-easy-book

637 Views
johndiener
Contributor IV

A couple of additional resources:

- demo toolset download that includes an AN4907/AN4908 simulation : https://www.ashware.com/demos

- comprehensive online/self-paced eTPU training : https://ash-ware-inc-s-school.teachable.com/p/etpu-programming-in-c

John Diener
0 Kudos

651 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

I am attaching appnotes' SW. I haven't found it on our web currently.

0 Kudos