<?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>S32KのトピックRe: S32K148 flexcan driver</title>
    <link>https://community.nxp.com/t5/S32K/S32K148-flexcan-driver/m-p/1157818#M8258</link>
    <description>&lt;P&gt;Hi Robin_Shen,&lt;/P&gt;&lt;P&gt;I'm sorry I can't share data. Actually I'm using hardware independent library of CAN which is being ported with flexcan drivers. It contains multiple global objects for example object of a structure containing callback function pointers etc. One of my structure object members, which stores pointers to callback functions, are getting changed after the call to FLEXCAN_DRV_init(). I'm observing it as expression while debugging. Is this call overlapping my previously allocated memory, as it allocates 32 state-&amp;gt;mbs[i] during run time? Also, is it possible to view the memory of MCU during a run time like FreeRTOS task memory view?&lt;/P&gt;</description>
    <pubDate>Wed, 23 Sep 2020 14:36:05 GMT</pubDate>
    <dc:creator>pranitekatpure</dc:creator>
    <dc:date>2020-09-23T14:36:05Z</dc:date>
    <item>
      <title>S32K148 flexcan driver</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-flexcan-driver/m-p/1157438#M8246</link>
      <description>call to function "FLEXCAN_DRV_Init()", global data is getting changed. In debugging it is obsevered that after few iteration of for loop: for (i = 0; i &amp;lt; FEATURE_CAN_MAX_MB_NUM; i++) { osifStat = OSIF_SemaCreate(&amp;amp;state-&amp;gt;mbs[i].mbSema, 0U); if (osifStat != STATUS_SUCCESS) { for (j = 0; j &amp;lt; i; j++) { (void)OSIF_SemaDestroy(&amp;amp;state-&amp;gt;mbs[j].mbSema); } return STATUS_ERROR; } state-&amp;gt;mbs[i].isBlocking = false; state-&amp;gt;mbs[i].mb_message = NULL; state-&amp;gt;mbs[i].state = FLEXCAN_MB_IDLE; } it is changing global variables. Which is leading to a segmentation fault. what could be the reason?</description>
      <pubDate>Wed, 23 Sep 2020 05:16:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-flexcan-driver/m-p/1157438#M8246</guid>
      <dc:creator>pranitekatpure</dc:creator>
      <dc:date>2020-09-23T05:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 flexcan driver</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-flexcan-driver/m-p/1157502#M8248</link>
      <description>&lt;P&gt;Hi&amp;nbsp;pranitekatpure,&lt;/P&gt;
&lt;P&gt;Would you please show me which global variables was changed?&lt;BR /&gt;I don’t understand what the segmentation fault you mentioned is.&lt;BR /&gt;If you can capture a picture show it would be better for me to understand it.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FLEXCAN_DRV_Init.png" style="width: 674px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/125937i1F90E546F07664C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="FLEXCAN_DRV_Init.png" alt="FLEXCAN_DRV_Init.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Robin&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 07:15:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-flexcan-driver/m-p/1157502#M8248</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2020-09-23T07:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 flexcan driver</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-flexcan-driver/m-p/1157818#M8258</link>
      <description>&lt;P&gt;Hi Robin_Shen,&lt;/P&gt;&lt;P&gt;I'm sorry I can't share data. Actually I'm using hardware independent library of CAN which is being ported with flexcan drivers. It contains multiple global objects for example object of a structure containing callback function pointers etc. One of my structure object members, which stores pointers to callback functions, are getting changed after the call to FLEXCAN_DRV_init(). I'm observing it as expression while debugging. Is this call overlapping my previously allocated memory, as it allocates 32 state-&amp;gt;mbs[i] during run time? Also, is it possible to view the memory of MCU during a run time like FreeRTOS task memory view?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 14:36:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-flexcan-driver/m-p/1157818#M8258</guid>
      <dc:creator>pranitekatpure</dc:creator>
      <dc:date>2020-09-23T14:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 flexcan driver</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-flexcan-driver/m-p/1159834#M8304</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/57959"&gt;@Robin_Shen&lt;/a&gt;&amp;nbsp;could you help with it.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 03:14:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-flexcan-driver/m-p/1159834#M8304</guid>
      <dc:creator>pranitekatpure</dc:creator>
      <dc:date>2020-09-28T03:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 flexcan driver</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-flexcan-driver/m-p/1160973#M8340</link>
      <description>&lt;P&gt;I am sorry for not help you.&lt;BR /&gt;I am not familiar with this part, maybe you can post this question at &lt;A href="https://community.nxp.com/t5/S32-Design-Studio/bd-p/s32ds" target="_self"&gt;S32 Design Studio&lt;/A&gt;.&lt;BR /&gt;My colleague should be able to help you.&lt;/P&gt;
&lt;P&gt;Have you try to right click the&amp;nbsp;mbs[i] and &lt;STRONG&gt;View Memory&lt;/STRONG&gt;?&lt;/P&gt;
&lt;P&gt;It will show you the address of them. Maybe you can check if there is a conflict with yours.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="view memory.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126511i739AB41283AC8A92/image-size/large?v=v2&amp;amp;px=999" role="button" title="view memory.png" alt="view memory.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:12:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-flexcan-driver/m-p/1160973#M8340</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2020-09-30T03:12:08Z</dc:date>
    </item>
  </channel>
</rss>

