I'm now working with an Arty board.
I was able to build a Microblaze example and print Hello World to the console.
So now I'm moving forward, slowly, into Pmods.
I thought I'd try the OLEDrgb Pmod first.
Question: Starting with the Hello World example, how do I clean up the pre-existing C code in order to start with a clean slate?
Is it necessary to delete the old code samples, or can I just leave them in the workspace?
I saved the project as a new name.
A new folder was created in my c:VivadoProjects folder.
The example talked about creating the clocks.
The clock reconfiguration does not quite match what's on the screen.
First of all, there was no 100 MHz option for Clock 0.
Aren't we based on a 166.667 MHz clock, so how can that get reduced to 100 MHz exactly?
It said to make a clock less than (or equal to) 50 MHz.
So I set the following clocks:
Clock 0 9947 ps (100.52831 MHz)
Clock 1 21276 ps (47 MHz)
And I wired them to the Pmod as instructed.
I initiated a Generate Bitstream.
Some popups appeared.
One was a critical warning:
[IP_Flow 19-4965] IP PmodOLEDrgb_axi_quad_spi_0_0 was packaged with board value 'digilentinc.com:zybo:part0:1.0'. Current project's board value is 'digilentinc.com:arty:part0:1.1'. Please update the project settings to match the packaged IP.
[IP_Flow 19-4965] IP PmodOLEDrgb_axi_gpio_0_1 was packaged with board value 'digilentinc.com:zybo:part0:1.0'. Current project's board value is 'digilentinc.com:arty:part0:1.1'. Please update the project settings to match the packaged IP.
[IP_Flow 19-4965] IP PmodOLEDrgb_pmod_bridge_0_0 was packaged with board value 'digilentinc.com:zybo:part0:1.0'. Current project's board value is 'digilentinc.com:arty:part0:1.1'. Please update the project settings to match the packaged IP.
No other popups
Synthesis is proceeding
Implementation is proceeding
When I get to the part about copying the source code to the Pmod src folder, I got some errors.
It needed the h files and all the xspi files copied up there too.
After I copied up all the needed files from the system wrapper, the C code is crashing on this error:
'XPAR_PMODOLEDRGB_0_AXI_LITE_GPIO_BASEADDR' undeclared (first use in this function)
I don't think I can move forward until this is resolved.
Here's a snippet of the code that's found in main.c
Question
BeamPower
I'm now working with an Arty board.
I was able to build a Microblaze example and print Hello World to the console.
So now I'm moving forward, slowly, into Pmods.
I thought I'd try the OLEDrgb Pmod first.
Question: Starting with the Hello World example, how do I clean up the pre-existing C code in order to start with a clean slate?
Is it necessary to delete the old code samples, or can I just leave them in the workspace?
I saved the project as a new name.
A new folder was created in my c:VivadoProjects folder.
The example talked about creating the clocks.
The clock reconfiguration does not quite match what's on the screen.
First of all, there was no 100 MHz option for Clock 0.
Aren't we based on a 166.667 MHz clock, so how can that get reduced to 100 MHz exactly?
It said to make a clock less than (or equal to) 50 MHz.
So I set the following clocks:
Clock 0 9947 ps (100.52831 MHz)
Clock 1 21276 ps (47 MHz)
And I wired them to the Pmod as instructed.
I initiated a Generate Bitstream.
Some popups appeared.
One was a critical warning:
[IP_Flow 19-4965] IP PmodOLEDrgb_axi_quad_spi_0_0 was packaged with board value 'digilentinc.com:zybo:part0:1.0'. Current project's board value is 'digilentinc.com:arty:part0:1.1'. Please update the project settings to match the packaged IP.
[IP_Flow 19-4965] IP PmodOLEDrgb_axi_gpio_0_1 was packaged with board value 'digilentinc.com:zybo:part0:1.0'. Current project's board value is 'digilentinc.com:arty:part0:1.1'. Please update the project settings to match the packaged IP.
[IP_Flow 19-4965] IP PmodOLEDrgb_pmod_bridge_0_0 was packaged with board value 'digilentinc.com:zybo:part0:1.0'. Current project's board value is 'digilentinc.com:arty:part0:1.1'. Please update the project settings to match the packaged IP.
No other popups
Synthesis is proceeding
Implementation is proceeding
When I get to the part about copying the source code to the Pmod src folder, I got some errors.
It needed the h files and all the xspi files copied up there too.
After I copied up all the needed files from the system wrapper, the C code is crashing on this error:
'XPAR_PMODOLEDRGB_0_AXI_LITE_GPIO_BASEADDR' undeclared (first use in this function)
I don't think I can move forward until this is resolved.
Here's a snippet of the code that's found in main.c
void DemoInitialize()
{
OLEDrgb_begin(&oledrgb, XPAR_PMODOLEDRGB_0_AXI_LITE_GPIO_BASEADDR, XPAR_PMODOLEDRGB_0_AXI_LITE_SPI_BASEADDR);
}
How do I fix this?
Link to comment
Share on other sites
13 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.