This program exits without returning from the fopen(), clearing the screen so that there's no message visible either. (If I comment out the fopen() call, the message displays and the infinite loop is entered as expected.)
#include <stdio.h>
int main() {
FILE *fp;
printf("About to call fopen():\n");
fp = fopen("hello.txt", "w");
for (;;)
asm volatile("");
}
Built locally from git top-of-tree:
$ mos-cx16-clang --version
clang version 19.0.0git (https://github.com/llvm-mos/llvm-mos 9bf5bd3e33c892b52d175321dad8c2da96bcab28)
This program exits without returning from the fopen(), clearing the screen so that there's no message visible either. (If I comment out the fopen() call, the message displays and the infinite loop is entered as expected.)
Built locally from git top-of-tree: