-
Notifications
You must be signed in to change notification settings - Fork 56
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
DIG_process in interrupt #4
Comments
Hi, have a look at https://rt-labs.com/refman/ethercat-sdk_refman.pdf page 38:
Have you done this? |
What you mentioned is about |
Ah, I had not tried this yet. I just ported some example code to STM32 and have not looked into it more. |
Hey, have you figured it out that you are closing issue? |
I think the original problem is the interrupt priority. All ESC relative interrupts should be in the same priority, if not, the ESC_write and ESC_read will be interrupted. However, I don't remember too much since there are tons of new code after this issue. |
I meet this problem again, a clearer description should be: Here is some behavior:
I am very confused, not sure if you can reproduce this problem. |
Hello, good you were able to localize problem. I have some STM32F401 board somewhere, and spare AX58100 breakout. If you can publish your firmware I should be able to reproduce your setup (and problem) First potential problem I see: looks like you are running mixed mode code but using it in interrupt operation. Another possibility is wrong interrupt priority. My example had equal priority and subpriority on SYNC and PDI IRQ EXTI, I think this should be OK - test with master in higher frequency should tell. |
Putting I don't have |
Have a look at tiesc_am335x Manual PDF used to be available, now you need to log in on rt-labs page |
That is what I mean, whether the
inside the main loop or not does not affect the result. The problem I describe still remains. |
I tried SOEM I will now try with What HW are you using for ethercat master, by the way? |
I am using a ThinkPad laptop for ethercat master. I can share some code privately. However, my newest code is running on H755 (AX58400), can you port it to f401 or let me find some old code (one year ago)? |
Your code and documents are awesome! Thank you for your sharing.
Following your SOES_CIA402_AX58100 code, I wrote my code using CubeMX(HAL) and successfully ran it in NUCLEO-F401RE and AX58100-REF-1 without CIA402 applications.
After success, I try to call the DIG_process in the interrupt callback. The code is shown below:
However, after getting into the
Operational
state, the ESI stops sending PDI to interrupt MCU. As a result, MCU no longer processes the output.Have you tried what I mentioned above? Why do we need to process the interrupt in the
while()
?The text was updated successfully, but these errors were encountered: