cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Mentor
Mentor
11,645 Views
Registered: ‎06-09-2011

Hardware exception when runing SDK Xilkernel example

Hi all,

I have a uB that has timer, RS232 as well as SPI Flash and DDR2. I have developped some bootloader application and I have verified that system is working thoroughly. However, if I try to run SDK sample code of Xilkernel I see that my uB gets hw exception?! I realized this by debugging and saw that after I am wondering if I have to change some uB features to run Xilkernel? Could anyone please help? I am using SDK14.7 and its Xilkernel example.Below cdoe shows where I receive hw-exception:

    int i;

    init_platform();
    
    /* Assign random data to the input array */
    
    for (i = 0; i < DATA_SIZE; i++)
        input_data[i] = i + 1;

    /* Initialize xilkernel */
    xilkernel_init();

    /* Create the master thread */
    xmk_add_static_thread(master_thread, 0);//Here I get hardware exception
    
    /* Start the kernel */
    xilkernel_start();
    
    /* Never reached */
    cleanup_platform();

I should add that my uB setting is set to "Linux with MMU"

 

Thanks in advance,

Hossein

Thanks,
Hossein
0 Kudos
1 Reply
Highlighted
Mentor
Mentor
11,642 Views
Registered: ‎06-09-2011

Or, even sometimes I get hw_exception after that line and in the new line where I want to start Xilkernel.

xilkernel_start(); //Sometimes I get hw_exception here.

 

Thanks,
Hossein
0 Kudos