example .mcp project for 68332

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

example .mcp project for 68332

1,227 Views
magicmarker
Contributor I

I am porting some old 68332 code to the CodeWarrior 3.2 environment.  I haven't figured out how to setup the interrupt vector table with my ISRs, since it appears that the startup code defines the vector table.  Does anyone know of an .mcp file that I should start with as basis?

Labels (1)
0 Kudos
Reply
2 Replies

996 Views
trytohelp
NXP Employee
NXP Employee

Hi Mark,

Sorry for the delay.

I've lost some time to find the right contact.

This tool is old released in 2002.

My 1st understanding:

++++++++++++++

The M68K V3.2 is supporting M68K and Coldfire devices.
If you create a project for Coldfire, the vector.s file is included in the application.
In this case the vector table is handled very similar to the new tools.

For M68K it's another story.
The example doesn't include any file containing the vector table.
It seems for M68K, the vector table as the Startup function is included in the runtime library.

+++++++++++++

Based on Development recommendation I've tried to include the vector table used in Coldfire project.

At the end I was able to include the vector table to the project.

I don't have any 68xxx board so I can not test it.

The memory must be checked.

How I've included the vector:

  -> add vector.s,

  -> create a ISR_Functions.c file including ISR functions,

  -> edit the Linker + Embedded 68K Linker Entry Point: start,

  -> edit vector.s file and change the _asm_startmeup to __start lines 15 & 286.

According to the map file the vector.s file and ISR functions are linked to the project.

Attached you will find the example.

Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

996 Views
trytohelp
NXP Employee
NXP Employee

Hi Mark,

I've the CW for 68K v3.2 installed on my PC.

I've created 2 projects:

    - 1 for Coldfire,

    - 1 for M68K.

The Coldfire project include a Vector.s file but not the M68K project.

At this time I don't find relevant information.


Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply