scanf sets stack pointer to non existent memory location mc9s12c32

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

scanf sets stack pointer to non existent memory location mc9s12c32

1,814件の閲覧回数
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 返信

835件の閲覧回数
Icewater
Contributor I
This has been resolved....I just increased the stack size in the *.prm file.
0 件の賞賛
返信