nattib

Members
  • Content Count

    18
  • Joined

  • Last visited

  • Days Won

    1

nattib last won the day on March 29 2018

nattib had the most liked content!

About nattib

  • Rank
    Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello Ciprian thanks a lot for this thorough explanation!! I'll try and see if my elf fit in bram then...
  2. Hi Bianca, Thanks a lot for answering!! and with sdk projects, what file do have to put in the sd card?
  3. hello every one, I've been using qspi on nexys video board for auto configuration. I understand that qspi has limited life cycle of r/w so I thougth about using an external sd card. i googled this but couldn t find any article or tutorial explaining how to do this. i would be grateful for any help! nattib
  4. thanks a lot Jon, I'll go with that!!
  5. thank you for answering Jon, but now, can I connect the timer pin directly to th Pmod connetor pin? should I make it external and then constraint it or do i have to wrap my design first and then connect to the pin ?
  6. Hi again, after having a look at the pmod con3 schematic I wonder what would an IP serves for? it looks like just adding a series resistor between the driver signal and the pmod connectror pin with only configuration to set the source of the power line. now i wonder, since i am generating my pwm control signal from the microblaze timer, can't I just connect the timer output to the corresponding connector pin? apologies for adding new questions without waiting for answers
  7. Hi Jon, Thanks a lot. I ll try and see if i manage to do it...thanksagain is "add a HDL block" the same as "add a module" ? this one give the only possibility of a RTL type module I just have run over the example notarobot but i m still completely in the dark: i can t guess how to do it. in the link you provided i can see a vhdl component for the pmod con3. is this the one i have to use as a added module? or should write my own?
  8. Hi all, I would like to control a servo through a microblaze application. I saw that there is a Pmod for this, here on digilent. I gather its the Pmod CON3. the problem is that I can t find its ip core anywhere in the vivado library (i use vivado 2016.4). can anyone please point me to it? thanx. nattib
  9. hi jon, thank you for answering, now i know at least my code is correct. the tutorial you pointed to uses the hello world example , in which i didnt find any trace of interrupt use, at least explicitly. i ll see with the thread maybe it could lighten me up :). thanx anyway!! nattib
  10. Hi everyone, I only posted this question after i tried everything I could. I am trying to use uartlite with microblaze and interrupt controller (nexysvideo board) to receive some data. I wrote a lot of variations but it doesnt seem to work. my simplest basic code was to turn on a led when a byte is received. building of the project is fine, no errors but nothing happens when runing in hardware. i also tried the provided example (uartlite_intrc_example) which ask for a physical loopback (my understanding is that i have to send back whatever data i receive in the terminal, but i m not sure, i m not a native english speaker) which also did not work. can anyone please point me on how to use the uartlite in this mode (not the provided examples unless i was misusing it). I do not even know if i am using the ip drivers and functions correctly. this an example of what i did: #include <stdio.h> #include "xparameters.h" #include "xuartlite_l.h" #include "xuartlite.h" #include "xstatus.h" #include "xintc.h" #include "xgpio.h" #include "xil_printf.h" /************************GLOBAL VARIABLES******************************/ #define gLED_DEVICE_ID XPAR_GPIO_0_DEVICE_ID #define LED_CHANNEL 1 #define LED 0x01 XIntc IntCntroller; XUartLite UartLite; XGpio gLED; static volatile int flag= 0; //****************************functions prototypes******************/ void uart_int_handler(void *baseaddr_p); XStatus initialize_system (); /************************************************************************/ XStatus initialize_system () { XStatus status = XST_SUCCESS; status = XUartLite_Initialize(&UartLite, XPAR_UARTLITE_0_DEVICE_ID); if (status != XST_SUCCESS) {return XST_FAILURE; } status = XUartLite_SelfTest(&UartLite); if (status != XST_SUCCESS) { return XST_FAILURE; } XUartLite_EnableInterrupt(&UartLite); status = XIntc_Initialize(&IntCntroller, XPAR_INTC_0_DEVICE_ID);if (status != XST_SUCCESS) {return XST_FAILURE; } status = XIntc_Connect(&IntCntroller,XPAR_INTC_0_UARTLITE_0_VEC_ID,(XInterruptHandler)&uart_int_handler, XPAR_UARTLITE_0_BASEADDR); if (status != XST_SUCCESS) {return XST_FAILURE; } XIntc_Enable(&IntCntroller, XPAR_INTC_0_UARTLITE_0_VEC_ID); Xil_ExceptionInit(); Xil_ExceptionRegisterHandler(XIL_EXCEPTION_ID_INT, (Xil_ExceptionHandler)XIntc_DeviceInterruptHandler, (void*)XPAR_INTC_0_DEVICE_ID); Xil_ExceptionEnable(); status = XIntc_Start(&IntCntroller, XIN_REAL_MODE);if (status != XST_SUCCESS) {return XST_FAILURE; } status = XGpio_Initialize(&gLED, gLED_DEVICE_ID); if (status != XST_SUCCESS) { return XST_FAILURE; } XGpio_SetDataDirection(&gLED, LED_CHANNEL, ~LED); return status; } ///////////////**************/////////////////// void uart_int_handler(void *baseaddr_p) { while (!XUartLite_IsReceiveEmpty(XPAR_AXI_UARTLITE_0_BASEADDR)) { flag = 1; } } int main () { initialize_system(); while (1) { if (flag == 1) { XGpio_DiscreteWrite(&gLED, LED_CHANNEL, LED); }} return 1; } (just a side notice: what does the TX led LDI13 in nexys video board refers to? it's on when i send data over uart. i thought it should be RX for receiving data?)
  11. Hi Jon, your project worked. now I will have to redo my own and try to figure out where I failed the last times....thank you again
  12. Hi Jon, Thank you very much!I'll try it and tell you the result
  13. Hi Jon, Actually, sdk doesn't show any error, the programming of the fpga and the qspi as well. I use the 50 MHz clock for ext_spi_clk. the example is just blinking led 0 (on and off for a certain time). in debug mode it works and the change in blinking is relatively long but visible. I tried other simple examples where it never reaches the bootloader as if there was no qspi in the design although it is listed with the ips imported from vivado.
  14. Hi Jon, thank you for answering. any idea of what might be the cause of my project not working in hardware then? the qspi itself is fine because I tried it with a vivado only project, but with sdk sometimes it even never reach the step of creating the bootloader (finish button disabled) or as with this simple project everything looks fine until it reachs the step of running in hardware where it stucks....I will have a look at your project and try to compare mine with it if I manage to find vivado 2017 (I use 2016.4)....thanks a lot again!
  15. Hi everyone.. I 'm trying to figure out how to make my nexys video boot from qspi flash. I tried several offsets I found around the net...the sdk project build successfully as well as the programming of FPGA and flash (following the steps in the digilent tutorial) but...nothing happens after that. i tried the same simple project (the gpio example) without qspi and it works when " run as configuration" mode. Now i suspect the offset used for flash image to be guilty. (my block design is just microblaze with debug module, gpio leds, uart (which i dont use in software), and the qspi with 50khz clock). I am still a novice at this stage so i don't know how to debug my project. My questions: -how to estimate a good FLASH_IMAGE_BASEADDR for my nexys video card? (in theory I can only imagine that the size of the programming files would give me a hint but even here, i don't know how to move on -Any simplified steps to debug the app on the board? ....Thank you guys in advance, you are doing a great job helping the rest of mortals down here....