when i upload my code to mcu it doesnt work but when i use debugger mode it works properly why is that happening ?