scanf sets stack pointer to non existent memory location mc9s12c32

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

scanf sets stack pointer to non existent memory location mc9s12c32

1,811 次查看
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
标签 (1)
0 项奖励
回复
1 回复

832 次查看
Icewater
Contributor I
This has been resolved....I just increased the stack size in the *.prm file.
0 项奖励
回复