[En-Nut-Discussion] NutHeapAvailable() question

Henrik Maier hmlists at focus-sw.com
Fri Sep 29 02:38:05 CEST 2006

Whenever these things happened to me it typically was a type mismatch 
error due to missing prototypes (32-bit or 8-bit int passed when 16-bit 
expected or vice versa). Any compiler warnings giving a hint? Compile 
with -Wall.

Also try this:

int amama, ababa; /* Both should be int as %d expects an int */
amama = NutHeapAvailable(); ababa = NutHeapAvailable();
fprintf(uart, "\n\rHeap available = %d,  %d \r\n", amama, amama);


More information about the En-Nut-Discussion mailing list