12-20-2018 02:21 AM
I Stored coe file in BRAM IP. I used attached block diagram to read the value from BRAM ip. Below are the c code that i have used. But i didn't get output in SDK terminal. Can anyone help me out ?
#include <stdio.h>#include "xil_io.h"
#define XPAR_AXI_BRAM_CTRL_0_S_AXI_BASEADDR 0x40000000
12-20-2018 03:46 AM
If you debug the code and watch the variables, what values do you get when you step through the code?
How are you connecting the SDK terminal? What is defined in your subsystem to be the STDIN/OUT?
12-21-2018 11:43 PM
I connected SDK terminal using gpio ip and com port. I'm new to this domain. Can you plz guide me how to get the stored data to SDK terminal . Is there is any document for C code. Thanks in advance!!
12-24-2018 12:13 AM
You didn't answer my question about what was defined to be the stdio in your subsystem (in the BSP)?
I think the SDK terminal uses the JTAG connection but if you have an external connection that should probably be some UART.
12-24-2018 03:31 AM
Thanks for your reply.
I don't have much knowledge about C code in SDK. I want to read the stored data (.coe file) from BRAM IP and to display the same through VGA. I'm able to build the block diagram but unable to write c code to communicate PS and PL. Could you plz help me ?
Have a good day!!
01-07-2019 12:27 AM
After a quick inspection, there isn't anything wrong with the C code you have previously posted.
However, you haven't explained what debug you have attempted. Can you debug the application on your target and see that the variables acquire the values you expect when you expect them to?
It's still not clear to me how you are connecting the console to the system in order to see the values printed out to the terminal. Can you explain this a little bit more?
01-07-2019 11:42 PM
For reference, you should explain what you have done to resolve your issue and then close this thread by marking your resolution message as solved.