3 ms·
I appreciate the examples you sent, I don't know why I didn't think of using the qemu emulator! The codebase I was in didn't use C but were pure risc-v assembl
by Alifatisk 3y ago
I appreciate the examples you sent, I don't know why I didn't think of using the qemu emulator!
The codebase I was in didn't use C but were pure risc-v assembly. The workflow from each change to running it consisted of the following steps:
- Make your change (not too because you want to easily see when something went wrong)
- Run the build script that compiles the code and sends it to the microcontroller
- Restart the microcontroller
- See the change
This is what I had to do on every change I did on the code, debugging was even harder because I couldn't directly print out to the console because it was running on a microcontroller, not on my laptop. Your suggestions might improve the workflow further though.
The closest thing I could get to debugging was to replicate the relevant assembly in vscode and using the risc-v simulator and walk through each step.
But comparing this experience with, let's say, how you develop in Flutter, the feedback is instant.