Algorithm development on Mc9s series NxP (Freescale) controller

10 Ansichten (letzte 30 Tage)
Bhatu Shinde
Bhatu Shinde am 3 Aug. 2016
Beantwortet: Mark McBroom am 9 Dez. 2017
Hi All,
This is regarding to development of low level driver & application code on Mc9s series controller.
I have low level driver ready with me for Code worrier IDE, but for main application code (algorithm) I have to use my Matlab model.
I want to generate production code from Matlab Embedded coder. Please let me know process to edit .tlc so that I can integrate HC12 compiler & will be able to generate .s19 file to flash on my microcontroller. It would be highly appreciated if anyone can able to answer & suggest me best suitable way or process to tackle with this.
Thanks & Regards, Bhatu Shinde.

Antworten (1)

Mark McBroom
Mark McBroom am 9 Dez. 2017
If you already have driver code available from code warrior, best approach is to generate C code from your algorithm in Simulink and then use code warrior to compile/link/download the application. You will likely need to write some glue code to interface algorithm code with device driver code. If you want to avoid writing the glue code by hand, you can use the legacy_code tool to create Simulink blocks for each of your low level drivers.
If you want Simulink to also create the complete executable, including the .s19 file, you need to create a custom target . This is a quite complex task, so I wouldn't recommend unless you have experience with MATLAB and .tlc code.

Kategorien

Mehr zu Simulink Coder finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by