Example MPC5744P 1b+2b_FlexCAN_ECC_error_injection GHS714

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

Example MPC5744P 1b+2b_FlexCAN_ECC_error_injection GHS714

Example MPC5744P 1b+2b_FlexCAN_ECC_error_injection GHS714

********************************************************************************
* Detailed Description:
* Purpose of the example is to show how to simulate Multi-bit or Single-bit ECC
* error in FlexCAN RAM (user must choose it in the option at the end of
* main function).
* Example configures FlexCAN module, initializes ECC for all FlexCAN RAMs, then
* it injects ECC error to the Message Buffer 9.
* When corrupted data is accessed the IVOR1 exception handler is called in case
* of multi-bit ECC error (IVOR1 exception occurs) and FCCU_Alarm_Interrupt
* handler is called in case of single-bit ECC error (FCCU interrupt occurs).
* Both function calls MEMU handler.
* Reported FlexCAN ECC error address is corrected according RM, section 7.12.2.3
* 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: MPC57xx_Motherboard + MPC5744P-144DC
* MCU: PPC5744PFMLQ8,0N15P,QQAA1515N, Rev2.1B
* Fsys: 200 MHz PLL with 40 MHz crystal reference
* Debugger: Lauterbach Trace32
* Target: internal_FLASH, RAM
* Terminal: 19200-8-no parity-1 stop bit-no flow control
* EVB connection: default
********************************************************************************
Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1325527%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20MPC5744P%201b%2B2b_FlexCAN_ECC_error_injection%20GHS714%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1325527%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%0A%3CPRE%3E********************************************************************************%3CBR%20%2F%3E*%20Detailed%20Description%3A%3CBR%20%2F%3E*%20Purpose%20of%20the%20example%20is%20to%20show%20how%20to%20simulate%20Multi-bit%20or%20Single-bit%20ECC%3CBR%20%2F%3E*%20error%20in%20FlexCAN%20RAM%20(user%20must%20choose%20it%20in%20the%20option%20at%20the%20end%20of%3CBR%20%2F%3E*%20main%20function).%3CBR%20%2F%3E*%20Example%20configures%20FlexCAN%20module%2C%20initializes%20ECC%20for%20all%20FlexCAN%20RAMs%2C%20then%20%3CBR%20%2F%3E*%20it%20injects%20ECC%20error%20to%20the%20Message%20Buffer%209.%20%3CBR%20%2F%3E*%20When%20corrupted%20data%20is%20accessed%20the%20IVOR1%20exception%20handler%20is%20called%20in%20case%3CBR%20%2F%3E*%20of%20multi-bit%20ECC%20error%20(IVOR1%20exception%20occurs)%20and%20FCCU_Alarm_Interrupt%3CBR%20%2F%3E*%20handler%20is%20called%20in%20case%20of%20single-bit%20ECC%20error%20(FCCU%20interrupt%20occurs).%3CBR%20%2F%3E*%20Both%20function%20calls%20MEMU%20handler.%3CBR%20%2F%3E*%20Reported%20FlexCAN%20ECC%20error%20address%20is%20corrected%20according%20RM%2C%20section%207.12.2.3%3CBR%20%2F%3E*%20The%20example%20displays%20notices%20in%20the%20terminal%20window%20(connector%20J19%20on%3CBR%20%2F%3E*%20MPC57xx_Motherboard)(19200-8-no%20parity-1%20stop%20bit-no%20flow%20control%20on%20eSCI_A).%3CBR%20%2F%3E*%20No%20other%20external%20connection%20is%20required.%3CBR%20%2F%3E*%20------------------------------------------------------------------------------%3CBR%20%2F%3E*%20Test%20HW%3A%20MPC57xx_Motherboard%20%2B%20MPC5744P-144DC%3CBR%20%2F%3E*%20MCU%3A%20PPC5744PFMLQ8%2C0N15P%2CQQAA1515N%2C%20Rev2.1B%3CBR%20%2F%3E*%20Fsys%3A%20200%20MHz%20PLL%20with%2040%20MHz%20crystal%20reference%3CBR%20%2F%3E*%20Debugger%3A%20Lauterbach%20Trace32%3CBR%20%2F%3E*%20Target%3A%20internal_FLASH%2C%20RAM%3CBR%20%2F%3E*%20Terminal%3A%2019200-8-no%20parity-1%20stop%20bit-no%20flow%20control%3CBR%20%2F%3E*%20EVB%20connection%3A%20default%3CBR%20%2F%3E********************************************************************************%3C%2FPRE%3E%0A%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎08-18-2021 07:58 AM
Updated by: