This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

undefined identifier in for loop

I created a new project and I defined a delay function using two for loops in my project. When I want to build the project I receive 6 errors. The variables of the for loops can't be defined for some reasons. If I write for( uint8_t count =0; count<UINT16_MAX; count++) I get the errors, but if I define count not in the for loop and use it in the loop I don't receive any errors. I actually never had this problem at my previous project and I didn't changed the code or settings during creating the project, nevertheless when I create a new project I encounter this problem

.

I added the C file of my code.

Thanks in advance

0