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

LM3S1608

Hello,

new compiler V5.05 does not handle an expression:
lastrec[2] = (kol_strok / 4); //

and so works:
lastrec[2] = kol_strok / 4; //

Parents
  • This code calculates the address of the data access. Then, the address is inserted in the data request command. After receiving the data I have seen the incorrect data - address formed properly.

    I have carefully looked at the code and see the unnecessary brackets here are:

    lastrec [2] = (resint / 4);

    and such

    lastrec [3] = (resint - (lastrec [2] * 4)) + 1;

    I removed the brackets and it worked.

Reply
  • This code calculates the address of the data access. Then, the address is inserted in the data request command. After receiving the data I have seen the incorrect data - address formed properly.

    I have carefully looked at the code and see the unnecessary brackets here are:

    lastrec [2] = (resint / 4);

    and such

    lastrec [3] = (resint - (lastrec [2] * 4)) + 1;

    I removed the brackets and it worked.

Children