For the MK61Fx512 MCU I'm doing the porting from the CodeWarrior tool (v10.6) to "KSD (Kinetis Design Studio) IDE" tool (v.3.0.0).
Attached there is the current file for the vector table (vector.c) used with Codewarrior.
For the "KSD tool" as the vector.c file has to be modified (pragma, etc ..) ?
I.e. with the "KSD (Kinetis Design Studio) IDE" tool v.3.0.0. how the vector table has to be defined ?
Where I can get documentation about this point ?
Original Attachment has been moved to: vectors.c.zip
Hello Luigi,
You can create one simple K61fX512 project on KDS3.0,
then you can check how to define the vector table on KDS,
i also attached the vector table file to you .
Have a great day,
Alice Yang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks for the answer;
but I'd like to know if with the KSD tool you can (as with the CodeWarrior) having a C file (similar to the one attached to my first post) to define the vector table.
With the "KSD tool", how should be this C file (#pragma, etc ..) ?
Hello Luigi,
There is no selection at KDS for change the file to .c .
While you can change it manually refer to the file on CW.
And why do you want change it to .c file , i think there is no need
to change , it is convenient to use this vector table, the interrupt
function name have been defined , we directly add the interrupt code
under the function . For example, the PIT interrupt ,
void PIT_IRQHandler(void)
{
.......
}
BR
Alice
OK. I will try to use the file "startup_MK61F12.s" instead of the use of the C file.
Thanks.
Ok, you can find one demo to refer to , if you have not the demo ,you
can tell me the chip number of yours , and also whether it include KSDK , or PE .
BR
Alice
Hello Luigi,
The chip of "MK61Fx512" is 512 flash , why do you use the 1M flash ?
The attach project is about one timer interrupt project ,
- The one of "k61fx512_isr_nope_isr" is about bare board project , when you run it , you can see the
variable of "testcnt" increased :
- The project of "MK61Fx512_isr_test" is one project with Processor Expert (PE), the PE
project is when you create project select this :
Have a great day,
Alice Yang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks for the projects and for the support!
Also, thanks for the note about the the linker file. I have "inherited" a project done for the CodeWarrior and I had not noticed that he had the linker script for 1M but in fact the flash is 512K. I do not know why a 1M linker script was chosen.
I will try to turn the projects on hardware, but at the moment I have problems with this hardware that it is not working, may be there is a fault..
so I do not know when I'll be able to do the test.
Thanks a lot.
BR
Luigi
Hello Luigi,
Maybe your project is not create for the chip of "MK61Fx512" , it is for "MK61FN1M0" or other 1M flash chip.
And you said "I have problems with this hardware that it is not working" , i recommend you create one simple
project , then test it whether can work well .
Hope it helps
Alice