When program gets into a specific part of the program the whole program freezes.

21 Feb 2017

When the void function print_til_fil starts the program freezes and cant continue on tera term.

any help would be great :D /media/uploads/Matias123/mbed_file_freezes.h

01 Mar 2017

I can see at least two instances of array bounds violations in your program. For example:

char mv [8]= {0,0,0,0,0,0,0,0}; //Verdi p\x86 meldere
char kontroll_mv [8]= {0,0,0,0,0,0,0,0};
...
...
        for (int xy=0; xy<=8; xy++) {
            //kopierer tabellen for sammenligning ved neste runde
            kontroll_mv[xy]=mv[xy];
...

when xy = 8 the statement kontroll_mv[xy]=mv[xy] will overwrite some other area of memory because kontroll_mv[8] does not exist.

presumably it should be

        for (int xy=0; xy<=7; xy++) {
or
        for (int xy=0; xy<8; xy++) {

?

Regards, Chris Burrows CFB Software http://www.astrobe.com