scanf sets stack pointer to non existent memory location mc9s12c32

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

scanf sets stack pointer to non existent memory location mc9s12c32

1,433 Views
Icewater
Contributor I
Hello,
 
    I am just writting simple programs to communicate via serial through the mcu.  printf works fine but scanf sets the stack to a bad memory location after the va_arg macro call.  Due to this when the return from my TERMIO_GetChar() function is executed it tries to read from a no existent location and jumps to 0x0 hence crashing.  I was wondering if anyone knew how to solve this problem. 
 
Thanks,
Icewater
Labels (1)
0 Kudos
Reply
1 Reply

454 Views
Icewater
Contributor I
This has been resolved....I just increased the stack size in the *.prm file.
0 Kudos
Reply