<?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>S32 Design Studio中的主题 Putting SBC to sleep?</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/Putting-SBC-to-sleep/m-p/564468#M460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to work on a low power mode for my project based off the S32 FRDM board (S32K144 and MC33905D SBC), and I'm having issues putting the SBC to sleep.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the available drivers, I'm attempting to do this by&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create an sbc_can_config_t struct that sets the mode to "SBC_CAN_MODE_SLEEP_WITH_WAKEUP" over&amp;nbsp;SBC_SetCanMode();&lt;/LI&gt;&lt;LI&gt;Checking to see if a wakeup message has occurred on the bus by periodically sending SBC_GetWakeupReason(); and checking the response&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Is this approach valid?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently the LPSPI seems to send the message when setting the CAN mode, but time out and get caught in an interrupt. I'm still looking into the issue, but my knee-jerk assumption is that the SBC is going into a sleep mode and not&amp;nbsp;acknowledging the SPI communication. Does this sound logical?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm pretty new to both components, and really hoping someone can point me in the right direction here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Aug 2016 22:29:53 GMT</pubDate>
    <dc:creator>gearhead1107</dc:creator>
    <dc:date>2016-08-26T22:29:53Z</dc:date>
    <item>
      <title>Putting SBC to sleep?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Putting-SBC-to-sleep/m-p/564468#M460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to work on a low power mode for my project based off the S32 FRDM board (S32K144 and MC33905D SBC), and I'm having issues putting the SBC to sleep.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the available drivers, I'm attempting to do this by&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create an sbc_can_config_t struct that sets the mode to "SBC_CAN_MODE_SLEEP_WITH_WAKEUP" over&amp;nbsp;SBC_SetCanMode();&lt;/LI&gt;&lt;LI&gt;Checking to see if a wakeup message has occurred on the bus by periodically sending SBC_GetWakeupReason(); and checking the response&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Is this approach valid?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently the LPSPI seems to send the message when setting the CAN mode, but time out and get caught in an interrupt. I'm still looking into the issue, but my knee-jerk assumption is that the SBC is going into a sleep mode and not&amp;nbsp;acknowledging the SPI communication. Does this sound logical?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm pretty new to both components, and really hoping someone can point me in the right direction here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 22:29:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Putting-SBC-to-sleep/m-p/564468#M460</guid>
      <dc:creator>gearhead1107</dc:creator>
      <dc:date>2016-08-26T22:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Putting SBC to sleep?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Putting-SBC-to-sleep/m-p/564469#M461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still working on this issue. As far as I can tell, the SBC driver attempts to send the CAN config to the SBC by doing the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Sending the command using LPSPI_DRV_MasterTransferBlocking();&lt;/LI&gt;&lt;LI&gt;LPSPI_DRV_MasterTransferBlocking(); calls on&amp;nbsp;LPSPI_DRV_MasterStartTransfer(); to send the actual data, and then waits for LPSPItimeout to run down or for the BUSY flag to go away in hardware&lt;/LI&gt;&lt;LI&gt;Inside StartTransfer();, the variable lpspiState-&amp;gt;bytesPerFrame is used to determine how many bytes will be sent. The only problem is that it doesn't look like this parameter is ever being initialized? The configured frame size is&amp;nbsp;536899396 (or whatever happens to be in memory when the program is run)&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 14:19:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Putting-SBC-to-sleep/m-p/564469#M461</guid>
      <dc:creator>gearhead1107</dc:creator>
      <dc:date>2016-08-31T14:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: Putting SBC to sleep?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Putting-SBC-to-sleep/m-p/564470#M462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="color: #222222; font-size: small;"&gt;Found the issue! During my initialization of the SBC, I wasn't aware that the structure&amp;nbsp;lpspi_master_state_t was going to be used as a global pointer. Once I realized that the global state pointer was set to that structure's location on initialization my error became pretty apparent. Moving it out of my init function and making it static kept the location from moving around during execution!&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 17:23:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Putting-SBC-to-sleep/m-p/564470#M462</guid>
      <dc:creator>gearhead1107</dc:creator>
      <dc:date>2016-09-01T17:23:57Z</dc:date>
    </item>
  </channel>
</rss>

