Trenz Electronic GmbH Support Forum

Trenz Electronic Products => Trenz Electronic FPGA Modules => Topic started by: algoballer on May 09, 2016, 11:28:25 PM

Title: Load C Code on DDR3
Post by: algoballer on May 09, 2016, 11:28:25 PM
Hello,

Problem:
After loading the .bit file onto flash I want to be able to load C code through the UART onto the DDR3 for the FPGA Microblaze to execute. (Is this possible?) End goal is to load C code files from Labview for the Microblaze to execute.

Background Information:
I am able to load code onto the FPGA through the Xilinx SDK, and I am able to load a small sample program using impact onto the flash by converting the .bit and .elf into a .mcs file. However I don't want to load it on flash, but on the DDR3.

I have run a "Memory Test" program and the DDR3 works.

I am looking for some guidance and suggestions, thank you very much.
Title: Re: Load C Code on DDR3
Post by: Antti Lukats on May 10, 2016, 10:03:40 AM
yes this is possible but you need some kind of BOOTLOADER to load the and execute the code.

you can take xilinx SREC bootloader as example - should be easy to convert the input from flash read to uart reads

xilinx SREC loader can load directly only from SPI flash, so that needs no patching and we have examples for this