Hi, Really thanks for all the help you've been. I'm sure I'll need more help on the way, but this seems to be working now. I played around with the code a lot in the past couple of days and then searched about this kind of weird behavior (Code getting stuck at a position that it was able to run through, with the only difference being that there is a little more code or little more variable declarations. ) I found out that it was due to the very heavy hierarchy of functions being present in the BMI270_API and a relatively small stack space (512 bytes) being allocated. Both of these combined, basically resulted in stack overflow, which then resulted in Fault_ISR being called. a reference link (TI's E2E forum): https://e2e.ti.com/support/microcontrollers/other/f/other-microcontrollers-forum/430818/launchpad-s-strange-faultisr I increased the stack space to 1024 bytes from 512 bytes, and the program runs fine. The conversion has some issues, but I was not interested in the conversion anyway. Again, lots of thanks for helping me through this. I've left the link for the reference above, just in case someone else has similar issues again in the future. Thanks and Regards, Punit Jain
... View more