Disabling Zynq interrupts

2019-12-16 Thread Andy James
How do I mask specific fabric interrupts in RTEMS 5 on the Zynq, apart from disabling them in the attached peripheral's interrupt enable register? I'm looking for something similar to this, but for the Zynq #define LEON_Mask_interrupt( _source ) \ do { \ uint32_t _level; \ \ _level

ZYNQ Exception Handling

2019-11-04 Thread Andy James
I am attempting to port some code from a LEON3 application to the ZYNQ, and there are some exception handling routines, such as : status = rtems_interrupt_catch(handleTrap, SPARC_SYNCHRONOUS_TRAP(ILLEGAL_INSTRUCTION), &oldHandle); Is there an equivalent for the ZYNQ? The information contained

DMA to Ramdisk area on Zynq RTEMS

2019-09-02 Thread Andy James
I have created a RAM disk on Zynq RTEMS and I'd like to set up (for the time being) a 'baremetal ' type DMA transferTo the ramdisk . I have set up the RAM Disk as follows, and have no problem reading or writing to it. How do I find the physical address in memory where the RAM Disk has been creat

printf not working on Zynq standalone build of examples-v2/hello/ [but printk does]

2019-08-29 Thread Andy James
I have noticed that if I build the examples-v2/hello/ within an RTEMS bsp build it works fine, but if I build it standalone worth its own makefile (from Makefile.leaf) It doesn't give any output. However if I substitute printk instead it does work. Is this perhaps an issue with interrupts? Does

Eclipse and RTEMS on Zynq

2019-08-28 Thread Andy James
I'm using the Eclipse plugin for RTEMS (on Eclipse and Xilinx SDK) , yet when I attempt to run the executable (via JTAG) on my Zynq Dev board the program Doesn't appear to execute properly, with no terminal output. If I build the sample "hello" within RTEMS itself, that appears to work fine. What

RTEMS Shell on Zynq

2019-08-20 Thread Andy James
Is it possible to get the RTEMS shell working on the Zynq? I tried to get the 'fileio' sample application running but it fails at the 'shell-wait-for-input' function. This appears to be something to do with the "change_serial_settings" function. The information contained in this message is

Custom Driver on Zynq

2019-08-19 Thread Andy James
I'm attempting to add a custom driver to RTEMS for a simple GPIO peripheral, for a Zynq BSP. I have added my gpio.c file to Makefile.am and the include files To headers.am, and also ran ./bootstrap -H ; however when I run 'make all' these files do not get compiled, and there are no error messa

No console output on Custom Zynq Board

2019-08-19 Thread Andy James
I'm attempting to run the RTEMS "hello" sample application on a custom Zynq board with 7030 device. I built and ran the sample application on a Zybo Z7-10 without any issues. My custom board uses UART0 and a 100MHz UART clock with 666MHz CPU clk , and I have changed the BSP to suit these val

zynq uart

2019-06-05 Thread Andy James
Hi, I'm trying to get UART input working on my ZYBO Zynq development board - I can use printf but scanf and getchar both hang up Is there an issue with the driver? Thanks Andrew #ifdef HAVE_CONFIG_H #include "config.h" #endif #include #include #include #include #include static rtems_ta

Memory Mapped registers in RTEMS

2019-03-04 Thread Andy James
I need to access some memory mapped registers (AXI bus, Zynq, Zedboard) in my init.c program - I can't seem to find a simple way of doing this In RTEMS (as in devmem.c in Linux). Can anyone point me to some resources that describe how to do this? Thanks, Andrew The information contained in t