Example S32K344 FlexCAN_Ip TX/RX/EnhanceRXFIFO DMA test S32DS3.5 RTD400

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

Example S32K344 FlexCAN_Ip TX/RX/EnhanceRXFIFO DMA test S32DS3.5 RTD400

Example S32K344 FlexCAN_Ip TX/RX/EnhanceRXFIFO DMA test S32DS3.5 RTD400

The purpose of this demo application is to show you the usage of the FlexCAN module
configured to use CAN FD and Enhance RXFIFO using the S32 RTD API.
- This demo application requires two boards, or single board connected with CAN tool.
- CAN FD is enabled with bitrate 500/2000 kbps
- MB0 is configured to transmit either std. or ext ID
- MB1 is configured to receive ext ID 0xFACE and MB2 to receive std ID 0x1
- Enhanced RXFIFO is enabled and 3 enhanced RXFIFO filter elements (filter + mask scheme) are defined
ext ID 0xABCD with mask 0x1FFFFFFF
std ID 0x123 with mask 0x7FF
std ID 0x456 with mask 0x7FF
- DMA is used to read enhanced RXFIFO, watermark is set to 5
- Callback function is used as well to handle TX and RX process in MBs and
Enhanced RXFIFO after DMA complete 5 reading of RXFIFO

 ------------------------------------------------------------------------------
 Test HW: S32K3444EVB-Q172
 MCU: PS32K344EHVPBS 1P55A
 Compiler: S32DS.ARM.3.5
 SDK release: S32K3_RTD_4_0_0_D2311
 Debugger: Lauterbach
 Target: internal_FLASH

Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-2015832%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20S32K344%20FlexCAN_Ip%20TX%2FRX%2FEnhanceRXFIFO%20DMA%20test%20S32DS3.5%20RTD400%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2015832%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%0A%3CP%3EThe%20purpose%20of%20this%20demo%20application%20is%20to%20show%20you%20the%20usage%20of%20the%20FlexCAN%20module%3CBR%20%2F%3Econfigured%20to%20use%20CAN%20FD%20and%20Enhance%20RXFIFO%20using%20the%20S32%20RTD%20API.%3CBR%20%2F%3E-%20This%20demo%20application%20requires%20two%20boards%2C%20or%20single%20board%20connected%20with%20CAN%20tool.%3CBR%20%2F%3E-%20CAN%20FD%20is%20enabled%20with%20bitrate%20500%2F2000%20kbps%3CBR%20%2F%3E-%20MB0%20is%20configured%20to%20transmit%20either%20std.%20or%20ext%20ID%3CBR%20%2F%3E-%20MB1%20is%20configured%20to%20receive%20ext%20ID%200xFACE%20and%20MB2%20to%20receive%20std%20ID%200x1%3CBR%20%2F%3E-%20Enhanced%20RXFIFO%20is%20enabled%20and%203%20enhanced%20RXFIFO%20filter%20elements%20(filter%20%2B%20mask%20scheme)%20are%20defined%3CBR%20%2F%3Eext%20ID%200xABCD%20with%20mask%200x1FFFFFFF%3CBR%20%2F%3Estd%20ID%200x123%20with%20mask%200x7FF%3CBR%20%2F%3Estd%20ID%200x456%20with%20mask%200x7FF%3CBR%20%2F%3E-%20DMA%20is%20used%20to%20read%20enhanced%20RXFIFO%2C%20watermark%20is%20set%20to%205%3CBR%20%2F%3E-%20Callback%20function%20is%20used%20as%20well%20to%20handle%20TX%20and%20RX%20process%20in%20MBs%20and%3CBR%20%2F%3EEnhanced%20RXFIFO%20after%20DMA%20complete%205%20reading%20of%20RXFIFO%3CBR%20%2F%3E%3CBR%20%2F%3E%26nbsp%3B------------------------------------------------------------------------------%3CBR%20%2F%3E%26nbsp%3BTest%20HW%3A%20S32K3444EVB-Q172%3CBR%20%2F%3E%26nbsp%3BMCU%3A%20PS32K344EHVPBS%201P55A%3CBR%20%2F%3E%26nbsp%3BCompiler%3A%20S32DS.ARM.3.5%3CBR%20%2F%3E%26nbsp%3BSDK%20release%3A%20S32K3_RTD_4_0_0_D2311%3CBR%20%2F%3E%26nbsp%3BDebugger%3A%20Lauterbach%3CBR%20%2F%3E%26nbsp%3BTarget%3A%20internal_FLASH%3C%2FP%3E%0A%3C%2FLINGO-BODY%3E
100% helpful (3/3)
Version history
Last update:
‎12-17-2024 11:23 PM
Updated by: