cancel
Showing results for 
Search instead for 
Did you mean: 

Mbed studio software Timer and Memory size Compiler errors

SamJ1
Associate II

Following code has squiggly under bars in printf statements:

Is there a simple way fix these compile errors please:

0693W00000NqQVuQAN.pngThis program is from Embedded System Design with Arm Cortex-M by Cem Unsalan et al,

chapter 3 page 50.

3 REPLIES 3

What exactly does it report as an error/warning ?

That the printf format doesn't match the type of the variable you're trying to print ? try fixing that

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
chis
Associate

Hi SamJ1, I have nothing to add to your problem - mbed has been deprecated. I'm trying to follow the same book as you, I'm stuck on listing 5.3 on page 92/3. I do not see the desired behaviour - I think the HAL_Delay() function is causing a problem. Did you get any further in the book? 

 

Pavel A.
Evangelist III
printf("....%ld\n", (long)size);

 Is this simple enough?