<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Model-Based Design Toolbox (MBDT)のトピックRe: How to use  the CCP Block in the MPC5643L Blocks from NXP?</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-use-the-CCP-Block-in-the-MPC5643L-Blocks-from-NXP/m-p/669624#M349</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/edenli"&gt;edenli&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is not how the DataMemBlock works. Check the generated code and you will see something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Memory Address Write */&lt;BR /&gt; /* Memory Address : Base Address + Offset */&lt;BR /&gt; /* Memory Address : 0x4000001C; */&lt;BR /&gt; {&lt;BR /&gt; uint32_T * (write_mem_address);&lt;BR /&gt; write_mem_address = (uint32_T *)0x4000001C;&lt;BR /&gt; *(write_mem_address) = &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;***Calibiate1&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Calibiate1 and others are data variables and they will be placed in the data sections as any other variables in your program.&lt;/P&gt;&lt;P&gt;The DataMemBlock just take the value carried by the variable/input signal and write it in the memory location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have to do the memory management by yourself - making sure you are not overwriting other stuffs.&lt;/P&gt;&lt;P&gt;Right now your program most likely will crash since your are writing an area that might contain useful data for the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Jul 2017 17:08:15 GMT</pubDate>
    <dc:creator>Daniel_Popa</dc:creator>
    <dc:date>2017-07-16T17:08:15Z</dc:date>
    <item>
      <title>How to use  the CCP Block in the MPC5643L Blocks from NXP?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-use-the-CCP-Block-in-the-MPC5643L-Blocks-from-NXP/m-p/669617#M342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/dumitru-daniel.popa"&gt;dumitru-daniel.popa&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I wanna use the CCP block in the Motor control to calibrate the Parameters.I&amp;nbsp;wanna implementation in two steps,&lt;/P&gt;&lt;P&gt;Frist: i wanna test the CCP Block in the Simulink;&lt;/P&gt;&lt;P&gt;Second: I wanna transplant the C-Code to My C-code Project of S32.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Calibration tool is ETAS-INCA,so we need to generate the *.hex and *.Map *.a2l &amp;nbsp;files.&lt;/P&gt;&lt;P&gt;Now i don't know how to do.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Daniel, Can you give me some advises?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 10:42:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-use-the-CCP-Block-in-the-MPC5643L-Blocks-from-NXP/m-p/669617#M342</guid>
      <dc:creator>edenli</dc:creator>
      <dc:date>2017-07-14T10:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use  the CCP Block in the MPC5643L Blocks from NXP?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-use-the-CCP-Block-in-the-MPC5643L-Blocks-from-NXP/m-p/669618#M343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi @Eden_Li,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The CCP configuration tab is used to initialize the CCP stack. Once that CCP stack is get initialized then on a infinite loop there is a routine that waits for CAN calibration commands (e.g. from &lt;A href="https://vector.com/vi_canape_en.html"&gt;CANape&lt;/A&gt;). In fact the whole driver and stack was taken from Vector. You can find more information &lt;A href="https://kb.vector.com/entry/15/"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, basically once you configure the CAN instance to be used exclusively for CCP (from the config tab) there is nothing else you should do from the model - the microprocessor will sit and wait for calibration commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2017 15:13:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-use-the-CCP-Block-in-the-MPC5643L-Blocks-from-NXP/m-p/669618#M343</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-07-14T15:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to use  the CCP Block in the MPC5643L Blocks from NXP?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-use-the-CCP-Block-in-the-MPC5643L-Blocks-from-NXP/m-p/669619#M344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;The Model about the CCP configure whether is right shown as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25172i7BB4CFC849EC113E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i wanna make sure whether we should add the CanConfigure Block shown as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25297i450E54A32C32E16D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Daniel, &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;can you send me a exzample about the CCP model&lt;/STRONG&gt;&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;About your reply above,i make the summary shown as below whether is right?&lt;/P&gt;&lt;P&gt;1#&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt; i configure the CCP in the SImulink ,generate the C- code,and then transplant the my S32 project,it will run normally.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2# IF i add the CCP C-code in my project ,but The Calibrate tool is INCA,i need the *.hex and *.Map;How can i get them or find some&amp;nbsp;replace files?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jul 2017 04:05:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-use-the-CCP-Block-in-the-MPC5643L-Blocks-from-NXP/m-p/669619#M344</guid>
      <dc:creator>edenli</dc:creator>
      <dc:date>2017-07-15T04:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use  the CCP Block in the MPC5643L Blocks from NXP?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-use-the-CCP-Block-in-the-MPC5643L-Blocks-from-NXP/m-p/669620#M345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/edenli"&gt;edenli&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do not need any extra CAN configuration/receive/transmit blocks. The CCP Setup will configure the CAN instance you have selected in the&amp;nbsp;UI and will initialize all the CCP stack for you. Then that CCP stack which is called on the application main() function infinite loop will handle all the CAN communication for calibration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, you could use another CAN instance for other purposes if you need, but for the Calibration itself you should not reuse the CAN instance assigned for CCP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not have any examples about this - in fact my knowledge about CAN calibration is very limited.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you take the generated code and transplant it to the S32DS project it should work normally. Keep in mind that the Matlab toolbox is just generating some header file to pass the configuration parameters to the CCP stack (which in turn is something that Vector is providing for free) The alternative to Matlab generated code - would be to take the latest version from Vector and integrate it directly in your S32DS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The MAP file can be found in the generated code folder.&lt;/P&gt;&lt;P&gt;By default the Toolbox is configured to generated the ELF and MOT format. INCA expects a Motorola S19 format and you can generate that file quite easy see this thread about how to do it:&amp;nbsp;&lt;A href="https://community.nxp.com/message/910795"&gt;https://community.nxp.com/message/910795&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jul 2017 06:50:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-use-the-CCP-Block-in-the-MPC5643L-Blocks-from-NXP/m-p/669620#M345</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-07-15T06:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to use  the CCP Block in the MPC5643L Blocks from NXP?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-use-the-CCP-Block-in-the-MPC5643L-Blocks-from-NXP/m-p/669621#M346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thank you for your reply!Now i have successfully tansplanted it to my project.Now I am Working for the *.a2l.&lt;/P&gt;&lt;P&gt;there is another question about the write address of the memory:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 22px;"&gt;&lt;STRONG&gt;1#&lt;/STRONG&gt;&lt;/SPAN&gt;Can i configure the in the Calibration address in the ROM that is 0x0000 0000-0x2000 0000,&lt;SPAN style="font-size: 22px; color: #ff0000;"&gt;&lt;STRONG&gt;that is right?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25173iA7F11F595E35FD0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 22px;"&gt;&lt;STRONG style="color: #ff0000;"&gt;2#or i must configure the Calibration address in the the RAM?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;that is 0x4000 0000-~&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_9.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25216iA662168E06E0BA73/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_9.png" alt="pastedImage_9.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Jul 2017 10:51:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-use-the-CCP-Block-in-the-MPC5643L-Blocks-from-NXP/m-p/669621#M346</guid>
      <dc:creator>edenli</dc:creator>
      <dc:date>2017-07-15T10:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use  the CCP Block in the MPC5643L Blocks from NXP?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-use-the-CCP-Block-in-the-MPC5643L-Blocks-from-NXP/m-p/669622#M347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should be RAM address since after boot-up all data are copied into RAM.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jul 2017 05:51:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-use-the-CCP-Block-in-the-MPC5643L-Blocks-from-NXP/m-p/669622#M347</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-07-16T05:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use  the CCP Block in the MPC5643L Blocks from NXP?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-use-the-CCP-Block-in-the-MPC5643L-Blocks-from-NXP/m-p/669623#M348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;As you said, Calibrate the Param &amp;nbsp;in the rom,if i wanna Calibrate the Param from flash(ROM),we must first map the ROM Address&amp;nbsp;to the RAM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i built the simulink model shown as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25254i9D8A32CDCB728FAF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the *.MAP file shown as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25304i2D9F4B70D9AB4425/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 22px;"&gt;&lt;STRONG&gt;Why the the address of Calibiate1 is not 0X4000001C?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jul 2017 09:35:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-use-the-CCP-Block-in-the-MPC5643L-Blocks-from-NXP/m-p/669623#M348</guid>
      <dc:creator>edenli</dc:creator>
      <dc:date>2017-07-16T09:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use  the CCP Block in the MPC5643L Blocks from NXP?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-use-the-CCP-Block-in-the-MPC5643L-Blocks-from-NXP/m-p/669624#M349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/edenli"&gt;edenli&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is not how the DataMemBlock works. Check the generated code and you will see something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Memory Address Write */&lt;BR /&gt; /* Memory Address : Base Address + Offset */&lt;BR /&gt; /* Memory Address : 0x4000001C; */&lt;BR /&gt; {&lt;BR /&gt; uint32_T * (write_mem_address);&lt;BR /&gt; write_mem_address = (uint32_T *)0x4000001C;&lt;BR /&gt; *(write_mem_address) = &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;***Calibiate1&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Calibiate1 and others are data variables and they will be placed in the data sections as any other variables in your program.&lt;/P&gt;&lt;P&gt;The DataMemBlock just take the value carried by the variable/input signal and write it in the memory location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have to do the memory management by yourself - making sure you are not overwriting other stuffs.&lt;/P&gt;&lt;P&gt;Right now your program most likely will crash since your are writing an area that might contain useful data for the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Jul 2017 17:08:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-use-the-CCP-Block-in-the-MPC5643L-Blocks-from-NXP/m-p/669624#M349</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-07-16T17:08:15Z</dc:date>
    </item>
  </channel>
</rss>

