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

Using more than 2 TPDO #437

Closed
Alrick-gr opened this issue Apr 7, 2023 · 4 comments
Closed

Using more than 2 TPDO #437

Alrick-gr opened this issue Apr 7, 2023 · 4 comments

Comments

@Alrick-gr
Copy link

Hello,
When I m using more thant 2 TPDOs (configured with the OD_editor), the 2 first TPDOs are sent and then, nothing happens.
In CO_CANsend I have the error CO_ERROR_TX_OVERFLOW. If i only use 2 TPDOs, it works perfectly.

When i put a breakpoint before CO_process_TPDO, then it works and send all TPDOS, but the device will no longer receive any commands.
image
image
image
Here you can see the configuration in the OD_editor. If i check "invalid" for one TPDO it works fine

@CANopenNode
Copy link
Owner

Probably there is a problem with the driver.

@Ashenoneq
Copy link

Ashenoneq commented May 12, 2023

Hi!
I have the same issue. I want to send 5 TPDO, and the TPDO1~TPDO4 were sent successfully,but the TPDO5 is not being sent. When I put a breakpoint in CO_TPDOsend(TPDO) .It running normal.When I put a printf or delay before this function, it's also running normal.By the way, I reference to this author's code: https://github.com/CANopenNode/CanOpenSTM32
This is my issue detail:https://stackoverflow.com/questions/76226213/the-problem-of-sending-more-than-4-tpdo-using-canopennode

@Alrick-gr
Copy link
Author

@Ashenoneq I replied to you on this issue

@Alrick-gr
Copy link
Author

I forgot to update the issue but i solved my problem by changing the size of the heap and stack.
Also i changed the timing in the function CO_process_TPDO.
And now it works perfectly.

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

3 participants