News:

Attention: For security reasons,please choose a user name *different* from your login name.
Also make sure to choose a secure password and change it regularly.

Main Menu

Vitis SCU_TE0712 application

Started by ame, July 21, 2022, 07:54:03 PM

Previous topic - Next topic

ame

Hello,

I generated a TE0712 reference design (2021.1) but with the command "TE::sw_run_vitis -all", it looks only "hello_te0712" and "spi_bootloader" the "scu_te0712" application is not automatically created.

My main problem is when I run "Hello_TE0712" application I obtain "Cannot stop MicroBlaze, Processor held in reset".
I tried to create myself  the "scu_te0712" app by choosing "microblaze_mcs_0" as domain name but I obtained the same error.

I need to program 100MHz clk from SI5380. The bitstream is loaded (I can open the vio with HW manager).
Do you know how to create an application running on the mcs_microblaze (to load SI5380 from I2C)?
Is there a reference design only loading SI5380 from I2C)?

The error is the same as this thread : https://forum.trenz-electronic.de/index.php?topic=1386.0

Thanks for your help.
Regards

Waldi3141

Hi ame,

yes scu_te0712 is not automatically built, thanks for pointing that out, we will fix that with upcoming releases.

My guess to your problem is, that while you want to run your hello world application, the FPGA is still being configured. Could you try programming the FPGA with the bitstream in vivado manually and then run your application from Vitis like descried in this tutorial -> Figure 12 + 13

https://wiki.trenz-electronic.de/pages/viewpage.action?pageId=157219241

It should run your app without reconfiguring the system.

In the reference design CLK0 is 100MHz.

The program that configures the SI5338 exactly is scu_te0712.elf. Source files are in ...\test_board\sw_lib\sw_apps\scu_te0712\src.
If you rebuild this app(at the moment manually) you can replace the old scu_te0712.elf in ...\test_board\firmware\microblaze_mcs_0 with the new one(keep the same name) and generate bitstream again.
It will be linked to the microblaze_mcs which configures the Si5338 at startup.

To adjust the Si5338-clocks there is a tiny guide here: https://wiki.trenz-electronic.de/display/PD/Si5338

I will have a more detailed look into that soon.

hope that helps

Waldemar H.




ame

QuoteMy guess to your problem is, that while you want to run your hello world application, the FPGA is still being configured. Could you try programming the FPGA with the bitstream in vivado manually and then run your application from Vitis like descried in this tutorial -> Figure 12 + 13

https://wiki.trenz-electronic.de/pages/viewpage.action?pageId=157219241

It should run your app without reconfiguring the system.

Thank you very much. App works great now :).
I remember now it's a classic trap with µBlaze but it's been more than five years I didn't use µBlaze.

QuoteIn the reference design CLK0 is 100MHz.
Yes but I need 100MHz to feed MGT_CLK to run aurora link.

QuoteThe program that configures the SI5338 exactly is scu_te0712.elf. Source files are in ...\test_board\sw_lib\sw_apps\scu_te0712\src.
If you rebuild this app(at the moment manually) you can replace the old scu_te0712.elf in ...\test_board\firmware\microblaze_mcs_0 with the new one(keep the same name) and generate bitstream again.
It will be linked to the microblaze_mcs which configures the Si5338 at startup.
I did as you said and it run smooth.

Thank you again for your help.
It saved me a lot of time.

Regards.