Hi all,
I did this tutorial http://zedboard.org/content/creating-custom-peripheral and everything goes OK(with Run as configuration) . Also, I used the SW regiser:
main()
printf("main
");
volatile short *r0= 0x67000000;
volatile short *r1= 0x67000004;
volatile short *r2= 0x67000008;
short read_value, read_value_1 ,read_value_2;
//write/////
*r0= 88888;
*r1= 888;
*r2= 90;
///read////
read_value = *r0;
read_value_1 = *r1;
read_value_2 = *r2;
After that I passed to Linux, so I created the new boot.bin file for the SD card.
The problem when I use this program with Linux, an error appear to me:
main
Segmentation fault
Any Help please??
Moktar.