02-11-2016 12:47 AM
Hi,
I have created a sample FPGA code and downloaded in myRIO. I expect it would have erased the factory shipped FPGA functionality which included all interpretation of digital input/output (DIO) lines as PWMs, universal asynchronous receivers/transmitters (UARTs), encoder inputs, I2C, and SPI. Is there a way to put back that factory shipped code in FPGA? Where I can get that code?
Thanks,
Ajay.
Solved! Go to Solution.
02-11-2016 05:11 AM
Hello Ajay,
When you run your host code, which calls FPGA VI (opens its reference), it is automatically deploying the FPGA code to the hardware. If you will run after some example code, coming with myRIO drivers, it will deploy default FPGA code included.
To find the defalt FPGA code, which comes with the drivers, create new project from Create Project -> Templates -> myRIO and select myRIO Custom FPGA Project, you will find FPGA Main Default.vi inside.
Just note that UART functiality is not implemented on the FPGA, but instead is using functionality included in the Zynq processor. So you still have UART fucntionality, even with your custom FPGA code running.
Thanks,
Arev
02-11-2016 10:25 PM
As an added note, every one of the express VIs that you use on the myRIO to interact with the default I/O look to see if the fpga is using the default personality and will run it if it is not.
02-12-2016 12:21 AM
02-26-2016 12:11 AM