mike lee

Members
  • Content count

    16
  • Joined

  • Last visited

About mike lee

  • Rank
    Member

Recent Profile Visitors

217 profile views
  1. mike lee

    zedboard OLED display

    Dear sbobrowicz, Thank you so much, now OLED displays smoothly. cheers Mike
  2. mike lee

    zedboard OLED display

    Hi sbobrowicz, Following your advice I made progress on UIO. Now OLED can output correctly in petalinux. Many thanks. However, the data transfer to PmodOLED is very slow. Below is what I am doing, For GPIO, directly write to register GPIO_TRI_OFFSET (0x04) to set direction, and then write to register GPIO_DATA_OFFSET (0x00) for data transfer. According to SPI user guide https://www.xilinx.com/support/documentation/ip_documentation/axi_quad_spi/v3_2/pg153-axi-quad-spi.pdf, I find SPI_Control_Register (0x60) and SPI_Data_Transmit_Register (0x68). Still I don't know how to define num-transfer-bits, max-frequency for SPI; guess my UIO-SPI is running @ default mode, which makes data transfer very slow, and I have to add delay function after each byte transfer to wait previous transfer settled. Please advise how to properly setup the num-transfer-bits, max-frequency for UIO-SPI. Thanks in advance. Mike
  3. mike lee

    zedboard OLED display

    Hi sbobrowicz, The suggestion you provided is working on petalinux flow with simple GPIO connection for OLED device. For PmodOLED IP core provided by your company, we can use it in our Vivado SDK design flow without problem. We are wondering how to incorporate PmodOLED IP core into our petalinux flow to simplify the development of our linux application software. Do you have any visibility how to make it work? Any comment or suggestion is highly appreciated. Again, thank you for the great support. Mike
  4. mike lee

    zedboard OLED display

    Hi sbobrowicz, Work like a charm. Thank you for the help, and thank you all Digilent's support team. Your efforts are always highly appreciated. Best Mike
  5. mike lee

    zedboard OLED display

    Hi Jon, Any updates? Thanks Mike
  6. mike lee

    zedboard OLED display

    Hi Joe, Just check back, and still eager waiting Linux guru's resolute. In the meanwhile, I am wondering whether you can provide the PmodOLED IP for vivado-2014.1 (petalinux kernel 3.x). The github version https://github.com/Digilent/vivado-library/tree/master/ip/Pmods/PmodOLED_v1_0 is for vivado-2015 (kernel 4.0). I would like to try with an early kernel version, since OOB package was based on kernel 3.3 . Below is extracted from early version petalinux (with vivado 2014.1), and witnessed xgpiops numbering agreeable. # cat /sys/kernel/debug/gpio GPIOs 0-117, platform/e000a000.ps7-gpio, xgpiops: gpio-55 (OLED VBat ) out lo gpio-56 (OLED VDD ) out lo gpio-57 (OLED_RESET ) out hi gpio-58 (OLED_D/C ) out hi Thanks in advance. Mike
  7. mike lee

    zedboard OLED display

    Hi Jon, back to work, here is the status, I have successfully replicated your external_mux.zip project, i.e., generates bitstream from the vivado project, outputs hardware and launchs SDK for both PmodOLED and testoled in your external_mux.zip. OLED displays "PmodOLED" "by Digilent" "Simple Demo" etc. However, petalinux-build still misses the OLED ouputs. I inserted following lines into pl.dtsi, (borrowed from digilent-zed.dts https://gist.github.com/godspeed1989/5523696) zed_oled { compatible = "dglnt,pmodoled-gpio"; /* GPIO Pins */ vbat-gpio = <&gpio0 55 0>; vdd-gpio = <&gpio0 56 0>; res-gpio = <&gpio0 57 0>; dc-gpio = <&gpio0 58 0>; /* SPI-GPIOs */ spi-bus-num = <2>; spi-speed-hz = <4000000>; spi-sclk-gpio = <&gpio0 59 0>; spi-sdin-gpio = <&gpio0 60 0>; }; # insmod pmodoled-gpio.ko ==> which shows /dev/zed_oled # cat /sys/kernel/debug/gpio GPIOs 906-1023, platform/e000a000.gpio, zynq_gpio: gpio-961 (OLED VBat ) out lo gpio-962 (OLED VDD ) out lo gpio-963 (OLED_RESET ) out lo gpio-964 (OLED_D/C ) out lo gpio-965 (spi_gpio.2 ) out lo gpio-966 (spi_gpio.2 ) out lo # cat logo.bin > /dev/zed_oled ==> displays nothing comparing to OOB results zynq> cat /sys/kernel/debug/gpio GPIOs 0-117, platform/e000a000.gpio, xgpio: gpio-55 (OLED VBat ) out lo gpio-56 (OLED VDD ) out lo gpio-57 (OLED_RESET ) out hi gpio-58 (OLED_D/C ) out hi gpio-59 (spi_gpio.2 ) out lo gpio-60 (spi_gpio.2 ) out lo There are differences of gpio numberings, as well as gpio-57 / 58 out hi. Please advise, thanks in advance Mike
  8. mike lee

    zedboard OLED display

    Hi Jon, Thank you for the vivado file. The project misses the IP component (guess you put pmodoled_v1_0 in other directory path), and also there is no pin assignment .xdc file. It will take me some time to dig it through locally. Will report after I construct my own vivado project. Best Mike
  9. mike lee

    zedboard OLED display

    Hi Jon, Thank you for the quick response. The Avnet weblink http://zedboard.org/content/zedboard-oled still plays with OOB package. The script listed is the exact same file as located in " /usr/bin/load_oled " in OOB package. #!/bin/sh insmod /lib/modules/`uname -r`/pmodoled-gpio.ko; if [ -c /dev/zed_oled ]; then cat /root/logo.bin > /dev/zed_oled; fi; I want to use OLED display in my own project, which requests to involve a vivado IP in block diagram design, and to construct a Petalinux kernel/device module(s) to facilitate OLED outputs. Notice OLED is only provided by zedboard, while zc702/zc706 do not have OLED. Therefore, I am solely depend on Digilent Talents to reach out. Many Thanks Best Mike
  10. mike lee

    ZedBoard Linux Hardware Design for Vivado

    Hi Jon, Happen to work on OLED with exact same problem. asked question on this forum as follows, A year has past since your first note, please inform whether this modified PmodOLED module is available for onboard Zedboard-OLED now. Please advise, Thanks in advance Mike
  11. mike lee

    zedboard OLED display

    Hi Digilent, zedboard, vivado 2015.4, petalinux 2015.4, /dev/zed_oled, pmodoled-gpio.ko I am working on zedboard to enable onboard-OLED display. First vivado outputs bitstream hardware, then petalinux generates " BOOT.BIN + Image.ub ", finally zedboard bootup by the SD card. " insmod pmodoled-gpio.ko " does bring /dev/zed_oled . However, " cat logo.bin > /dev/zed_oled " has nothing to display. Then I decided to add oled block design in vivado project. I tried two different versions, including tamu https://github.com/ama142/ZedboardOLED-v1.0-IP and Digilent https://github.com/Digilent/vivado-library/tree/master/ip/Pmods/PmodOLED_v1_0 . After making external pin assignment, Vivado / petalinux all functions. However, there is still no outputs on OLED. Please advise how to turn on OLED in petalinux/vivado. Thanks in advance Mike (P.S. OLED by itself works well on OOB package with digilent logo output)