Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
RT-Thread一般讨论
rt thread 4.0.2 无法进入 shell提示符
发布于 2019-07-04 10:42:17 浏览:1575
订阅该版
CPU : Cypress POSC 62 RT THREAD 4.0.2 int main(void) { int ret_fin; platform_init_external_devices( ); // rt_hw_uart_init(); rt_hw_board_init(); rt_console_set_device(RT_CONSOLE_DEVICE_NAME); rt_show_version(); //rt_system_timer_init(); rt_system_scheduler_init(); // rt_system_signal_init(); /* init application */ // rt_application_init(); list_memheap(); ret_fin= finsh_system_init(); rt_kprintf("
finsh init ret:%d....
",ret_fin); finsh_set_device(RT_CONSOLE_DEVICE_NAME); /* init timer thread */ // rt_system_timer_thread_init(); rt_kprintf("
rt_thread_idle_init() called"); /* init idle thread */ rt_thread_idle_init(); // printf(" SCB5 Uart Start....
"); rt_kprintf("
rt_system_scheduler_start()..."); /* start scheduler */ rt_system_scheduler_start(); return 0; } 运行后: mem init, heap begin address 0x8025ef8, size 16352 \ | /- RT - Thread Operating System / | \ 4.0.2 build Jul 1 2019 2006 - 2019 Copyright by rt-thread teamstart scheduler: max priority 0x100memheap pool size max used size available size---------------- ---------- ------------- -------------- rt_malloc size:288malloc size 288thread (NULL) take sem:heap, which value is: 1thread (NULL) releases sem:heap, which value is: 0allocate memory at 0x8025f08, size: 304 L398 RT_OBJECT_HOOK_CALL()!!! L401 RT_OBJECT_HOOK_CALL()!!! Alloc memory Success for shell rt_malloc size:168malloc size 168thread (NULL) take sem:heap, which value is: 1thread (NULL) releases sem:heap, which value is: 0allocate memory at 0x8026038, size: 184 L398 RT_OBJECT_HOOK_CALL()!!! L401 RT_OBJECT_HOOK_CALL()!!! 396 rt_hw_interrupt_enable() 399 rt_object_allocate Success for shell rt_malloc size:4096malloc size 4096thread (NULL) take sem:heap, which value is: 1thread (NULL) releases sem:heap, which value is: 0allocate memory at 0x80260f0, size: 4112 L398 RT_OBJECT_HOOK_CALL()!!! L401 RT_OBJECT_HOOK_CALL()!!! 411 rt_thread_create for shell 420 rt_thread_create for shell L843 tid : 08026038 thread tid name:tshell startup a thread:tshell with priority:20thread resume: tshell [rt_list_remove:89] n->prev:08026054insert thread[tshell], the priority: 20 finsh init ret:0.... rt_malloc size:76malloc size 76thread (NULL) take sem:heap, which value is: 1thread (NULL) releases sem:heap, which value is: 0allocate memory at 0x8027100, size: 92 L398 RT_OBJECT_HOOK_CALL()!!! L401 RT_OBJECT_HOOK_CALL()!!! rt_thread_idle_init() called startup a thread:tidle0 with priority:255thread resume: tidle0 [rt_list_remove:89] n->prev:08024bc0insert thread[tidle0], the priority: 255 rt_system_scheduler_start()... [rt_system_scheduler_start:251] [rt_system_scheduler_start:253] to_thread:08026038 highest_ready_priority:20 [rt_schedule_remove_thread:797] [rt_schedule_remove_thread:801] remove thread[tshell], the priority: 20 [rt_schedule_remove_thread:807] thread->tlist.next:08025320, thread->tlist.prev:08025320, thread->tlist:08026054 [rt_list_remove:89] n->prev:08025320 [rt_schedule_remove_thread:812] finsh >thread tshell take sem:shrx, which value is: 0sem take: suspend thread - tshellthread suspend: tshell [rt_schedule_remove_thread:797] [rt_schedule_remove_thread:801] remove thread[tshell], the priority: 20 [rt_schedule_remove_thread:807] thread->tlist.next:08026054, thread->tlist.prev:08026054, thread->tlist:08026054 [rt_list_remove:89] n->prev:08026054 [rt_schedule_remove_thread:812] [rt_schedule_remove_thread:797] [rt_schedule_remove_thread:801] remove thread[tidle0], the priority: 255 [rt_schedule_remove_thread:807] thread->tlist.next:08025a78, thread->tlist.prev:08025a78, thread->tlist:08024bc0 [rt_list_remove:89] n->prev:08025a78 [rt_schedule_remove_thread:812] [0]switch to priority#255 thread:tidle0(sp:0x08024e04), from thread:tshell(sp: 0x080270ac) 没有进入FINSH提示符, 应该如何处理?
查看更多
4
个回答
默认排序
按发布时间排序
leongu
2019-07-04
这家伙很懒,什么也没写!
mem init, heap begin address 0x8025f00, size 16352 \ | / - RT - Thread Operating System / | \ 4.0.2 build Jul 4 2019 2006 - 2019 Copyright by rt-thread team start scheduler: max priority 0x100 rt_malloc size:168 malloc size 168 [rt_sem_take:341] thread (NULL) take sem:heap, which value is: 1 thread (NULL) releases sem:heap, which value is: 0 allocate memory at 0x8025f10, size: 184 [rt_malloc:399] Before RT_OBJECT_HOOK_CALL()!!! [rt_malloc:404] After RT_OBJECT_HOOK_CALL()!!! [rt_object_allocate:396] rt_hw_interrupt_enable() [rt_thread_create:399] rt_object_allocate Success for shell name:finsh88 rt_malloc size:2048 malloc size 2048 [rt_sem_take:341] thread (NULL) take sem:heap, which value is: 1 thread (NULL) releases sem:heap, which value is: 0 allocate memory at 0x8025fc8, size: 2064 [rt_malloc:399] Before RT_OBJECT_HOOK_CALL()!!! [rt_malloc:404] After RT_OBJECT_HOOK_CALL()!!! [rt_thread_create:410} Before _rt_thread_init for shell [rt_thread_create:421} After _rt_thread_init for shell tid : 08025f10 thread tid name:finsh88 startup a thread:finsh88 with priority:28 thread resume: finsh88 [rt_list_remove:89] n->prev:08025f2c insert thread[finsh88], the priority: 28 Thread ret : 0 memheap pool size max used size available size ---------------- ---------- ------------- -------------- finsh init ret:0.... startup a thread:tidle0 with priority:255 thread resume: tidle0 [rt_list_remove:89] n->prev:08024bc0 insert thread[tidle0], the priority: 255 rt_system_scheduler_start()... [rt_system_scheduler_start:251] [rt_system_scheduler_start:253] to_thread:08025f10 highest_ready_priority:28 [rt_schedule_remove_thread:798] [rt_schedule_remove_thread:802] remove thread[finsh88], the priority: 28 [rt_schedule_remove_thread:808] thread->tlist.next:08025364, thread->tlist.prev:08025364, thread->tlist:08025f2c [rt_list_remove:89] n->prev:08025364 [rt_schedule_remove_thread:813] [rt_system_scheduler_start:266] rt_init_thread_entry() called.... rt_malloc size:288 malloc size 288 [rt_sem_take:341] thread finsh88 take sem:heap, which value is: 1 thread finsh88 releases sem:heap, which value is: 0 allocate memory at 0x80267d8, size: 304 [rt_malloc:399] Before RT_OBJECT_HOOK_CALL()!!! [rt_malloc:404] After RT_OBJECT_HOOK_CALL()!!! Alloc memory Success for shell rt_malloc size:168 malloc size 168 [rt_sem_take:341] thread finsh88 take sem:heap, which value is: 1 thread finsh88 releases sem:heap, which value is: 0 allocate memory at 0x8026908, size: 184 [rt_malloc:399] Before RT_OBJECT_HOOK_CALL()!!! [rt_malloc:404] After RT_OBJECT_HOOK_CALL()!!! [rt_object_allocate:396] rt_hw_interrupt_enable() [rt_thread_create:399] rt_object_allocate Success for shell name:tshell rt_malloc size:4096 malloc size 4096 [rt_sem_take:341] thread finsh88 take sem:heap, which value is: 1 thread finsh88 releases sem:heap, which value is: 0 allocate memory at 0x80269c0, size: 4112 [rt_malloc:399] Before RT_OBJECT_HOOK_CALL()!!! [rt_malloc:404] After RT_OBJECT_HOOK_CALL()!!! [rt_thread_create:410} Before _rt_thread_init for shell [rt_schedule_remove_thread:798] [rt_schedule_remove_thread:802] remove thread[finsh88], the priority: 28 [rt_schedule_remove_thread:808] thread->tlist.next:08025f2c, thread->tlist.prev:08025f2c, thread->tlist:08025f2c [rt_list_remove:89] n->prev:08025f2c [rt_schedule_remove_thread:813] [rt_thread_create:421} After _rt_thread_init for shell [finsh_system_init:843] tid : 08026908 thread tid name:tshell [rt_schedule_remove_thread:798] [rt_schedule_remove_thread:802] remove thread[finsh88], the priority: 28 [rt_schedule_remove_thread:808] thread->tlist.next:08025f2c, thread->tlist.prev:08025f2c, thread->tlist:08025f2c [rt_list_remove:89] n->prev:08025f2c [rt_schedule_remove_thread:813] startup a thread:tshell with priority:20 thread resume: tshell [rt_list_remove:89] n->prev:08026924 insert thread[tshell], the priority: 20 insert thread[finsh88], the priority: 28 [rt_schedule_remove_thread:798] [rt_schedule_remove_thread:802] remove thread[tshell], the priority: 20 [rt_schedule_remove_thread:808] thread->tlist.next:08025324, thread->tlist.prev:08025324, thread->tlist:08026924 [rt_list_remove:89] n->prev:08025324 [rt_schedule_remove_thread:813] [0]switch to priority#20 thread:tshell(sp:0x0802797c), from thread:finsh88(sp: 0x08026784) [rt_schedule_remove_thread:798] [rt_schedule_remove_thread:802] remove thread[tshell], the priority: 20 [rt_schedule_remove_thread:808] thread->tlist.next:08026924, thread->tlist.prev:08026924, thread->tlist:08026924 [rt_list_remove:89] n->prev:08026924 [rt_schedule_remove_thread:813] rt_malloc size:76 malloc size 76 [rt_sem_take:341] thread tshell take sem:heap, which value is: 1 thread tshell releases sem:heap, which value is: 0 allocate memory at 0x80279d0, size: 92 [rt_malloc:399] Before RT_OBJECT_HOOK_CALL()!!! [rt_malloc:404] After RT_OBJECT_HOOK_CALL()!!! finsh > [rt_sem_take:341] thread tshell take sem:shrx, which value is: 0 sem take: suspend thread - tshell thread suspend: tshell [rt_schedule_remove_thread:798] [rt_schedule_remove_thread:802] remove thread[tshell], the priority: 20 [rt_schedule_remove_thread:808] thread->tlist.next:08026924, thread->tlist.prev:08026924, thread->tlist:08026924 [rt_list_remove:89] n->prev:08026924 [rt_schedule_remove_thread:813] [rt_schedule_remove_thread:798] [rt_schedule_remove_thread:802] remove thread[finsh88], the priority: 28 [rt_schedule_remove_thread:808] thread->tlist.next:08025364, thread->tlist.prev:08025364, thread->tlist:08025f2c [rt_list_remove:89] n->prev:08025364 [rt_schedule_remove_thread:813] [0]switch to priority#28 thread:finsh88(sp:0x0802672c), from thread:tshell(sp: 0x0802797c) [rt_schedule_remove_thread:798] [rt_schedule_remove_thread:802] remove thread[finsh88], the priority: 28 [rt_schedule_remove_thread:808] thread->tlist.next:08025f2c, thread->tlist.prev:08025f2c, thread->tlist:08025f2c [rt_list_remove:89] n->prev:08025f2c [rt_schedule_remove_thread:813] [rt_schedule_remove_thread:798] [rt_schedule_remove_thread:802] remove thread[finsh88], the priority: 28 [rt_schedule_remove_thread:808] thread->tlist.next:08025f2c, thread->tlist.prev:08025f2c, thread->tlist:08025f2c [rt_list_remove:89] n->prev:08025f2c [rt_schedule_remove_thread:813] [rt_list_remove:89] n->prev:08025f98 [rt_list_remove:89] n->prev:08024c24 [rt_schedule_remove_thread:798] [rt_schedule_remove_thread:802] remove thread[tidle0], the priority: 255 [rt_schedule_remove_thread:808] thread->tlist.next:08025a7c, thread->tlist.prev:08025a7c, thread->tlist:08024bc0 [rt_list_remove:89] n->prev:08025a7c [rt_schedule_remove_thread:813] [0]switch to priority#255 thread:tidle0(sp:0x08024e04), from thread:finsh88(sp: 0x0802672c) [rt_list_remove:89] n->prev:08025a90 release memory 0x8025fc8, size: 2064 [rt_sem_take:341] thread tidle0 take sem:heap, which value is: 1 thread tidle0 releases sem:heap, which value is: 0 [rt_list_remove:89] n->prev:08024bb8 release memory 0x8025f10, size: 184 [rt_sem_take:341] thread tidle0 take sem:heap, which value is: 1 thread tidle0 releases sem:heap, which value is: 0
leongu
2019-07-04
这家伙很懒,什么也没写!
\ | / - RT - Thread Operating System / | \ 4.0.2 build Jul 4 2019 2006 - 2019 Copyright by rt-thread team [rt_application_init:152] tid : 08026164 thread tid name:finsh88 [rt_application_init:157] thread ret : 0 [main:200] [rt_init_thread_entry:126] finsh > 为什么 finsh > 后, 无法输入命令??
tyustli
2019-07-04
这家伙很懒,什么也没写!
程序应该死机了吧
zhangjun
2019-07-05
这家伙很懒,什么也没写!
用的啥终端软件,是不是在终端软件里面开启了硬件流控(RTS,CTS选项是不是误打开了)。
撰写答案
登录
注册新账号
关注者
0
被浏览
1.6k
关于作者
leongu
这家伙很懒,什么也没写!
提问
40
回答
13
被采纳
0
关注TA
发私信
相关问题
1
有关动态模块加载的一篇论文
2
最近的调程序总结
3
晕掉了,这么久都不见layer2的踪影啊
4
继续K9ii的历程
5
[GUI相关] FreeType 2
6
[GUI相关]嵌入式系统中文输入法的设计
7
20081101 RT-Thread开发者聚会总结
8
嵌入式系统基础
9
linux2.4.19在at91rm9200 上的寄存器设置
10
[转]基于嵌入式Linux的通用触摸屏校准程序
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
【FRDM-MCXA156测评】- CherryUSB与hid鼠标设备模仿
2
【FRDM-MCXA156测评】- 硬件SPI模块
3
【NXP-MCXA156】恩智浦A156上的 IIC(硬件) 实践
4
【FRA156测评DM-MCX】- PWM模块
5
【FRDM-MCXA156 评测】CAN通讯
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
DMA
USB
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
rt-smart
FAL
I2C_IIC
UART
ESP8266
cubemx
WIZnet_W5500
ota在线升级
PWM
BSP
flash
freemodbus
packages_软件包
潘多拉开发板_Pandora
定时器
GD32
ADC
flashDB
编译报错
socket
中断
Debug
rt_mq_消息队列_msg_queue
keil_MDK
ulog
SFUD
msh
C++_cpp
MicroPython
本月问答贡献
出出啊
1520
个答案
343
次被采纳
小小李sunny
1444
个答案
290
次被采纳
张世争
813
个答案
177
次被采纳
crystal266
550
个答案
161
次被采纳
whj467467222
1222
个答案
149
次被采纳
本月文章贡献
出出啊
1
篇文章
5
次点赞
小小李sunny
1
篇文章
1
次点赞
张世争
1
篇文章
3
次点赞
crystal266
2
篇文章
1
次点赞
whj467467222
2
篇文章
2
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部