example .mcp project for 68332

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

example .mcp project for 68332

1,228 次查看
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?

标签 (1)
0 项奖励
回复
2 回复数

997 次查看
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 项奖励
回复

997 次查看
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 项奖励
回复