Example MPC5746R FlexCAN_with_interrupts S32DS_1.1

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

Example MPC5746R FlexCAN_with_interrupts S32DS_1.1

Example MPC5746R FlexCAN_with_interrupts S32DS_1.1

********************************************************************************
* Detailed Description:
* Application performs basic initialization, setup PLL to maximum allowed freq.,
* setup clock for peripherals,
*
* Initializes the MCU including the FlexCAN peripherals.
* Configures the FlexCAN to transmit and receive a CAN message.
*
* In this config, CAN_0 transmits a message. CAN_2 receives the message.
* CAN_0 MB0 is configured to send data.
*
* CAN_2 MB0 is configured to receive a message, interrupt is used.
*
*
* ------------------------------------------------------------------------------
* Test HW:         MPC5746R-176LQFP, MPC57xx Motherboard
* MCU:             PPC5743R 1N83M
* Fsys:            PLL0 200MHz
* Debugger:        Lauterbach Trace32
*                  PeMicro USB-ML-PPCNEXUS
* Target:          internal_FLASH (debug mode, debug_ram mode)
* EVB connection:
*
* Jumpers j37 and j38 on motherboard must be in position 2-3
*
* Connect CAN P5.2 to CAN2 P4.2 on motherboard
* Connect CAN P5.1 to CAN2 P4.1 on motherboard
*
*
********************************************************************************
Revision History:
Version  Date         Author              Description of Changes
1.0      Jun-07-2017  Martin Kovar      Initial version

Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1113565%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20MPC5746R%20FlexCAN_with_interrupts%20S32DS_1.1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1113565%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3CBR%20%2F%3E*%20Detailed%20Description%3A%3CBR%20%2F%3E*%20Application%20performs%20basic%20initialization%2C%20setup%20PLL%20to%20maximum%20allowed%20freq.%2C%3CBR%20%2F%3E*%20setup%20clock%20for%20peripherals%2C%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20Initializes%20the%20MCU%20including%20the%20FlexCAN%20peripherals.%3CBR%20%2F%3E*%20Configures%20the%20FlexCAN%20to%20transmit%20and%20receive%20a%20CAN%20message.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20In%20this%20config%2C%20CAN_0%20transmits%20a%20message.%20CAN_2%20receives%20the%20message.%3CBR%20%2F%3E*%20CAN_0%20MB0%20is%20configured%20to%20send%20data.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20CAN_2%20MB0%20is%20configured%20to%20receive%20a%20message%2C%20interrupt%20is%20used.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20------------------------------------------------------------------------------%3CBR%20%2F%3E*%20Test%20HW%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20MPC5746R-176LQFP%2C%20MPC57xx%20Motherboard%3CBR%20%2F%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%20PPC5743R%201N83M%3CBR%20%2F%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%20PLL0%20200MHz%3CBR%20%2F%3E*%20Debugger%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Lauterbach%20Trace32%3CBR%20%2F%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%3CBR%20%2F%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%20debug_ram%20mode)%3CBR%20%2F%3E*%20EVB%20connection%3A%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20Jumpers%20j37%20and%20j38%20on%20motherboard%20must%20be%20in%20position%202-3%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20Connect%20CAN%20P5.2%20to%20CAN2%20P4.2%20on%20motherboard%3CBR%20%2F%3E*%20Connect%20CAN%20P5.1%20to%20CAN2%20P4.1%20on%20motherboard%3CBR%20%2F%3E*%3CBR%20%2F%3E*%3CBR%20%2F%3E********************************************************************************%3CBR%20%2F%3ERevision%20History%3A%3CBR%20%2F%3EVersion%26nbsp%3B%20Date%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Author%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3BDescription%20of%20Changes%3CBR%20%2F%3E1.0%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Jun-07-2017%26nbsp%3B%20Martin%20Kovar%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3BInitial%20version%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1113565%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E********************************************************************************%3CBR%20%2F%3E*%20Detailed%20Description%3A%3CBR%20%2F%3E*%20Application%20performs%20basic%20initialization%2C%20setup%20PLL%20to%20maximum%20allowed%20freq.%2C%3CBR%20%2F%3E*%20setup%20clock%20for%20peripherals%2C%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20Initializes%20the%20MCU%20including%20the%20FlexCAN%20peripherals.%3CBR%20%2F%3E*%20Configures%20the%20FlexCAN%20to%20transmit%20and%20receive%20a%20CAN%20message.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20In%20this%20config%2C%20CAN_0%20transmits%20a%20message.%20CAN_2%20receives%20the%20message.%3CBR%20%2F%3E*%20CAN_0%20MB0%20is%20configured%20to%20send%20data.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20CAN_2%20MB0%20is%20configured%20to%20receive%20a%20message%2C%20interrupt%20is%20used.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20------------------------------------------------------------------------------%3CBR%20%2F%3E*%20Test%20HW%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20MPC5746R-176LQFP%2C%20MPC57xx%20Motherboard%3CBR%20%2F%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%20PPC5743R%201N83M%3CBR%20%2F%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%20PLL0%20200MHz%3CBR%20%2F%3E*%20Debugger%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Lauterbach%20Trace32%3CBR%20%2F%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%3CBR%20%2F%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%20debug_ram%20mode)%3CBR%20%2F%3E*%20EVB%20connection%3A%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20Jumpers%20j37%20and%20j38%20on%20motherboard%20must%20be%20in%20position%202-3%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20Connect%20CAN%20P5.2%20to%20CAN2%20P4.2%20on%20motherboard%3CBR%20%2F%3E*%20Connect%20CAN%20P5.1%20to%20CAN2%20P4.1%20on%20motherboard%3CBR%20%2F%3E*%3CBR%20%2F%3E*%3CBR%20%2F%3E********************************************************************************%3CBR%20%2F%3ERevision%20History%3A%3CBR%20%2F%3EVersion%26nbsp%3B%20Date%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Author%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3BDescription%20of%20Changes%3CBR%20%2F%3E1.0%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Jun-07-2017%26nbsp%3B%20Martin%20Kovar%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3BInitial%20version%3C%2FP%3E%3C%2FLINGO-TEASER%3E
No ratings
Version history
Last update:
‎06-07-2017 04:19 AM
Updated by: