I am using Tera Term for debuging my program. However, this time is no thing is appearing at Tera Term window !
Does it is possible; the reason for this issue since I fed the microblzae with 333 MHz clock signal ? If so , what should I do ?
I attached a snapshot for my block design.
this is my program that I wrote in Xilinx Eclipse SDK :
/*
*
* Xilinx, Inc.
* XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A
* COURTESY TO YOU. BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS
* ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE, APPLICATION OR
* STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS IMPLEMENTATION
* IS FREE FROM ANY CLAIMS OF INFRINGEMENT, AND YOU ARE RESPONSIBLE
* FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE FOR YOUR IMPLEMENTATION
* XILINX EXPRESSLY DISCLAIMS ANY WARRANTY WHATSOEVER WITH RESPECT TO
* THE ADEQUACY OF THE IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO
* ANY WARRANTIES OR REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE
* FROM CLAIMS OF INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE.
*/
/*
*
*
* This file is a generated sample test application.
*
* This application is intended to test and/or illustrate some
* functionality of your system. The contents of this file may
* vary depending on the IP in your system and may use existing
* IP driver functions. These drivers will be generated in your
* SDK application project when you run the "Generate Libraries" menu item.
*
*/
Question
Ahmed Alfadhel
Hi @jpeyron,
I am using Tera Term for debuging my program. However, this time is no thing is appearing at Tera Term window !
Does it is possible; the reason for this issue since I fed the microblzae with 333 MHz clock signal ? If so , what should I do ?
I attached a snapshot for my block design.
this is my program that I wrote in Xilinx Eclipse SDK :
/*
*
* Xilinx, Inc.
* XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A
* COURTESY TO YOU. BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS
* ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE, APPLICATION OR
* STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS IMPLEMENTATION
* IS FREE FROM ANY CLAIMS OF INFRINGEMENT, AND YOU ARE RESPONSIBLE
* FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE FOR YOUR IMPLEMENTATION
* XILINX EXPRESSLY DISCLAIMS ANY WARRANTY WHATSOEVER WITH RESPECT TO
* THE ADEQUACY OF THE IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO
* ANY WARRANTIES OR REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE
* FROM CLAIMS OF INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE.
*/
/*
*
*
* This file is a generated sample test application.
*
* This application is intended to test and/or illustrate some
* functionality of your system. The contents of this file may
* vary depending on the IP in your system and may use existing
* IP driver functions. These drivers will be generated in your
* SDK application project when you run the "Generate Libraries" menu item.
*
*/
#include <stdio.h>
#include <string.h>
#include "xparameters.h"
#include "xil_cache.h"
#include "xiomodule.h"
#include "iomodule_header.h"
#include "xil_printf.h"
#include "PmodDA3.h"
//Global parameters
PmodDA3 myDevice;
u32 data;
u32 Hops_reading;
int main ()
{
int delay_count;
Xil_ICacheEnable();
Xil_DCacheEnable();
//part 1 testing peripherals
print("---Entering main---\n\r");
{
XStatus status;
print("\r\nRunning IOModuleSelfTestExample() for iomodule_0...\r\n");
status = IOModuleSelfTestExample(XPAR_IOMODULE_0_DEVICE_ID);
if (status == 0) {
print("IOModuleSelfTestExample PASSED\r\n");
}
else {
print("IOModuleSelfTestExample FAILED\r\n");
}
print("\r\nRunning IOModuleSelfTestExample() for PmodDA3_0...\r\n");
status = IOModuleSelfTestExample(XPAR_PMODDA3_0_DEVICE_ID);
if (status == 0) {
print("IOModuleSelfTestExample 2 PASSED\r\n");
}
else {
print("IOModuleSelfTestExample 2 FAILED\r\n");
}
}
print("---Exiting Testing---\n\r");
// Part 2 Generating The Frequency Hops
XIOModule gpi;
DemoInitialize(); // 1st step DAC
// initialize our GPIO's
data = XIOModule_Initialize(&gpi, XPAR_IOMODULE_0_DEVICE_ID);
data = XIOModule_Start(&gpi);
while(delay_count < 500000000)
{
Hops_reading = XIOModule_DiscreteRead(&gpi, 1); // Perform Hop Reading
//delay_count = 0;
//DemoRun(); // 2nd step DAC
DA3_WriteSpi(&myDevice, 0x3A, &Hops_reading, sizeof(Hops_reading));
// while (delay_count < 50000000)
delay_count++;
}
print("---End of this program---\n\r");
DemoCleanup(); // 3rd step DAC
Xil_DCacheDisable();
Xil_ICacheDisable();
return 0;
}
void DemoInitialize()
{
EnableCaches();
DA3_begin(&myDevice, XPAR_PMODDA3_0_AXI_LITE_SPI_BASEADDR);
}
void DemoCleanup() {
DA3_end(&myDevice);
DisableCaches();
}
void EnableCaches() {
#ifdef __MICROBLAZE__
#ifdef XPAR_MICROBLAZE_USE_ICACHE
Xil_ICacheEnable();
#endif
#ifdef XPAR_MICROBLAZE_USE_DCACHE
Xil_DCacheEnable();
#endif
#endif
}
void DisableCaches() {
#ifdef __MICROBLAZE__
#ifdef XPAR_MICROBLAZE_USE_DCACHE
Xil_DCacheDisable();
#endif
#ifdef XPAR_MICROBLAZE_USE_ICACHE
Xil_ICacheDisable();
#endif
#endif
}
________________________________________________________________
I am looking forward your help.
Thanks in advance.
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.