when i upload my code to mcu it doesnt work but when i use debugger mode it works properly why is that happening ?
Hello, another use just reported a similar issue:
STM32F411 code only running when stepped through a debugger
I suspect the same issue may apply for you. Can you add barrier instructions to your code to help determine which writes are taking time to complete?
See the other thread for more info.