Trenz Electronic GmbH Support Forum

Trenz Electronic Products => Evaluation Boards => EDDP-EDPS Support => Topic started by: Jason bourne on July 15, 2022, 11:14:39 AM

Title: How to initialize the EDDP by BTN3
Post by: Jason bourne on July 15, 2022, 11:14:39 AM
When I use IIOT-EDDP, I want to see how the motor is initialized.
However, I only found that BTN3 was used to achieve the motor's return to 0, but I did not find the program to achieve it.
May I ask which module or file is used to realize the return to 0 operation?
Looking forward to your answer.
Title: Re: How to initialize the EDDP by BTN3
Post by: Andrei Errapart on November 30, 2022, 12:43:07 PM
Hi Jason Bourne,


By now it is definitely too late.

In this program, the motor initialization code is a copy of the one found in "focserver".

You can send me a message to request the sources. There is nothing new when compared to the "focserver".


best regards,
Andrei
Title: Re: How to initialize the EDDP by BTN3
Post by: Jason bourne on December 01, 2022, 09:51:45 AM
Sir, thank you very much for taking time out of your busy schedule to reply me. Now I have realized the initialization of FOC by my own way. I first guided the motor to rotate through a virtual electrical Angle to find the place where I of the encoder is located. Then, by setting the electrical Angle to 0, electrode A is found and the Angle deviation is calculated. :-*
Title: Re: How to initialize the EDDP by BTN3
Post by: Jason bourne on December 01, 2022, 09:58:23 AM
At the same time, I hope you can provide the project of implementing FOC only through FPGA, because I am a student who only learns FPGA, and I have not learned Linux embedded, so I feel very confused when I look at the code, I hope you can provide the implementation of vivado. :'(
Yours sincerely,
Jason
Title: Re: How to initialize the EDDP by BTN3
Post by: Andrei Errapart on December 01, 2022, 11:37:49 AM
Hi Jason Bourne,


This version of EDDP control code is also running on a CPU, but it might be easier to understand than the Linux one. Please find it attached to this post.


best regards,
Andrei
Title: Re: How to initialize the EDDP by BTN3
Post by: Jason bourne on December 02, 2022, 03:58:05 AM
Hi Andrei Errapart,
Thank you for providing me with the document, which broadens my thinking. Unfortunately, I opened the vivado project through the file you provided to view the PL-side design (vivado's block design). I don't know if you didn't provide the Tcl boot file enough to restore the vivado project. I'm looking forward to seeing the design on the PL side.
Yours sincerely,
Jason
Title: Re: How to initialize the EDDP by BTN3
Post by: Andrei Errapart on December 02, 2022, 10:06:33 AM
Hi Jason Bourne,


There are several projects demonstrating working with the EDDP.

Assuming you are trying to open the project in the folder "IIoT-EDDP/HLS/ARTY_Z7_FULL", you have to use Vivado 2017.1 for that. In this project, FOC is implemented as multiple IP core blocks developed in HLS. When writing one of the previous answers, I had Block Design in this project opened for the reference.

For the project in the folder "SDSoC", Vivado SDSoC 2017.1 is required. In this project, FOC is implemented as a single HLS IP core in a SDSoC project. The source for this can be found in the file "foc.cpp". In the block design of the SDSoC project, the internals of this IP core are not visible.

In the folder "Vitis", one can find Xilinx Vitis project. The FOC is again implemented as a single HLS IP core. This project was implemented by our Xilinx partner, thus I have little experience with it. But you can give it a try.

I am not sure if it helps. If you still are having problems, please supply the Vivado version and the project you are trying to open.

If you have further questions, don't hesitate to ask.


Best regards,
Andrei