📄 porting to different mc9s12 derivatives.txt
字号:
Porting to different MC9S12 derivatives:
1) Extract the zip file and place the Micrium directory on your c-drive root. (E.g. C:\Micrium).
2) Navigate to C:\Micrium\Software\EvalBoards\Freescale\MC9S12NE64\Freescale Demo 9S12NE64\Paged\Metrowerks\OS-View and open the project file named "OS-View.mcp"
3) Replace the processor header files in the source tree with those from the desired derivative. Adjust includes.h accordingly.
4) Replace the CMD directory contents with the command files from a project built for the derivative of your choice.
5) Update BSP.c functions for LED_On(), LED_Off(), LED_Toggle() etc... to match your hardware configuration if required.
Caveats:
1) Vectors.c is provided as is and is assumed to be correct for most MC9S12 derivates. Vectors can be added by prototyping the assembly ISR handler as an external
at the top of the file, and then plugging the correct array location with the name of the ISR routine.
2) The example provided assumes the use of ECT TC7 for the OS Ticker. If TC7 is not available, this may be changed by adjusting the macro named "OS_TICK_OC" within
BSP.h and by adjusting vectors.c and placing "OSTickISR" in the desired vector location.
3) Start12.c may need to be replaced with an equivalent file from a project built for the derivative of your choice.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -