pierremolinaro / acan2517FD

Distribution of Arduino driver for MCP2517FD CAN controller (CANFD mode)
MIT License
64 stars 14 forks source link

Can't loopback new library with an arduino mega #7

Closed E-nodev closed 2 years ago

E-nodev commented 4 years ago

Hello, I tried the sample test LoopBackDemoArduinoUno, before the new release it's ok, But now i've a Configuration error 0x1 and i can't received anything. Send return no error. Can you help me ?

Thank you

pierremolinaro commented 4 years ago

Hello,

Error 0x1 (kRequestedConfigurationModeTimeOut) means that MCP2517FD cannot enter in configuration mode in 2 ms.

I have noticed that this error sometimes comes after a new sketch is uploaded. I have solved by power off and then power the Arduino board and the MCP2517FD.

I just had the loopbackdemo sketch executed on my teensy, it works without any problems.

Does this error occur always ?

Pierre

Le 23 sept. 2019 à 11:35, E-nodev notifications@github.com a écrit :

Hello, I tried the sample test LoopBackDemoArduinoUno, before the new release it's ok, But now i've a Configuration error 0x1 and i can't received anything. Send return no error. Can you help me ?

Thank you

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pierremolinaro/acan2517FD/issues/7?email_source=notifications&email_token=AEWKZVCCDQYXTXL4WEKZJBDQLCEWVA5CNFSM4IZIQA7KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HM7PH3A, or mute the thread https://github.com/notifications/unsubscribe-auth/AEWKZVHOMGZ4UP7JYQBMCZDQLCEWVANCNFSM4IZIQA7A.

E-nodev commented 4 years ago

Hello, The error occur always after 5 try to unplug the board and plug. It's ok with your previours library, but with the new i have the same error code.

Thank you for your help and your reactivity.

Fred

tizianotosco commented 4 years ago

Hello, I tried the LoopBackDemoArduinoUno sample test with ArduinoMega but it doesn't work. Are there any particular configs to modify? Can you help me? Thank you

E-nodev commented 4 years ago

It works with a old version : https://www.arduinolibraries.info/libraries/acan2517-fd I don't remember which version sorry :/

Good luck

mpfarr commented 4 years ago

Hi, i just started playing with acan2517-fd on Teensy 3.6.

I face an undocumented error:

Using pin #0 for MOSI: yes Using pin #1 for MISO: yes Using pin #32 for SCK: yes Configure ACAN2517FD MCP2517FD RAM Usage: 2016 bytes OSC 61 Configuration error 0x20000 Send failure Send failure

Any hints?

Thank you.

pierremolinaro commented 4 years ago

Hello,

The 0x20000 error is documented (see table 7 page 39), it is kX10PLLNotReadyWithin1MS. What is the frequency of the quartz that drives the MCP2517FD ? For using ACAN2517FDSettings::OSC_4MHz10xPLL as parameter of the begin method, you should have a 4 MHz quartz.

Regards,

Pierre Molinaro

Le 10 déc. 2019 à 15:17, mpfarr notifications@github.com a écrit :

Hi, i just started playing with acan2517-fd on Teensy 3.6.

I face an undocumented error:

Using pin #0 for MOSI: yes Using pin #1 https://github.com/pierremolinaro/acan2517FD/issues/1 for MISO: yes Using pin #32 for SCK: yes Configure ACAN2517FD MCP2517FD RAM Usage: 2016 bytes OSC 61 Configuration error 0x20000 Send failure Send failure

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pierremolinaro/acan2517FD/issues/7?email_source=notifications&email_token=AEWKZVEEKLJ7ICSOKR6OUULQX6QIRA5CNFSM4IZIQA7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGPMFUY#issuecomment-564052691, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEWKZVAOJ2MMSS3OAD7DLOTQX6QIRANCNFSM4IZIQA7A.

mpfarr commented 4 years ago

Hi, i tried the LoopBackDemoArduinoUno on Adruino Uno with MCP2518FD click. I always get configuration error 0x1. I already double checked MOSI/MOSI/SCK/SS.

Any suggestion with Arduino uno?

br, Matthias

mpfarr commented 4 years ago

problem solved: logic level of MCP2518FD click board was wrong.

sorry