Altera_Forum
Honored Contributor
7 years agoFPGA-to-HPS Bridges Design Example
Hi Everyone,
I'm working to develop an FPGA-HPS design which allows the FPGA to write to the HPS DDR3 and then have the HPS read from that memory space. So far this is the only example I've found for this type of design: https://www.altera.com/support/support-resources/design-examples/soc/fpga-to-hps-bridges-design-example.html I was able to modify the Quartus project for my DE0-Nano-SoC Cyclone V board, but when trying to compile the baremetal application in DS5 EDS Eclipse I ran into this error: (Path)/Altera-SoCFPGA-HardwareLib-FPGA2HPS-Bridge-CV-GNU/alt_bridge_manager.c:93: undefined reference to `memcpy_s'. Now all the files including this alt_bridge_manager.c came directly from the Altera design example. So far I've tried changing the std in the makefile from C99 to C11, no luck. Also, I found a post stating that if you put:#define __STDC_WANT_LIB_EXT1__ 1 Then it would fix the error, however that did not work either, and I found that when running build in the DS5-Workspace in eclipse it actually stripped that line out of the file. I'm pretty lost here and would appreciate any help on the project for additional info: Board: DE0-NANO-SoC Cyclone V 5CSEMA4U23C6 OS: Windows 10 IDE: Eclipse DS5 Workspace started from SoC EDS Terminal Project: https://www.altera.com/support/support-resources/design-examples/soc/fpga-to-hps-bridges-design-example.html EDIT: Ran the make from the SoC EDS, no longer strips out that# define statement like the DS5 Eclipse does, but still throws the error