• AVR Freaks

HarmonyV2.06 CAN PIC32MZ Example = works

Author
Paul PortSol
Super Member
  • Total Posts : 563
  • Reward points : 0
  • Joined: 2015/07/03 11:52:03
  • Location: Newfoundland, Canada
  • Status: offline
2020/01/24 12:34:06 (permalink)
4 (1)

HarmonyV2.06 CAN PIC32MZ Example = works

Attached is a simplified CAN example for PIC32MZ in HarmonyV2.06.
- MTM_Hv206_CANdV12_NonIRQ=OK_Minimized.zip
- 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)
 
Paul
 
post edited by Paul PortSol - 2020/01/27 08:48:29
#1

1 Reply Related Threads

    lelsteph
    Super Member
    • Total Posts : 405
    • Reward points : 0
    • Joined: 2008/09/17 05:10:00
    • Location: 0
    • Status: offline
    Re: HarmonyV2.06 CAN PIC32MZ Example = works 2020/01/26 00:29:47 (permalink)
    0
    Thank you Paul, Stephane
    #2
    Jump to:
    © 2020 APG vNext Commercial Version 4.5