Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACAN2515::begin() hangs if it is called the 3rd time. #4

Open
qwec01 opened this issue Jan 16, 2019 · 1 comment
Open

ACAN2515::begin() hangs if it is called the 3rd time. #4

qwec01 opened this issue Jan 16, 2019 · 1 comment

Comments

@qwec01
Copy link

qwec01 commented Jan 16, 2019

In some caces, I have to change the filters and masks of one of my MCP2515s (yes I have 2, and they have to work together), after that, I have to recall the "begin" method.
In the LoopBackDemo, when I tried to call begin again with "settings.mReceiveBufferSize = 31;" (Just for testing), the Arduino hangs.
Then, I tried setting "settings.mReceiveBufferSize = 8;", and discovered that I can call begin twice, it hangs at the 3rd call.
So I think when begin is called, this driver allocates the recieve buffer to a new space of RAM, not using the old space, and this filled the RAM up.
Maybe I'm wrong, I'm not familiar with C++.
Any solutions? Or I just missed something?

@pierremolinaro
Copy link
Owner

pierremolinaro commented Jan 16, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants