<?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>MPC5xxx中的主题 Re: HOW to modify IVOR4_Handler code while enable SPE in motor application with SPC5643L?</title>
    <link>https://community.nxp.com/t5/MPC5xxx/HOW-to-modify-IVOR4-Handler-code-while-enable-SPE-in-motor/m-p/1265662#M18072</link>
    <description>&lt;P&gt;I have meant this code to reference only as it shows to how to store SPE accumulator. Please modify your own assembly code&lt;/P&gt;</description>
    <pubDate>Wed, 21 Apr 2021 07:34:01 GMT</pubDate>
    <dc:creator>davidtosenovjan</dc:creator>
    <dc:date>2021-04-21T07:34:01Z</dc:date>
    <item>
      <title>HOW to modify IVOR4_Handler code while enable SPE in motor application with SPC5643L?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/HOW-to-modify-IVOR4-Handler-code-while-enable-SPE-in-motor/m-p/1264694#M18044</link>
      <description>&lt;P&gt;i check the assembly code in the project， it says the “does not save the SPEs Accumulator,” ，if i want to enable the SPE，how to modify the assemly code in the below lines？&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;#**************************************************************************/&lt;BR /&gt;;#* FILE NAME: intc_sw_handlers.s COPYRIGHT (c) Freescale 2016 */&lt;BR /&gt;;#* All Rights Reserved */&lt;BR /&gt;;#* DESCRIPTION: */&lt;BR /&gt;;#* This file creates prolog, epilog for C ISR and enables nested */&lt;BR /&gt;;#* interrupts. */&lt;BR /&gt;;#* WARNING: This stack frame does not save the SPEs Accumulator, which */&lt;BR /&gt;;#* is required if SPE instructions are used in ISRs. If SPE */&lt;BR /&gt;;#* instructions are used, the stack frame must include the */&lt;BR /&gt;;#* accumulator, and prologue and epilogue must be modified. */&lt;BR /&gt;;#=========================================================================*/&lt;BR /&gt;.globl IVOR4_Handler&lt;BR /&gt;&lt;BR /&gt;#ifdef __ghs__&lt;BR /&gt;.section .vletext, axv&lt;BR /&gt;.vle&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;.equ INTC_IACKR, 0xFFF48010 ;# Interrupt Acknowledge Register address&lt;BR /&gt;.equ INTC_EOIR, 0xFFF48018 ;# End Of Interrupt Register address&lt;/P&gt;&lt;P&gt;.align 4&lt;/P&gt;&lt;P&gt;IVOR4_Handler:&lt;BR /&gt;prologue:&lt;BR /&gt;e_stwu r1,-0x50 (r1) ;# Create stack frame and store back chain&lt;BR /&gt;e_stmvsrrw 0x0c (r1) ;# Save SRR[0-1] (must be done before enabling MSR[EE])&lt;BR /&gt;se_stw r3, 0x08 (r1) ;# Save working register (r3)&lt;BR /&gt;e_lis r3, INTC_IACKR@ha ;# Save address of INTC_IACKR in r3&lt;BR /&gt;e_lwz r3, INTC_IACKR@l(r3) ;# Save contents of INTC_IACKR in r3 (this is vector table address)&lt;BR /&gt;wrteei 1 ;# Set MSR[EE] (must wait a couple clocks after reading IACKR)&lt;BR /&gt;se_lwz r3, 0x0(r3) ;# Read ISR address from Interrupt Vector Table using pointer&lt;BR /&gt;e_stmvsprw 0x14 (r1) ;# Save CR, LR, CTR, XER&lt;BR /&gt;se_mtLR r3 ;# Copy ISR address (from IACKR) to LR for next branch&lt;BR /&gt;e_stmvgprw 0x24 (r1) ;# Save GPRs, r[0,3-12]&lt;BR /&gt;mfSRR1 r0 ;# Restore MSR (needed for SPE and EE)&lt;BR /&gt;mtmsr r0&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;se_blrl ;# Branch to ISR, with return to next instruction (epilogue)&lt;/P&gt;&lt;P&gt;epilogue:&lt;BR /&gt;e_lmvsprw 0x14 (r1) ;# Restore CR, LR, CTR, XER&lt;BR /&gt;e_lmvgprw 0x24 (r1) ;# Restore GPRs, r[0,3-12]&lt;BR /&gt;e_lis r3, INTC_EOIR@ha ;# Load upper half of INTC_EOIR address to r3&lt;BR /&gt;mbar ;# Ensure prior clearing of interrupt flag conmpleted.&lt;BR /&gt;wrteei 0 ;# Disable interrupts&lt;BR /&gt;e_stw r3, INTC_EOIR@l(r3) ;# Load lower half of INTC_EOIR address to r3 and&lt;BR /&gt;;# write contents of r3 to INTC_EOIR&lt;BR /&gt;se_lwz r3, 0x08 (r1) ;# Restore working register (r3) (original value)&lt;BR /&gt;e_lmvsrrw 0x0c (r1) ;# Restore SRR[0-1]&lt;BR /&gt;e_add16i r1, r1, 0x50 ;# Reclaim stack space&lt;BR /&gt;se_rfi ;# End of Interrupt Handler - re-enables interrupts&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 02:08:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/HOW-to-modify-IVOR4-Handler-code-while-enable-SPE-in-motor/m-p/1264694#M18044</guid>
      <dc:creator>steven_zhang</dc:creator>
      <dc:date>2021-04-20T02:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: HOW to modify IVOR4_Handler code while enable SPE in motor application with SPC5643L?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/HOW-to-modify-IVOR4-Handler-code-while-enable-SPE-in-motor/m-p/1265031#M18053</link>
      <description>&lt;P&gt;Hi, I have found some file showing adding SPE accumulator to the stack. Let me know if it helps or not.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 09:25:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/HOW-to-modify-IVOR4-Handler-code-while-enable-SPE-in-motor/m-p/1265031#M18053</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2021-04-20T09:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: HOW to modify IVOR4_Handler code while enable SPE in motor application with SPC5643L?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/HOW-to-modify-IVOR4-Handler-code-while-enable-SPE-in-motor/m-p/1265524#M18068</link>
      <description>&lt;P&gt;there are errors while making ,undefined opcode as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="errors.jpg" style="width: 522px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/142837i2D1FD41BCD835B56/image-size/large?v=v2&amp;amp;px=999" role="button" title="errors.jpg" alt="errors.jpg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;errors.jpg&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 02:49:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/HOW-to-modify-IVOR4-Handler-code-while-enable-SPE-in-motor/m-p/1265524#M18068</guid>
      <dc:creator>steven_zhang</dc:creator>
      <dc:date>2021-04-21T02:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: HOW to modify IVOR4_Handler code while enable SPE in motor application with SPC5643L?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/HOW-to-modify-IVOR4-Handler-code-while-enable-SPE-in-motor/m-p/1265662#M18072</link>
      <description>&lt;P&gt;I have meant this code to reference only as it shows to how to store SPE accumulator. Please modify your own assembly code&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 07:34:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/HOW-to-modify-IVOR4-Handler-code-while-enable-SPE-in-motor/m-p/1265662#M18072</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2021-04-21T07:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: HOW to modify IVOR4_Handler code while enable SPE in motor application with SPC5643L?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/HOW-to-modify-IVOR4-Handler-code-while-enable-SPE-in-motor/m-p/1284004#M18370</link>
      <description>&lt;P&gt;i modified the code ,compiling and debugging , and run to exc_SPE_unavailable interruption.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="steven_zhang_2-1622189480134.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/145764iAD174DEFE2600668/image-size/medium?v=v2&amp;amp;px=400" role="button" title="steven_zhang_2-1622189480134.png" alt="steven_zhang_2-1622189480134.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;steven_zhang_2-1622189480134.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="steven_zhang_0-1622188949733.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/145762i2FBA7231727F89A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="steven_zhang_0-1622188949733.png" alt="steven_zhang_0-1622188949733.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;steven_zhang_0-1622188949733.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="steven_zhang_1-1622188982612.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/145763iEDABD6398345C04F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="steven_zhang_1-1622188982612.png" alt="steven_zhang_1-1622188982612.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;steven_zhang_1-1622188982612.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 08:13:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/HOW-to-modify-IVOR4-Handler-code-while-enable-SPE-in-motor/m-p/1284004#M18370</guid>
      <dc:creator>steven_zhang</dc:creator>
      <dc:date>2021-05-28T08:13:07Z</dc:date>
    </item>
  </channel>
</rss>

