I finally solved it! The one thing I didn’t expect to be the issue, was the issue.

Basically I had the linkerscript calling the bootscript. I grabbed these two files from a blogpost. However, the linkerscript called the bootscript’s function, which was named ‘main’. As my own function in my source file was also called ‘main’, something went wrong. So only my source’s main function got called and not my bootscript, which meant my bss wasn’t being reset to 0, which caused undefined behaviour.

Stupid on my part to not look into this, but I’m still quite new to all of this.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top