cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
samoaibo
Observer
Observer
555 Views
Registered: ‎02-04-2020

Segmentation fault when using Xil_In32()

Jump to solution

I created a platform project in Vitis based on a project from Vivado. Then I created a linux application project based on this platform. I need to read and write to the address space of PL. When I try to read the value from address space of PL using Xil_In32(), an error "Segmentation fault" is returned. It worked fine in the standalone app.

Vitis created BOOT.BIN using *.bit.

Please help me

Thanks

0 Kudos
1 Solution

Accepted Solutions
stephenm
Moderator
Moderator
504 Views
Registered: ‎09-12-2007
3 Replies
dgisselq
Scholar
Scholar
523 Views
Registered: ‎05-21-2015

@samoaibo,
Did you use Xil32_Out() on the raw address space (which goes through the virtual to physical memory map), or on the /dev/mem file (which does not)?

Dan

0 Kudos
samoaibo
Observer
Observer
512 Views
Registered: ‎02-04-2020

I specified the physical address from Vivado and hoped that everything would work as in the standalone application. I am probably wrong and need to convert a physical address to a virtual address?

Does bitstream load into an fpga if loaded from an sd card?

0 Kudos
stephenm
Moderator
Moderator
505 Views
Registered: ‎09-12-2007