Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
731 Views

Writing to nios reset vector

Hello! 

 

I have just found rather stupid bug when I was dereferencing NULL pointer and had a nios reset.  

I'm actually need some help to clarify (for better understanding nios) what actually happend and how nios is reseting. 

 

Some example code.  

 

some_struct_type1 * a = NULL; 

some_struct_type2* struct1 = a->p_struct1; 

*(struct1->p_int) = 0xfeed; 

 

So why I have restart and not simple memory corruption?
0 Kudos
0 Replies