MPC5xxx Knowledge Base

cancel
Showing results for 
Search instead for 
Did you mean: 

MPC5xxx Knowledge Base

Labels

Discussions

MPC55xx MPC5554 MPC5566                     MPC56xx MPC5602D MPC5604B MPC5604E MPC5606S MPC5604P MPC5607B MPC5646C MPC5634M MPC5642A MPC5644A MPC5643L MPC5668G MPC5674F MPC5675K MPC5676R                   MPC57xx MPC5744P MPC5777C MPC5777M MPC5746R MPC5748G MPC5746C MPC5775K S32R274             MPC5554   Codewarrior Classic Example MPC5554EVB PinToggleStationery CW210  Example MPC5554 eQADC+INTC Single Scan CW210 Go to the top of the page        MPC5566   Codewarrior Classic Example MPC5566EVB PinToggleStationery CW210  Example MPC5566 Hardware vector mode CW210  Go to the top of the page        MPC5602D   GreenHills MULTI Example MPC5602D FMPLL GHS614  Go to the top of the page        MPC5604B   Codewarrior Classic Example MPC5604B PinToggleStationery CW210  Example MPC5604B LINFlex LIN Master-Slave communication demo CW210  Example MPC5604B Shadow Flash Reprogramming CW210  Example MPC5604B Flash Array Integrity Check CW210 - using SSD flash drivers  Example MPC5604B Censorship CW210 Example MPC5604B ADC-Pot-ADCWatchDog-INTC-printf CW210  Example MPC5604B SWT Windowed mode CW210 Go to the top of the page        MPC5604E   Codewarrior Classic Example MPC5604E PinToggleStationery CW210  Go to the top of the page        MPC5606S   Codewarrior Classic Example MPC5606S-DEMO LM75B+TFT CW210  Example MPC5606S-DEMO HIH-5030+TFT CW210  Example MPC5606S-DEMO PCA8565+TFT CW210  Demo application MPC5606S-DEMO + LM75B + HIH-5030 + PCA8565 + GUI CW210  Example MPC5606S-STOP_mode_implementation CW210 Go to the top of the page        MPC5604P    Codewarrior Classic Example MPC5604P PinToggleStationery CW210 Example TRK-MPC5604P Initialization of SBC chip MC33905 and FlexCAN CW210  Example MPC5604P ADC setting for scan mode on TRK board CW210  Example MPC5604P FlexPWM Initialization on TRK board CW210 Go to the top of the page        MPC5607B    Codewarrior Classic Example MPC5607B PinToggleStationery CW210  Example MPC5606B SIUL External interrupt CW210  Example MPC5607B CAN sampler and STOP mode  Example MPC5607B-DMA+LinFlex CW210  Go to the top of the page        MPC5646C    Codewarrior Classic Example MPC5646C PinToggleStationery CW210  Example MPC5646C Standby Wakeup To SRAM CW210  Example MPC5646C eMIOS frequency measurement CW210   GreenHills MULTI Example MPC5646C PIT ISR GHS614  Go to the top of the page        MPC5634M    Codewarrior Classic Example XPC563MKIT PinToggleStationery CW210  Example TRK-MPC5634M Initialization of SBC chip MC33905 and FlexCAN CW29  Example MPC5634M_2b_RAM_ECC_error_injection CW210  Go to the top of the page        MPC5642A    Codewarrior Eclipse Example XPC5642AKIT PinToggleStationery CW10.6  Go to the top of the page        MPC5644A    S32 Design Studio Example MPC5644A BookE PinToggle - S32DS Power 2017.R1    Codewarrior Eclipse Example MPC5644A External SRAM - CodeWarrior for MCUs v10.5    Codewarrior Classic Example XPC564AKIT PinToggleStationery CW210  Example XPC564AKIT324S External SRAM test CW210  Example MPC5644A eQADC channel 146 conversion+calibration CW210  Example MPC5644A TSENS Temperature calculation CW210 Example MPC5644A Censorship CW210   GreenHills MULTI Example MPC5644A EMIOS shifted PWM GHS614  Go to the top of the page        MPC5643L    Codewarrior Classic Example XPC5643LKIT PinToggleStationery LSM CW210  Example XPC5643LKIT PinToggleStationery DPM CW210  Example MPC5643L Flash_program_simple CW210  Example MPC5643L TSENS Temperature_calculation CW210  Example MPC5643L-LVD_HVD_self_test+FCCU_F CW210  Example MPC5643L 1b_RAM_ECC_error_injection CW210  Example MPC5643L 2b RAM and 2b FLASH ECC error injection CW210    GreenHills MULTI Example MPC5643L eTimer DMA GHS614  Go to the top of the page        MPC5668G    Codewarrior Classic Example MPC5668G PinToggleStationery CW210  Go to the top of the page        MPC5674F    Codewarrior Classic Example XPC567XFKIT PinToggleStationery CW210  Example MPC5674F eQADC+eDMA Single_Scan CW210  Example MPC5674F eQADC+eDMA-Single+Differential+GAIN CW210  Example MPC5674F eQADC+eDMA Continuous_Scan CW210  Example MPC5674F eQADC-Streaming Mode CW210  Example MPC5674F eQADC_PMC_chnl_conv+calib CW210  Example MPC5674F_1b+2b_RAM_ECC_error_injection CW210  Example MPC5674F MPU Initialization CW210  Example MPC5674F TSENS-Temperature_calc CW210  Go to the top of the page        MPC5675K    Codewarrior Classic Example MPC5675K PinToggleStationery LSM CW210 Example MPC5675K PinToggleStationery DPM CW210  Example MPC5675K Data_flash_program_simple CW210  Example MPC5675K-2b_RAM+2b_FLASH_ECC_error_injection CW210  Example MPC5675K TSENS Temperature calculation CW210  Go to the top of the page      MPC5676R    Codewarrior Classic Example XPC567XRKIT PinToggleStationery CW210  Example MPC5676R DSPI MasterSlave DMA CW210  Example MPC5676R DSPI-ext_SPI_memory-S25FL129P CW210  Example MPC5676R-eQADC_PMC_chnl_conv+calib CW210  Example MPC5676R-eQADC_DECFILTER_integrator_eTPU CW210   S32 Design Studio Example MPC5676R HardwareVectorMode Multicore S32DS_2017.R1   GreenHills MULTI Example MPC5676R BIST core1 GHS716  Example MPC5676R BIST Core0&1 GHS716 (multicore) Go to the top of the page        MPC5744P    S32 Design Studio Example MPC5744P PinToggleStationery S32DS_1.0  Example MPC5744P LINFlex UART with DMA S32DS_1.0  Example MPC5744P ETimerCountMode S32DS_1.0  Example MPC5744P HardwareVectoreMode S32DS_1.0  Example MPC5744P STM timer S32DS Power 2017.R1    GreenHills MULTI Example MPC5744P FlexCAN simpleTXRX GHS614  Example MPC5744P eTimer frequency measurement GHS614  Example MPC5744P FlexPWM CTU ADC synchronization GHS614  Example MPC5744P FlexPWM SGEN synchronization GHS614  Example MPC5744P TSENS temperature calculation GHS614  Example MPC5744P LINFlex UART echo SW polling GHS614  Example MPC5744P FlexPWM init with DMA reload GHS614  Example MPC5744P FlexPWM CTU SGEN triggering GHS614  Example MPC5744P DMA multiple minor transfers GHS614  Example MPC5744P DMA GHS614  Example MPC5744P XBIC0 Error injection on XBAR_0 (Core access to SRAM) GHS614  Example MPC5744P XBIC_1 fault injection on DMA transfer GHS614  Example MPC5744P eTimer CTU ADC synchronization GHS614  Example MPC5744P PIT triggering interrupts GHS614  Example MPC5744P FCCU fault injection GHS614  Example MPC5744P ADC GHS614  Example MPC5744P CTU triggered by eTimer0 GSH614  Example MPC5744P LIN Master Slave test GHS614  Example MPC5744P 1b+2b_FLASH_ECC_error_by_UTEST_area_read GHS614  Example MPC5744P 1b+2b_RAM_ECC_error_injection GHS714  Example MPC5744P 1b+2b_PERRAM_ECC_error_injection GHS614  Example MPC5744P EDC_after_ECC_error_by_UTEST_area_read GHS714  Example MPC5744P_2b_DMEM_ECC_error_injection GHS714  Example MPC5744P CGM GHS614  Example MPC5744P eTimer DMA frequency measurement GHS614  Example MPC5744P FlashArrayIntegrityCheck test SSD GHS614 Example MPC5744P SWT Short reset GHS614  Example MPC5744P SWT Long reset GHS614  Example MPC5744P FCCU alarm state GHS614  Example MPC5744P FCCU clear faults GHS614  Example MPC5744P ADC DMA GHS614  Example MPC5744P FlexPWM shifted PWM GHS616  Example MPC5744P PMC SW triggered self-test GHS614  Example MPC5744P PMC Single VD self-test GHS614  Example MPC5744P BIST On-line GHS614 Example MPC5744P EIM RAM ECC error injection GHS614 Example MPC5744P FlexCAN TX RXFIFO ISR GHS614  Example MPC5744P CMPU Initialization GHS614  Example MPC5744P FlexPWM_0&1 synchronization GHS716  Example MPC5744P ADC Self Test GHS716 Go to the top of the page        MPC5777C    S32 Design Studio Example MPC5777C Single ELF multi-core Pin Toggling - S32DS Power 2017.R1  Example MPC5777C DSPI master TX/RX DMA S32DS Power 2.1  Example_MPC5777C-External_SRAM-test-S32DS.Power.2017.R1    GreenHills MULTI Example MPC5777C-PinToggleStationery GHS714  Example MPC5777C-SIUL_External_IRQ GHS714  Example MPC5777C-1b+2b_RAM_ECC_error_injection GHS614  Example MPC5777C FCCU-FOSU-error-injection GHS714 Example MPC5777C TSENS Temperature calculation GHS614  Example MPC5777C eMIOS-eQADC Continuous external trigger mode GHS614  Example MPC5777C-SDADC_simple GHS614  Example MPC5777C-SDADC_eTPU_triggered GHS714  Example MPC5777C-eQADC_Simple GHS714  Example MPC5777C-eQADC_Simple+Calibration GHS714  Example MPC5777C FlexCAN simpleTXRX SW poll GHS616  Example MPC5777C MCAN simpleTXRX GHS616  Example MPC5777C MCAN-FD simpleTX RX-ISR GHS616  Example MPC5777C FlexCAN simple TXRX ECC enabled GHS616  Example MPC5777C External SRAM_test GHS714  Example MPC5777C-eTPU_GPIO_test GHS714  Example MPC5777C eTPU_FPM_test GHS714  Example MPC5777C Progresive clock switching GHS716 Example MPC5777C eMIOS IGF test GHS614  Go to the top of the page        MPC5777M    S32 Design Studio Example MPC5777M PinToggleStationery S32DS_1.0  Processor Expert RAppID Suite for MPC5777M and S32DS_1.1 Integration Multicore Example   GreenHills MULTI Example-MPC5777M-CGM (clock configuration) GHS614  Example MPC5777M-DPM-PLL-200MHz GHS614  Example MPC5777M PIT ISR GHS614  Example MPC5777M LINFlex UART Echo SW polling GHS614  Example MPC5777M DSPI_SimpleTXRX S32DS_1.1  Example MPC5777M FCCU Fake fault injection GHS614  Example MPC5777M MCAN simple TX/RX GHS614  Example MPC5777M TSENS Temperature Calculation GHS616  Example MPC5777M FCCU alarm state GHS614 Go to the top of the page        MPC5775K    S32 Design Studio Example MPC5775K PinToggleStationery S32DS_1.0  Example MPC5775K-DMA_Transfer S32DS_1.0  Example MPC5775K UART_with_DMA S32DS_1.0  Example MPC5775K-UART_with_Interrupts S32DS_1.0  Example MPC5775K FlexCAN_with_interrupts_v1.1 S32DS_1.1  Example MPC5775K Semaphores S32DS_1.0  Example MPC5775K eTimer_PWM S32DS_1.0  Example MPC5775K ADC_example S32DS_1.0  Example MPC5775K IIC Communication with RTC PCA8565TS/1 S32DS_1.0  Example MPC5775K DSPI_with_interrupts S32DS_1.0    GreenHills MULTI Example MPC5775K CGM (clock configuration) GHS614  Example MPC5775K PIT ISR GHS614  Example MPC5775K Multicore GHS614 Go to the top of the page        MPC5748G    S32 Design Studio Example MPC5748G-FlexCAN_with_interrupts S32DS_1.0  Example MPC5748G Overlay SRAM Overlay Flash config S32DS  Example MPC5748G FlexCAN RXFIFO SDK PA RTM200 S32DS.Power.2017.R1 Example MPC5748G PretendedNetworkingCAN S32DS_1.0  Example MPC5748G SIUL External Interrupt SDK PA BETA290 S32DS.Power.2017.R1  Example MPC5748G Low power modes S32DS_2017.R1  Example MPC5748G eMIOS BCTU ADC trigger S32DS2.1    GreenHills MULTI Example MPC5748G PinToggleStationery GHS614  Example MPC5748G FlexCAN DMA ISR  Example MPC5748G SMPU initialization GHS614  Example MPC5748G SMPU initialization + Process ID test GHS614  Example MPC5748G Flash RW SSD GHS614  Example MPC5748G Flash RW GHS614  Example MPC5748G PIT ISR GHS614  Example MPC5748G ADC driver GHS614  Example MPC5748G BCTU GHS614 Example MPC5748G + PCF8885 Touch sensing demo GHS614 Example MPC5748G CRC32 GHS614  Example MPC5748G Standby mode GHS614 Example MPC5748G Register Protection GHS614  Example MPC5748G FlexCAN FD simple TX/RX GHS614  Example MPC5748G DSPI extended mode GHS614  Example MPC5748G FMPLL Frequency Modulation GHS614  Example MPC5748G DPM Multicore GHS614  Example MPC5748G LINFlex LIN Master Slave test GHS616  Go to the top of the page        MPC5746C    GreenHills MULTI Example MPC5746C PIT ISR GHS614 Example MPC5746C eMIOS Shifted PWM GHS716 Example MPC5746C FMPLL modulation GHS716 Go to the top of the page        MPC5746R    S32 Design Studio Example MPC5746R PinToggleStationery - S32DS Power 2017.R1  Example MPC5746R FlexCAN_with_interrupts S32DS_1.1  Example MPC5746R eTPU_original_set1_integration PWM_test S32DS.Power.2017.R1 Example MPC5746R DSPI simple TX RX S32DS Power 2017.R1    GreenHills MULTI Example MPC5746R CGM (clock configuration) GHS614  Example MPC5746R DPM (multicore) GHS614 Example MPC5746R Online BIST GHS614 Example MPC5746R PIT ISR GHS614 Example MPC5746R FCCU Alarm State GHS716 Example MPC5746R ADC Self-test GHS716   Standalone Debugger Script Example MPC5746R Off-line BIST Lauterbach script  Go to the top of the page        S32R274    S32 Design Studio Example S32R274 Multi-core shared memory S32DS_1.2  Example S32R274 FlexCAN_with_Interrupts S32DS_1.1  Example S32R274 Watchdog_example S32DS_1.1    GreenHills MULTI Example S32R274 CGM GHS716 Example S32R274 SWT_2 reset trigger GHS716  Example S32R274 PIT ISR Go to the top of the page     
View full article
* Detailed Description: * This example demonstrates frequency modulation at 20kHz with 250 steps. * Test HW: xPC57xx EVB + MPC5746C minimodule * Maskset: 1N06M * Target : Internal Flash * Fsys: 160 MHz PLL * ******************************************************************************** Revision History: 1.0 Oct-29-2014 b21190(Vlna Peter) Initial Version 1.1 Nov-20-2014 b21190(Vlna Peter) Modified for Cut2.0 1.2 Apr-23-2015 b21190(Vlna Peter) Added INTC driver and PIT ISR 1.3 May-14-2015 b21190(Vlna Peter) Dissabling SWT in Startup code 1.4 Jun-06-2017 b21190(Vlna Peter) ported for MPC5746C 1.5 Sep-29-2020 b21190(Vlna Peter) Added 20kHz frequency modulation *******************************************************************************/
View full article
* Example of eMIOS configuration for shifted PWM mode ******************************************************************************** * Test HW: MPC5746C minimodule + MPC57xx Motherboard * Maskset: 1N06M * Target : Internal Flash * Fsys: 160 MHz PLL * ******************************************************************************** Revision History: 1.0 Oct-29-2014 b21190(Vlna Peter) Initial Version 1.1 Nov-20-2014 b21190(Vlna Peter) Modified for Cut2.0 1.2 Apr-23-2015 b21190(Vlna Peter) Added INTC driver and PIT ISR 1.3 May-14-2015 b21190(Vlna Peter) Dissabling SWT in Startup code 1.4 Jun-06-2017 b21190(Vlna Peter) ported for MPC5746C 1.5 Jun-06-2017 b21190(Vlna Peter) eMIOS example with shifter PWM *******************************************************************************/
View full article
This config tool simplifies PLL setting calculation and clock configuration for MPC5777C device. Version 1.3 added option to select between 264/300 MHz MCU versions.                 Follow these steps                 Note: Macros have to be enabled!                 1. Enter frequency of used XOSC and desired PLL0 and PLL1 output.      - put values into cells B14, Q13 and Q20 of the "Clocks" sheet      - check if it is Valid or Invalid      - "PLLconfig" sheet shows possible PLLs configurations                   2. Configure System and AUX clock selectors and its Dividers      - check calculated frequency of System/Peripheral clocks      - if Invalid change source clock and Divider value to keep Max freq                 3. Copy generated code by pressing "Copy Code" button
View full article
******************************************************************************** * Detailed Description: * Application performs basic initialization then it initializes EBI for external * SRAM connected to MPC5777C-516DS and test it by write and read of block of * data. * * ------------------------------------------------------------------------------ * Test HW:         MPC5777C-512DS Rev.A + MPC57xx MOTHER BOARD Rev.C * MCU:             PPC5777CMM03 3N45H * Fsys:            PLL1 = core_clk = 264MHz, PLL0 = 192MHz * Debugger:        Lauterbach Trace32 * Target:          internal_FLASH * Terminal:        19200-8-no parity-1 stop bit-no flow control on eSCI_A * EVB connection:  jumper J4 on position 1-2 (choosing CS0) *                  EMIOS1 (PortI P16-0) --> USER_LED_1 (P7-1) to see LED blink ******************************************************************************** Revision History: Ver  Date         Author            Description of Changes 0.1  Jun-26-2017  David Tosenovjan  Initial version 0.2  Oct-13-2017  David Tosenovjan  Lower CLKOUT frequency 0.3  Feb-02-2020  David Tosenovjan  Corrected External_SRAM_MMU_init                                     Ported to S32 design studio *******************************************************************************/
View full article
******************************************************************************** Detailed Description: Example shows configuration of SIUL External interrupts using SDK driver. EIRQ0 (PA3) and EIRQ11 (PE12) are configured for detecting rising edge. Those pins are connected to switches SW1 and SW2 on DEVKIT board. EIRQ1 (PA6) is configured for detecting falling edge. Within its interrupt routines a LEDs are toggled upon edge detecting. See PinSetting component for pins configuration within "Routing" and "Functionals Properties" tabs. To see falling edge on PA6 just connect pin (J2.1) to GND shortly. * ------------------------------------------------------------------------------ * Test HW:         DEVKIT-MPC5748G * MCU:             PPC5748GSMKU6 0N78S * Target:          Debug_FLASH * EVB connection: * Compiler:        S32DS.POWER.2017.R1 * SDK release:     S32_SDK_S32PA_BETA_2.9.0 * Debugger:        S32DS, Lauterbach Trace32 ******************************************************************************** Revision History: Ver Date        Author       Description of Changes 0.1 Jun-13-2019 Petr Stancik Initial version *******************************************************************************/
View full article
******************************************************************************** * Detailed Description: * Example shows how to use original eTPU sets available over eTPU Function * Selector ( https://www.nxp.com/webapp/etpu/ ) and integrate them into * S32 Design Studio Integrated Development Platform. Example is based on * Software Development Kit (SDK) startup, in the main function adds necessary * configuration to get eTPU run. * eTPU application itself is simple PWM configured with eTPU Graphical * Configuration Tool. Target CPU is 'Generic CPU with eTPU2', eTPU clock 100MHz. * User can shows PWM waves over pins PH[10] and PH[11]. *   * Tip: AN4687 may be used as reference with note the different compiler is used. * References: http://www.nxp.com/files/soft_dev_tools/doc/app_note/AN4687.pdf *            https://www.nxp.com/webapp/sps/download/license.jsp?colCode=ETPUGCT * ------------------------------------------------------------------------------ * Test HW:         MPC5746R-176DC Rev.A2 + MPC57xx MOTHER BOARD Rev.C * MCU:             SPC5743RMLU5 QCO1640 1N83M FEAEQL * Target:          Debug_FLASH * EVB connection:  ETPU0_A (Port PH[10]) --> scope *                  ETPU1_A (Port PH[11]) --> scope * Compiler:        S32DS.Power.2017.R1 * SDK release:     S32_SDK_S32PA_EAR_1.8.0 * Configurator:    eTPU Graphical Configuration Tool 1.4.0.4 * Debugger:        Lauterbach Trace32 ******************************************************************************** Revision History: Ver  Date         Author            Description of Changes 0.1  Apr-04-2019  David Tosenovjan  Initial version *******************************************************************************/
View full article
MPC5xxx   Documents eQADC - avoiding unintended result swap  External Bus Interface FAQs  FlexCAN bit timing calculation   Excel configurators MPC5xxx/S32Kxx: CAN / CAN FD bit timing calculation    SW Drivers MPC5xxx I2C communication driver   MPC55xx/56xx   Documents e200 Core Training relevant to MPC55xx and MPC56xx device family  AN5200 - Error Correcting Codes Implemented on MPC55xx and MPC56xx   Excel configurators Excel MPC55xx/MPC56xx PLL Calculator  MMU Assist Register CONFIGURATOR   Debugger Scripts Example JTAG access – Addendum to application notes AN3283 and AN4365    MPC57xx   Excel configurators Core MPU configurator  MPC57xx - DCF records   Debugger Scripts MPC57xx FCCU Utility scripts for Lauterbach debugger   MPC5643L   Documents MPC5643L PWM_ADC measurement concept GSH614    MPC5744P   Documents Using the Built-in Self-Test (BIST) on the MPC5744P  Error Correcting Codes Implemented on MPC5744P  MPC574xP - FCCU configuration guide   Excel configurators Excel MPC5744P Clock Configurator MPC5744P DCF Configurator    MPC5746R   Documents MPC5746R STCU2 BIST configuration guide   Excel configurators MPC5746R DCF Configurator     MPC574xG/C   Documents MPC5646C to MPC574xG Migration - Rev. 0, 09/2013 Draft only   Excel configurators MPC5746C DCF Configurator  MPC5748G DCF Configurator    MPC5775K   Excel configurators MPC5775K DCF Configurator    MPC5777C   Documents MPC5777C - Online BISTs   Excel configurators Excel MPC5777C clock configurator MPC5777C DCF Configurator    MPC5777M   Excel configurators MP5777M DCF Configurator    S32R274   Excel configurators S32R274 DCF Configurator    IDEs (CodeWarrior, S32 Design Studio)   Documents How to program QSPI flash using CodeWarrior 10.x  How to use CRCgen in CodeWarrior for MCU  How to download separate elf/srec/hex file to microcontroller using S32 Design Studio  How to use printf function in S32DS for Power Architecture using EWL library  How to debug code using CodeWarrior 10.5  How to flash two .elf files using CodeWarrior 10.6  How to create FreeRTOS project in S32 Design Studio  How to create new configuration in CodeWarrior for MCU   For more HOWTOs related to S32 Design Studio, visit S32DS for Power - list of HOWTOs 
View full article
This example content a basic FMPLL initialization and configuration of Mode Entry module and Clock Generation module. By default active is core 2 -> e200z4 Demonstration of PIT triggering an interrupt on timeout. ******************************************************************************** * Test HW: MPC57xx + S32R274RRUEVB * Maskset: 1N58R * Target : internal_FLASH * Fsys: 240 MHz PLL with 40 MHz crystal reference for z7 and 120MHz for z4 ******************************************************************************** Revision History: 1.0 Apr-02-2019      b21190        (Vlna Peter) Initial Version 1.1 Sep-19-2019     nxa13250    (Vlna Peter) Added PIT + interrupts *******************************************************************************/
View full article
Hello    If you want to do nothing on MCU, no-operation is used generally.     Additional mnemonics are provided for the preferred forms of no-op, like nop, e_nop, se_nop. (Where the semantics are similar but the binary encoding differ, the standard mnemonic is typically preceded with an e_ to denote a VLE instruction. To distinguish between similar instructions available in both 16- and 32-bit forms under VLE and standard instructions, VLE instructions encoded with 16 bits have an se_ prefix.)    When you compile these code within IDE, you can get the results as below. The code could run correctly except __asm__ ( "nop" ).  Some MPC5xxx will stop at  __asm__   ( "nop" ).    "nop"         gives Book E NOP instruction which isn't valid on VLE only cores. "e_nop"     gives 32bit VLE instruction. "se_nop"   gives 16bit VLE instruction. Based on the summary within AN4802 (thanks for Randy Dee's working), Qorivva MPC57xx e200zx Core Differences, Book E is not supported by MPC57xx. VLE instruction set is supported only.   This is the reason that user should use "e_nop" or "se_nop" except "nop" on MPC57xx or S32R2xx. Cheers! Oliver
View full article
******************************************************************************** * Detailed Description: * * Purpose of the example is to show how to intentionally generate FCCU fault * causing reset either directly or by FOSU (simulating by non-handled FCCU * fault). Example configures FCCU, then an error is injected with using of * Noncritical Fault Fake register and after re-booting reset cause is evaluated. * The example displays notices in the terminal window (connector J19 on * MPC57xx_Motherboard)(19200-8-no parity-1 stop bit-no flow control on eSCI_A). * No other external connection is required. * * ------------------------------------------------------------------------------ * Test HW:         MPC5777C-512DS Rev.A + MPC57xx MOTHER BOARD Rev.C * MCU:             PPC5777CMM03 2N45H CTZZS1521A * Fsys:            PLL1 = core_clk = 264MHz, PLL0 = 192MHz * Debugger:        Lauterbach Trace32 * Target:          internal_FLASH * Terminal:        19200-8-no parity-1 stop bit-no flow control on eSCI_A * EVB connection:  eSCI_A is USBtoUART bridge (connector J21) * ********************************************************************************
View full article
Hi     Migrate the code from MPC5775K to S32R274.     Tested on S32R274 EVB with S32 Design Studio for Power Architecture Version 2.1.     Unzip password: nxp Cheers Oliver
View full article
How to get latest MCAL HF version from your NXP website account if you have already registered and applied MCAL SW package.   Access www.nxp.com, login with your account            
View full article
******************************************************************************** * Detailed Description: * * Application performs basic initialization, setup PLLs. * DSPI_A is configured as master using DMA to send/receive 8 words. * * Two DMA descriptors are initialized: * - TCD[32] master transmit * - TCD[33] master receive * * * EVB connection: * * Do external loopback to connect SOUT to SIN * * PM6 ... SCKA * PM7 ... SINA * PM8 ... SOUTA * PM13... PCSA0 ** * ------------------------------------------------------------------------------ * Test HW: MPC5777C-512DS Rev.A + MPC57xx MOTHER BOARD Rev.C * MCU: PPC5777CMM03 3N45H * Fsys: PLL1 = core_clk = 260MHz, PLL0 = 200MHz * Debugger: Lauterbach Trace32 * Target: internal_FLASH * *********************************************************************************
View full article
Hi,    Please update your Cyclone Flash Programming Algorithms for MPC57xx through the link.      http://www.pemicro.com/support/flash_list_menu.cfm     Older code algorithms includes area of HSM. If there are ECC errors in these blocks, the device may stuck in reset. During reset, the SSCM module searches for valid boot header. If it reads corrupted data from HSM blocks, it will not exit the reset.     Newer should be with “ NO_BASE_ADDRESS=00F90000/ ”   https://community.nxp.com/thread/444748   Failed sample waves on PORST vs RESET are as below.    Algorithms in S32DS_Power_v2_1 and S32DS_Power_v2017_R1 are good.     Regards Oliver
View full article
******************************************************************************** * Detailed Description: * * Example shows how to trigger ADC conversion on falling edge of PWM signal. * eMIOS ch1 is set to SAIC mode and a flag generated on selected edge detection * triggers BCTU channel which starts conversion of ADC1 ch9. On this channel * the board's trimmer is connected. * * EVB connection: * * J3.1 .. PA[1] - connect external PWM signal * J3.3 .. PA[2] - toggled in BCTU interrupt after ADC measurement * * ------------------------------------------------------------------------------ * Test HW: DEVKIT-MPC5748G * Maskset: 0N78S * Target : FLASH * Fsys: 160 MHz PLL * Debugger: Lauterbach * ******************************************************************************** Revision History: 1.0 Nov-5-2019 Petr Stancik Initial Version *******************************************************************************/
View full article
******************************************************************************** * Detailed Description: * Initializes and calibrates eQADC module and cyclically converts choosen * channel, displaying it into terminal window. * User could connect EVB pot's wiper to pin header W (see below) to see valid * conversion result. * * ------------------------------------------------------------------------------ * Test HW:         MPC5777C-512DS Rev.A + MPC57xx MOTHER BOARD Rev.C * MCU:             PPC5777CMM03 2N45H CTZZS1521A * Fsys:            PLL1 = core_clk = 264MHz, PLL0 = 192MHz * Debugger:        Lauterbach Trace32 * Target:          internal_FLASH * Terminal:        19200-8-no parity-1 stop bit-no flow control on eSCI_A * EVB connection:  For ADC: J53-1 (EVB pot's wiper) --> PS0  - ANA17 *                                                       PS1  - ANA18 *                                                       PS2  - ANA19 *                                                       PS3  - ANA20 * ********************************************************************************
View full article
******************************************************************************** * Detailed Description: * * eMIOS0 ch0 is set to SAIC mode generating interrupt on falling edge. * The IGF ch16, connected to eMIOSch0, is set to filter low pulses <1.5us * Intergation filter type is used for falling edge with given threshold. * eMIOS interrupt is called if input signal low pulse is longer than 1.5us. * * ------------------------------------------------------------------------------ * Test HW: MPC5777C-512DS Rev.A + MPC57xx MOTHER BOARD Rev.C * MCU: PPC5777CMM03 2N45H CTZZS1521A * Fsys: PLL1 = core_clk = 264MHz, PLL0 = 192MHz * Debugger: Lauterbach Trace32 * Target: internal_FLASH * Terminal: 19200-8-no parity-1 stop bit-no flow control on eSCI_A * use USB connector (J21) on minimodule * * EVB connection: ETPUA30 (PortP P23-15) --> USER_LED_1 (P7-1) * ETPUA31 (PortP P23-14) --> USER_LED_2 (P7-2) * * eMIOS ch0 (PortG P14-16)--> connect external pulse signal * ********************************************************************************
View full article
******************************************************************************** * Detailed Description: * Application performs basic initialization, setup PLL to maximum allowed * frequency * * User can choose, which low power mode should be entered. There is LPU_MODE * macro defined, which allows to choose STOP, STANDBY or LPU_RUN mode. * * If LPU_RUN mode is selected, user can use macro LPU_STOP_SLEEP_STANDBY, * which allows to choose LPU_STOP, LPU_SLEEP or LPU_STANDBY mode. * * Ther is also RTC initialized, which wakeup microcontroller using WKPU after * 5 seconds from some of the LPU is entered. RTC uses FIRC as a source clock, * so FIRC must be enabled in all low power modes. * * * Modified files: mem.ld, sections.ld, startup.s, added file z2_restart.s * * * ------------------------------------------------------------------------------ * Test HW:         MPC5748G-324DS, MPC574xG Motherboard * MCU:             PPC5748GMMN6A 0N78S * Fsys:            PLL0 160MHz * Debugger:        Lauterbach Trace32 *                  PeMicro USB-ML-PPCNEXUS * Target:          internal_FLASH (debug mode, release mode) * EVB connection:  USER LED1 to A1 *                    USER LED2 to A2 * * * ********************************************************************************
View full article