Welcome, Guest

Author Topic: canbus on PIC32-EMZ64  (Read 147 times)

vicoET

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
canbus on PIC32-EMZ64
« on: September 06, 2019, 02:42:06 PM »
hello,
 i'm quite newbie on this. Can you please share some example or code or library for CANBUS in PIC32-EMZ64 board? In harmony 3 i don't see any reference to CAN
thank you in advance

LubOlimex

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1984
  • Karma: +50/-3
Re: canbus on PIC32-EMZ64
« Reply #1 on: September 10, 2019, 08:33:09 AM »
Not sure about harmony 3 but in harmony 2 these were located in \\apps\examples\peripheral\can\echo_send - maybe the directory structure is the same. Maybe test with harmony 2.

We lack a CAN example since we struggled to get it working ourselves back in the day and haven't recently checked what is the state of the software provided by Microchip. There are many forum threads in the official Microchip forums on the subject, search for "canbus pic32mz".
Technical support and documentation manager at Olimex

vicoET

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: canbus on PIC32-EMZ64
« Reply #2 on: September 11, 2019, 08:16:36 PM »
hello i see the example "echo_send" and tried to make it compile with EMZ64 configuration. But it seems it gets stuck after a few.
There are many threads on it on Microchip forums but information are often confused.
Too bad that Olimex didn't provide any example or application on CAN.

Any further help would be appreciated.

thank you

KeesZagers

  • Full Member
  • ***
  • Posts: 177
  • Karma: +2/-0
Re: canbus on PIC32-EMZ64
« Reply #3 on: September 13, 2019, 01:14:18 PM »
Two earlier discussions have been started by me in the past:

https://www.olimex.com/forum/index.php?topic=5144.0

and

https://www.olimex.com/forum/index.php?topic=5505.0

In fact I got some CAN initialisation up and running. As the CAN module in the MZ controllers is the same as in the MX controllers, communication should not be a big issue further on. For me however this module did not make any sense because it had no real further I/O available. So I still use the Duinomite and PIC32-T795 modules. My advise to you: forget Harmony and try to read and write directly into the CAN registers.