Open m3x1m0m opened 4 years ago
Did you ever find a resolution to this? I am also seeing the same behavior. And in fact, when my interrupt callback is called and I try to read mtime by calling metal_cpu_get_mtime(), it seems to cause my HiFive 1 Rev B CPU to go into a failure state. When I pause the debugger it has the execution in "_metal_shutdown_exit()".
Under 9.3 in the SiFive FE310-G002 Manual one can read the following.
When I take the sifive-welcome example and modify it slightly as displayed below
I get the output
which makes me believe, that the register is not read correctly by the function _metal_cpu_getmtime(), is it?