microblaze

xil_printf and XUartLite_SendByte

雨燕双飞 提交于 2019-12-23 10:01:05
问题 Why does xil_printf cause a stack overflow and XUartLite_SendByte does not? Can anyone explain this? The commented section(XUartLite_SendByte) works fine, but eventually i would like to call a function on i and return the result using xil_printf. The code is shown below. microblaze using xilinx sdk #include <stdio.h> /*#include "xparameters.h" */ #include "xil_cache.h" /*#include "uartlite_header.h" #include "xbasic_types.h" #include "xgpio.h" #include "gpio_header.h" #include "xspi.h"

get the physical address of a buffer under Linux

大憨熊 提交于 2019-12-18 13:25:07
问题 I am running Linux kernel 3.3 on Xilinx's Microblaze with full MMU. the task that I am doing requires me to know the following: I need to create a text file (buffer) and locate the physical address of this buffer and I don't want the kernel to write this file into discontinuous regions of memory. the reason I need this because I have a DMA engine that streams data from a preset physical memory address, so I need to force Linux to create the buffer file at that exact memory location, so that