Example MPC5744P HardwareVectoreMode S32DS_1.0

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Example MPC5744P HardwareVectoreMode S32DS_1.0

Example MPC5744P HardwareVectoreMode S32DS_1.0

********************************************************************************

* Detailed Description:

* This example shows, how to use interrupt hardware vector mode. In the example

* PIT0 interrupt and external interrupt source 1 are implemented. PIT interrupt

* toggle LED every second, external interrupt causes IVOR1 exception.

*

* This example also shows, how to use exceptions, while HW vector mode is used.

* After SW1 button is pressed, uninitialized RAM is read and IVOR1 exception is

* reached. In IVOR1, only endless loop is implemented and micro has to be reset

* externally if you want to get out from this loop.

*

*

* For correct HW vector mode setup, following files was added to the project:

*

*  - exceptions.s

*  - handlers_vle.s

*  - HW_vector.c

*

*

* Following files was modified (all changes are marked by comment):

*

*  - mem.ld

*  - sections.ld

*  - Vector.c

*  - MPC57xx__Interrupt_Init.c

*

*

*  Following files was removed from project (files are still place in project, but

*  not compiled and linked)

*

*  - intc_sw_handlers.S

*  - intc_SW_mode_isr_vectors_MPC5744P.c

*

*

*

* Test HW:         X-MPC5744P-144DC, MPC57xx motherboard

* MCU:             PPC5744PFMLQ8 0N15P

* Fsys:            200 MHz

* Debugger:        Lauterbach Trace32

*                  PeMicro USB-ML-PPCNEXUS

* Target:          internal_FLASH (debug mode, release mode)

* EVB connection:  User LED 1 connected to A0 (P8.0),

*                    User switch SW1 connected to A1 (P8.1)

*

*

* ------------------------------------------------------------------------------

*

********************************************************************************

