uint16_t msize; uint32_t maxblocks;
maxblocks = (csd.bm.C_SIZE + 1) * (1 << (csd.bm.C_SIZE_MULT + 2)); // maxblocks = 1960*64; msize = maxblocks/64; // printf("%u",(1 << (csd.bm.C_SIZE_MULT + 2))); // printf("%u",csd.bm.C_SIZE + 1); printf("%u",maxblocks/64); // printf("%u",msize); When enabled, the first printf prints 64. the second printf prints 1960 the third and fourth printfs print 65448. Substituting maxblocks = 1960*64 for the longer experession did not help. Am I missing something? Thanks, Garst