<?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>topic S32K344 CanHardwareObject/CanHwFilter Code/Mask Modifications in Real-Time (post build) in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K344-CanHardwareObject-CanHwFilter-Code-Mask-Modifications-in/m-p/1795687#M31094</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have an application where I need to modify a CanHwObject/CanHwFilter/Code (CAN ID) after deployment for a distributed system.&amp;nbsp; Using a mask and then applying software filtering would be less than ideal given the amount of traffic on the network.&amp;nbsp; Currently, the only way I see of accomplishing this is to modify the instantiated "Can_aHwFilter_Objectx[]" in the FLASH image (or relocate it) and then issuing a software reset...&amp;nbsp; This could occur as a part of the UDS flashing tool process.&amp;nbsp; I would prefer to store this CAN ID data in eeprom and modify the code/mask directly with a real-time software function (before CAN&amp;nbsp; initialization).&amp;nbsp; The new ID assignment would occur very rarely (end-of-line)...&lt;/P&gt;&lt;P&gt;Any direction here would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jan 2024 00:07:30 GMT</pubDate>
    <dc:creator>matnerd</dc:creator>
    <dc:date>2024-01-26T00:07:30Z</dc:date>
    <item>
      <title>S32K344 CanHardwareObject/CanHwFilter Code/Mask Modifications in Real-Time (post build)</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-CanHardwareObject-CanHwFilter-Code-Mask-Modifications-in/m-p/1795687#M31094</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have an application where I need to modify a CanHwObject/CanHwFilter/Code (CAN ID) after deployment for a distributed system.&amp;nbsp; Using a mask and then applying software filtering would be less than ideal given the amount of traffic on the network.&amp;nbsp; Currently, the only way I see of accomplishing this is to modify the instantiated "Can_aHwFilter_Objectx[]" in the FLASH image (or relocate it) and then issuing a software reset...&amp;nbsp; This could occur as a part of the UDS flashing tool process.&amp;nbsp; I would prefer to store this CAN ID data in eeprom and modify the code/mask directly with a real-time software function (before CAN&amp;nbsp; initialization).&amp;nbsp; The new ID assignment would occur very rarely (end-of-line)...&lt;/P&gt;&lt;P&gt;Any direction here would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 00:07:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-CanHardwareObject-CanHwFilter-Code-Mask-Modifications-in/m-p/1795687#M31094</guid>
      <dc:creator>matnerd</dc:creator>
      <dc:date>2024-01-26T00:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 CanHardwareObject/CanHwFilter Code/Mask Modifications in Real-Time (post build)</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-CanHardwareObject-CanHwFilter-Code-Mask-Modifications-in/m-p/1796112#M31126</link>
      <description>&lt;P&gt;Unless someone has a better solution, I will modify the board_init function and pass in my own&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Can_43_FLEXCAN_ConfigType object into:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;void&lt;/SPAN&gt; &lt;SPAN&gt;Can_43_FLEXCAN_Init&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;Can_43_FLEXCAN_ConfigType&lt;/SPAN&gt;&lt;SPAN&gt; * &lt;/SPAN&gt;&lt;SPAN&gt;Config&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;during initialization...&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 Jan 2024 14:21:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-CanHardwareObject-CanHwFilter-Code-Mask-Modifications-in/m-p/1796112#M31126</guid>
      <dc:creator>matnerd</dc:creator>
      <dc:date>2024-01-26T14:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 CanHardwareObject/CanHwFilter Code/Mask Modifications in Real-Time (post build)</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-CanHardwareObject-CanHwFilter-Code-Mask-Modifications-in/m-p/1801752#M31439</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;matnerd,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As my understand about your idea, that you already have a bin file flashed to the current board. Then you don't want to change it by flashing another bin file, you want to change Can_aHwFilter_Objectx[] by accessing to its memory location in Flash, by trying to use the UDS flashing tool&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Theoredically, it might work if the size of your struct's location is large enough for changing. But i'm not sure about the memory location that you involved. It might impact to another location, which i'm not sure due to we do not have the&amp;nbsp;UDS flashing tool or any similar kind of this testing.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;From my opinion, you can try to reconfigure the&amp;nbsp;CanHwObject, re-generate code, re-compile the project and observe the memory change related to the&amp;nbsp;Can_aHwFilter_Objectx. When you increase the size of&amp;nbsp;Can_aHwFilter_Objectx, i think the memory is impossible to expand with just your&amp;nbsp;&lt;/SPAN&gt;action. If you just change some params inside the struct, it might works.&lt;/P&gt;
&lt;P&gt;Unfortunately, i already asked my collegues about this and we don't have any other ideas.&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Nam.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 08:44:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-CanHardwareObject-CanHwFilter-Code-Mask-Modifications-in/m-p/1801752#M31439</guid>
      <dc:creator>NamLee</dc:creator>
      <dc:date>2024-02-05T08:44:47Z</dc:date>
    </item>
  </channel>
</rss>