Labels (1)
Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1112437%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20MPC5744P%20HardwareVectoreMode%20S32DS_1.0%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1112437%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3C%2FP%3E%3CP%3E*%20Detailed%20Description%3A%3C%2FP%3E%3CP%3E*%20This%20example%20shows%2C%20how%20to%20use%20interrupt%20hardware%20vector%20mode.%20In%20the%20example%3C%2FP%3E%3CP%3E*%20PIT0%20interrupt%20and%20external%20interrupt%20source%201%20are%20implemented.%20PIT%20interrupt%3C%2FP%3E%3CP%3E*%20toggle%20LED%20every%20second%2C%20external%20interrupt%20causes%20IVOR1%20exception.%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20This%20example%20also%20shows%2C%20how%20to%20use%20exceptions%2C%20while%20HW%20vector%20mode%20is%20used.%3C%2FP%3E%3CP%3E*%20After%20SW1%20button%20is%20pressed%2C%20uninitialized%20RAM%20is%20read%20and%20IVOR1%20exception%20is%3C%2FP%3E%3CP%3E*%20reached.%20In%20IVOR1%2C%20only%20endless%20loop%20is%20implemented%20and%20micro%20has%20to%20be%20reset%3C%2FP%3E%3CP%3E*%20externally%20if%20you%20want%20to%20get%20out%20from%20this%20loop.%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20For%20correct%20HW%20vector%20mode%20setup%2C%20following%20files%20was%20added%20to%20the%20project%3A%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%26nbsp%3B%20-%20exceptions.s%3C%2FP%3E%3CP%3E*%26nbsp%3B%20-%20handlers_vle.s%3C%2FP%3E%3CP%3E*%26nbsp%3B%20-%20HW_vector.c%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20Following%20files%20was%20modified%20(all%20changes%20are%20marked%20by%20comment)%3A%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%26nbsp%3B%20-%20mem.ld%3C%2FP%3E%3CP%3E*%26nbsp%3B%20-%20sections.ld%3C%2FP%3E%3CP%3E*%26nbsp%3B%20-%20Vector.c%3C%2FP%3E%3CP%3E*%26nbsp%3B%20-%20MPC57xx__Interrupt_Init.c%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%26nbsp%3B%20Following%20files%20was%20removed%20from%20project%20(files%20are%20still%20place%20in%20project%2C%20but%3C%2FP%3E%3CP%3E*%26nbsp%3B%20not%20compiled%20and%20linked)%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%26nbsp%3B%20-%20intc_sw_handlers.S%3C%2FP%3E%3CP%3E*%26nbsp%3B%20-%20intc_SW_mode_isr_vectors_MPC5744P.c%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20Test%20HW%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20X-MPC5744P-144DC%2C%20MPC57xx%20motherboard%3C%2FP%3E%3CP%3E*%20MCU%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20PPC5744PFMLQ8%200N15P%3C%2FP%3E%3CP%3E*%20Fsys%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20200%20MHz%3C%2FP%3E%3CP%3E*%20Debugger%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Lauterbach%20Trace32%3C%2FP%3E%3CP%3E*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20PeMicro%20USB-ML-PPCNEXUS%3C%2FP%3E%3CP%3E*%20Target%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20internal_FLASH%20(debug%20mode%2C%20release%20mode)%3C%2FP%3E%3CP%3E*%20EVB%20connection%3A%26nbsp%3B%20User%20LED%201%20connected%20to%20A0%20(P8.0)%2C%3C%2FP%3E%3CP%3E*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20User%20switch%20SW1%20connected%20to%20A1%20(P8.1)%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20------------------------------------------------------------------------------%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E********************************************************************************%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1112437%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3C%2FP%3E%3CP%3E*%20Detailed%20Description%3A%3C%2FP%3E%3CP%3E*%20This%20example%20shows%2C%20how%20to%20use%20interrupt%20hardware%20vector%20mode.%20In%20the%20example%3C%2FP%3E%3CP%3E*%20PIT0%20interrupt%20and%20external%20interrupt%20source%201%20are%20implemented.%20PIT%20interrupt%3C%2FP%3E%3CP%3E*%20toggle%20LED%20every%20second%2C%20external%20interrupt%20causes%20IVOR1%20exception.%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20This%20example%20also%20shows%2C%20how%20to%20use%20exceptions%2C%20while%20HW%20vector%20mode%20is%20used.%3C%2FP%3E%3CP%3E*%20After%20SW1%20button%20is%20pressed%2C%20uninitialized%20RAM%20is%20read%20and%20IVOR1%20exception%20is%3C%2FP%3E%3CP%3E*%20reached.%20In%20IVOR1%2C%20only%20endless%20loop%20is%20implemented%20and%20micro%20has%20to%20be%20reset%3C%2FP%3E%3CP%3E*%20externally%20if%20you%20want%20to%20get%20out%20from%20this%20loop.%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20For%20correct%20HW%20vector%20mode%20setup%2C%20following%20files%20was%20added%20to%20the%20project%3A%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%26nbsp%3B%20-%20exceptions.s%3C%2FP%3E%3CP%3E*%26nbsp%3B%20-%20handlers_vle.s%3C%2FP%3E%3CP%3E*%26nbsp%3B%20-%20HW_vector.c%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20Following%20files%20was%20modified%20(all%20changes%20are%20marked%20by%20comment)%3A%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%26nbsp%3B%20-%20mem.ld%3C%2FP%3E%3CP%3E*%26nbsp%3B%20-%20sections.ld%3C%2FP%3E%3CP%3E*%26nbsp%3B%20-%20Vector.c%3C%2FP%3E%3CP%3E*%26nbsp%3B%20-%20MPC57xx__Interrupt_Init.c%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%26nbsp%3B%20Following%20files%20was%20removed%20from%20project%20(files%20are%20still%20place%20in%20project%2C%20but%3C%2FP%3E%3CP%3E*%26nbsp%3B%20not%20compiled%20and%20linked)%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%26nbsp%3B%20-%20intc_sw_handlers.S%3C%2FP%3E%3CP%3E*%26nbsp%3B%20-%20intc_SW_mode_isr_vectors_MPC5744P.c%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20Test%20HW%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20X-MPC5744P-144DC%2C%20MPC57xx%20motherboard%3C%2FP%3E%3CP%3E*%20MCU%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20PPC5744PFMLQ8%200N15P%3C%2FP%3E%3CP%3E*%20Fsys%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20200%20MHz%3C%2FP%3E%3CP%3E*%20Debugger%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Lauterbach%20Trace32%3C%2FP%3E%3CP%3E*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20PeMicro%20USB-ML-PPCNEXUS%3C%2FP%3E%3CP%3E*%20Target%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20internal_FLASH%20(debug%20mode%2C%20release%20mode)%3C%2FP%3E%3CP%3E*%20EVB%20connection%3A%26nbsp%3B%20User%20LED%201%20connected%20to%20A0%20(P8.0)%2C%3C%2FP%3E%3CP%3E*%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20User%20switch%20SW1%20connected%20to%20A1%20(P8.1)%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E*%20------------------------------------------------------------------------------%3C%2FP%3E%3CP%3E*%3C%2FP%3E%3CP%3E********************************************************************************%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1112437%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EGeneral%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
‎06-28-2016 07:08 AM
Updated by: