Ok, I was able to make it work, although I don't know why.
What happens is that if I run the CRC test with no breakpoints in it, everything works fine.
If I put a breakpoint (I double checked to be using hardware breakpoints) inside CRC calculation function, in order to check the calculated value, the calculation fails.
If I don't put a breakpoint there, it works.
Honestly this is really odd to me, but enough to consider the code as "working" and proceed with my task list.
Thank you,
Alberto Spagnolo