Part Number: MSP430FR59941
Hello everyone,
I am trying to load a custom library on the MSP430. Among many files, a common error that I am observing is this - #2633 - Modifiers not allowed in printf_support=minimal mode.
An example of the line that throws the error is as follows:
NNOM_LOG("Top %d Accuracy: %d.%02d%% \n", i + 1, (top * 100) / pre->predict_count,((top * 100 * 100) / pre->predict_count)%100);
I looked at some questions on the forum but I am a bit confused about what I can use instead. I had another statement which is similar to the above line but does not specify the number of digits as follows:
NNOM_LOG("Top %d Accuracy: 100%% \n", i + 1);
I tried removing the specification of the number of digits and instead re-wrote the first line as:
NNOM_LOG("Top %d Accuracy: %d.%d%% \n", i + 1, (top * 100) / pre->predict_count,((top * 100 * 100) / pre->predict_count)%100);
However, in this scenario I receive a warning in the console that says: #183-D argument is incompatible with corresponding format strinf conversion.
If anyone could help me out with an idea of what I can try here or possibly re-direct me to a similar discussion it would be extremely helpful.
Thanks!!
Best,
Siddhant