Can someone enlighten me what i miss
The loop function!
Will this code even compile?
The code looks all wrong. Setup runs only once and you will never even attach the interrupts if the pin 12 ( SOMI ) is not high.
What is the "AFE4490.h" library you are trying to use and where did you get it?