Is there a complete project in PE for the TOWER K60D100M ?

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

Is there a complete project in PE for the TOWER K60D100M ?

573 Views
om
Contributor III

Hi

After reading here, asking question and get answer, I have decided to start "develop" my BSP using PE (Processor expert)

I see that I have to manually add all the componenets to the project and configure it.

Is there an already prepered complete project for this TOWER ?

(example project)

Thanks

  OM

BTW: I have problems understanding the initializtion code and the jumps between assembly, low_level_init, PE_low_level_init, ..

If someone can say a few words on this too, I will be gratful.

  OM

0 Kudos
4 Replies

311 Views
BlackNight
NXP Employee
NXP Employee

Hello,

I don't have a complete one, but one which uses the SD card on that TWR module:

mcuoneclipse/Examples/TWR-K60F120M at master · GitHub

Have a look here for background information: FatFs with Kinetis | MCU on Eclipse

You might browse there for other Kinetis example projects.

About your questions:

- the application starts from the reset vector, then initializes the stack pointer

- low_level_init (I think you mean __init_hardware()) performs the core initialization, especially clock settings.

- then it performs the zero-out of global variables, plus initializes all other variables

- then it jumps to main()

- PE_low_level_init() initializes the Processor Expert components/drivers you have loaded

I hope this helps

0 Kudos

311 Views
om
Contributor III

Hi Erich

Thanks a lot for the quick answer.

I see that I have to register to github.com in order to download your example.

Right ?

Regarding the init, to things I don't get:

1. In the start vector there is a call to __iar_program_start which looks like a function to me.

   Where it is defined ?

2. After that, we jump to ?main (or __cmain)

The ?main calls to:
__low_level_init (created by PE, in cpu.c) and to __iar_data_init3 (compiler generated code ?)

Then call to user main function.

Where is ?main (or __cmain) defined ?

Thanks a lot

  OM

BTW: can I get your example code in email ?


0 Kudos

311 Views
om
Contributor III

OK. (Cause I manage to download only one file at the time, not the whole project)

Regarding the init, two things I don't get.

Can you explain the folloing:  (?)

1. In the start vector there is a call to __iar_program_start which looks like a function to me.

   Where it is defined ?

2. After that, we jump to ?main (or __cmain)

The ?main calls to:
__low_level_init (created by PE, in cpu.c) and to __iar_data_init3 (compiler generated code ?)

Then call to user main function.

Where is ?main (or __cmain) defined ?

Thanks a lot

  OM

0 Kudos

311 Views
BlackNight
NXP Employee
NXP Employee

No, you do not need to log into GitHub or to register.

0 Kudos