Sample codes for u540

Hi,
I am trying to test few functionality like mode switching ecc and few other functionality and i need some basic code where i can look for as i am very new to RISC -V.Can someone help me out where i can look for ??

Thanks

I don’t know what “mode switching ecc” means.

You can find sample codes in github.com/sifive/freedom-e-sdk which is our bsp, but these sample codes use the freedom-metal interface which lets you write code that works on any of our supported boards, so might not be exactly what you want if you want to hand write assembly code. Still, it might be useful. Look in the software dir at the example-* subdirs.

Otherwise, you might want to try looking at the various RTOS ports to RISC-V.

Hi,
Sorry i forgot to mention about hardware,i am using freedom u540 and i want to check switching between S mode to M mode , U mode for that i was looking for some code with which i test it.
Likewise was also looking for code with which i say ecc is working fine on my hardware.
Can i get few sample codes with which i can do so??

Thanks