Hi,
Tht was an error.
Initially i had set the selection as M5282 Console Debug, here the support files (vectors.s etc..) were not included, hence i changed the selection to M5282EVB Internal ROM to include the support files.
My objective here is to interrupt my program using a programmable interval timer(PIT) of 5282. Is it possible using the CCS-SIM? If so, how can i do it?
What i did was change the interrupt vector 0x37 in vectors.s (corresponding to PIT0) and change the ISR of 0x37 to timer_handler (written by me).
Thanks.
Hello
Are you planning to run the application on the simulator?
The simulator is an instruction set simulator only. It does not simulate the timer.
In order to be able to test an application with an interrupt you will have to use the real hardware board.
Then you have to decide if you want to debug in RAM or in Flash (I think for debugging you rather stay in RAM) and finally adjust the project to what you want to do.
Here I would not just switch to ROM target just because the vector table is not initialized in the debug target. I would rather add the vector table to the debug target.
CrasyCat
Hello
Flash programmer tool is used to program flash on the hardware device. You cannot use the flash programmer with the simulator.
Could eventually explain what you are trying to achieve here. I am not sure we are going in the right direction.
Crasycat
Hi,
Thanks for the response. I changed the settings to M5282EVB External ROM. It goes to asm_startmeup function. But after that i run into problems, the execution goes into an infinite loop.. Any suggestions.
Regards,
TTA
Hello
Did you program the generated code into flash using the flash programmer?
The M5282EVB External ROM target is configured to be programmed into flash and executed from there.
Pressing the Debug button will not program the application into flash.
CrasyCat
Hello
If you are building a "Console Debug" or a "UART Debug" version of the project, the support files are not linked to the application.
For these build target the _start function from the MSL library is used as application startup point.
this function can be found in following source file:
"{Install}\E68K_Support\Runtime\Runtime_68K\Runtime_ColdFire\(Source)\E68k_startup.c"
where {Install} stands for your CodeWarrior installation directory
CrasyCat