HarmonyV2.06 CAN PIC32MZ Example = works
Attached is a simplified CAN example for PIC32MZ in HarmonyV2.06.
- It has a couple of patches versus the default MHC generated example code
- doesn't block on powerup
- some diag printf on UART
- Removed CAN ID filter, so this project can be used as a simple CAN analyser (is displays packets, but not bus errors)
- To fully see what I did use a tool like beyond compare to compare this project to one generated by MHC when you select to generate example CAN code under App.
This version runs as non-IRQ (relies on CAN module to gather the data). If someone makes a CAN IRQ version please share.
Used with both (see doc in project for links and setup notes)
- inexpensive Seeed CAN Analyser (worked fine)
- Microchip CAN Analyser
(Just posting because later someone asks what you did to make it work and I can seldom remember the details)
post edited by Paul PortSol - 2020/01/27 08:48:29