Shell doesn't respawn in demo
Posted: Sun Aug 05, 2012 8:22 pm
I've tried the ARMCM3-STM32F107-FATFS demo and when I type exit into the shell, a new shell isn't respawned. When I type "exit", no response comes back (it isn't echoed), and the system goes into the idle thread. I have experienced the same issue in my own code and can't figure out what the issue is. I have even tried using shellCreateStatic() rather shellCreate() and it seems to make no difference. Everything else about the session seems to be fine. Here is an example session:
the last line should trigger a new shell to respawn and then show the shell prompt again (main.c, lines 365-373), but it doesn't. Any ideas why?
Luke
Code: Select all
ChibiOS/RT Shell
ch> help
Commands: help exit info systime mem threads test tree
ch> info
Kernel: 2.5.0
Compiler: GCC 4.7.2 20120701 (prerelease)
Architecture: ARMv7-M
Core Variant: Cortex-M3
Port Info: Advanced kernel mode
Platform: STM32F1 Connectivity Line
Board: Olimex STM32-P107 Rev.A
Build time: Aug 5 2012 - 12:08:33
ch> systime
9549
ch> threads
addr stack prio refs state time
20000908 20000794 64 1 WTOREVT 0
20000950 200009CC 1 1 READY 12035
20001DA0 20001E6C 64 1 SLEEPING 0
200014D8 20001C44 64 1 CURRENT 5
ch> tree
File System not mounted
ch> mem
core free memory : 56560 bytes
heap fragments : 0
heap free total : 0 bytes
ch> exitthe last line should trigger a new shell to respawn and then show the shell prompt again (main.c, lines 365-373), but it doesn't. Any ideas why?
Luke