When running FMC Pcam Adapter + 4 pcams Demo with Zedboard, I got got "terminate called without an active exception". This happens when calling AXI_VDMA<ScuGicInterruptController> vdma_a_driver(...) in the following main.cc list. What could be the root cause ? Thanks, Tparng
===============================
int main()
{
//Init CPU, UART, caches etc.
init_platform();
#ifdef _DEBUG
SET_VERBOSE_FLAG();
#endif
VERBOSE("Initializing...");
try
{//Constructor of hardware driver classes might throw
u8 read_master_select;
//Blank VDMA frame buffers
memset((u8*)frame_baseaddr, 0x55, (1920*1080*3)*4);
VERBOSE("p0");
//Flush D-Cache because this is DMA-accessible memory
Xil_DCacheFlushRange(frame_baseaddr, (1920*1080*3)*4);
VERBOSE("p1");
ScuGicInterruptController irpt_ctl(IRPT_CTL_DEVID);
VERBOSE("p2");
//Construct camera control IPs
PS_GPIO<ScuGicInterruptController> gpio_driver(GPIO_DEVID, irpt_ctl, GPIO_IRPT_ID);
VERBOSE("p3");
Nop_GPIO nopgpio;
PS_IIC<ScuGicInterruptController> iic_driver(CAM_I2C_DEVID, irpt_ctl, CAM_I2C_IRPT_ID, 100000);
VERBOSE("p4");
//Dual-channel VDMA for the display and the first camera
AXI_VDMA<ScuGicInterruptController> vdma_a_driver(VDMA_A_DEVID, frame_baseaddr, irpt_ctl, VDMA_A_MM2S_IRPT_ID,
VDMA_A_S2MM_IRPT_ID);
Question
Tparng
When running FMC Pcam Adapter + 4 pcams Demo with Zedboard, I got got "terminate called without an active exception". This happens when calling AXI_VDMA<ScuGicInterruptController> vdma_a_driver(...) in the following main.cc list. What could be the root cause ? Thanks, Tparng
===============================
int main()
{
//Init CPU, UART, caches etc.
init_platform();
#ifdef _DEBUG
SET_VERBOSE_FLAG();
#endif
VERBOSE("Initializing...");
try
{//Constructor of hardware driver classes might throw
u8 read_master_select;
//Blank VDMA frame buffers
memset((u8*)frame_baseaddr, 0x55, (1920*1080*3)*4);
VERBOSE("p0");
//Flush D-Cache because this is DMA-accessible memory
Xil_DCacheFlushRange(frame_baseaddr, (1920*1080*3)*4);
VERBOSE("p1");
ScuGicInterruptController irpt_ctl(IRPT_CTL_DEVID);
VERBOSE("p2");
//Construct camera control IPs
PS_GPIO<ScuGicInterruptController> gpio_driver(GPIO_DEVID, irpt_ctl, GPIO_IRPT_ID);
VERBOSE("p3");
Nop_GPIO nopgpio;
PS_IIC<ScuGicInterruptController> iic_driver(CAM_I2C_DEVID, irpt_ctl, CAM_I2C_IRPT_ID, 100000);
VERBOSE("p4");
//Dual-channel VDMA for the display and the first camera
AXI_VDMA<ScuGicInterruptController> vdma_a_driver(VDMA_A_DEVID, frame_baseaddr, irpt_ctl, VDMA_A_MM2S_IRPT_ID,
VDMA_A_S2MM_IRPT_ID);
main.cc
Link to comment
Share on other sites
9 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now