搜索
bottom↓
12
返回列表 发新帖
楼主: lzm0117

网络收音机的开发使用反馈专贴,添加当前Radio情况。 有问题请进来反映。

[复制链接]

出0入14汤圆

发表于 2010-11-20 23:12:04 | 显示全部楼层
更新电台失败。

能不能上传一份收音机网址的文件?使用时发现flash字库文件丢失,重格后,拷入资源文件,但发现没有收音列表了,更新失败。
偿试跟踪代码,但暂时看不明白

出错信息
///////////////////

connect to: radio.rt-thread.org...
radio list update request:
GET /radio.pls HTTP/1.0

Host: radio.rt-thread.org:80

User-Agent: RT-Thread HTTP Agent

Connection:

>>HTTP/1.1 404 Not Found

HTTP: status code = 404!
radio list update: failed to connect to 'radio.rt-thread.org'!

出0入0汤圆

发表于 2010-11-20 23:16:24 | 显示全部楼层
网站变动,radio.rt-thread.org不存在了,所以暂时更新失败了。等会看看网站

出0入14汤圆

发表于 2010-11-20 23:17:48 | 显示全部楼层
老大可以上传一份收音列表吗,原来的丢失了.光盘里面没有

出0入0汤圆

发表于 2010-11-20 23:26:50 | 显示全部楼层
原来的radio.rt-thread.org已经复制到www.rt-thread.org/radio了。

所以原来的电台列表文件可以在这里找到:(直接下载下来,然后放到flash上即可)
http://www.rt-thread.org/radio/radio.pls

BTW, 我们会很快给出一个新的firmware以解决Radio v4.0的一堆的问题。

出0入0汤圆

发表于 2010-11-21 01:54:16 | 显示全部楼层
用于修复文件系统的U盘代码 (仅U盘功能_SST25VF016B_for_stm32radio)
点击此处下载 ourdev_599391FT3NKC.rar(文件大小:411K) (原文件名:msc_sst25vfxx_for_stm32radio.rar)

101121修正固件
1. 改进SPI FLASH驱动,现在文件系统直接支持4K扇区操作.
2. 修正豆瓣电台不能播放的问题
3. 修正电台更新链接及不能更新的问题
4. 修正U盘联机功能在WIN7时会自动重启动的问题(去掉了自动重启动功能,以后会改为图标提示)
点击此处下载 ourdev_599395JY7IO5.rar(文件大小:4.05M) (原文件名:stm32_radio_for_v4_101121_R1075.rar)

出0入14汤圆

发表于 2010-11-21 15:04:28 | 显示全部楼层
新版本确实好多了。

长时间播放,会出现图形界面僵死,没反应,Finsh则正常,下面是线程信息


finsh>>list_thread()
thread  pri  status      sp     stack size max used   left tick  error
-------- ---- ------- ---------- ---------- ---------- ---------- ---
nbuf     0x16 ready   0x000000e0 0x00000400 0x000002d0 0x00000002 000
tcpip    0x0a suspend 0x000000c0 0x00000400 0x00000240 0x0000000f 000
etx      0x0c suspend 0x00000090 0x00000200 0x000000a0 0x00000001 000
erx      0x0c suspend 0x000000f0 0x00000200 0x000000f0 0x00000006 000
remote   0x1e suspend 0x00000080 0x00000180 0x00000080 0x00000002 000
key      0x1e ready   0x00000098 0x00000180 0x000000a0 0x00000005 -02
ply_ui   0x19 ready   0x000000d0 0x00001000 0x00000360 0x00000003 000
ply_bg   0x0d suspend 0x00000168 0x00000400 0x00000320 0x00000004 000
info     0x19 ready   0x000000d0 0x00000800 0x00000288 0x00000004 000
rtgui    0x0f suspend 0x000000e8 0x00000400 0x000000f0 0x00000005 000
tidle    0x1f ready   0x00000050 0x00000100 0x00000050 0x0000001d 000
tshell   0x14 ready   0x00000088 0x00000800 0x000001b0 0x00000002 000
        0, 0x00000000
finsh>>

出0入0汤圆

发表于 2010-11-22 04:25:16 | 显示全部楼层
SD卡操作不正常吗,usb联机能正常操作,但是不能在收音机下看图片,播放mp3。找不到文件
明天看看finsh下的信息

出0入0汤圆

发表于 2010-11-22 14:30:42 | 显示全部楼层
图片支持hdc格式的,你需要用aozima的工具进行转换,然后放在SD目录下的Pictures目录

出0入0汤圆

发表于 2010-11-23 12:03:03 | 显示全部楼层
win xp下,radio中插入SD,usb连接, 显示联机画面,但很快重启;不插SD时则usb连接成功,识别出spi flash硬盘

出0入0汤圆

发表于 2010-11-23 12:20:38 | 显示全部楼层
回复【108楼】liquan1010  
win xp下,radio中插入sd,usb连接, 显示联机画面,但很快重启;不插sd时则usb连接成功,识别出spi flash硬盘
-----------------------------------------------------------------------
可能你的SD卡是2K扇区的.  请换用 104的程序或从SVN更新.不过暂时依然没做2K扇区的考虑.

出0入0汤圆

发表于 2010-11-23 12:26:10 | 显示全部楼层
stm32_radio_for_v4_101121_R1075.rar同样存在上述问题

出0入0汤圆

发表于 2010-11-23 12:35:31 | 显示全部楼层
回复【109楼】aozima  
回复【108楼】liquan1010  
win xp下,radio中插入sd,usb连接, 显示联机画面,但很快重启;不插sd时则usb连接成功,识别出spi flash硬盘
-----------------------------------------------------------------------
可能你的sd卡是2k扇区的.  请换用 104的程序或从svn更新.不过暂时依然没做2k扇区的考虑.

出0入0汤圆

发表于 2010-11-23 12:42:29 | 显示全部楼层
谢谢aozima的回复 但是sd卡中的文件可以浏览和播放

出0入0汤圆

发表于 2010-11-23 12:44:37 | 显示全部楼层
因为2K扇区的SD卡也支持512字节的读.所以读是正常的.
但U盘中会按SD卡的实际扇区大小来读写.目前 sd卡驱动还没做这个

你可以先强制设置SD扇区为512字节报告给PC或改进一下驱动.如果有改好.可以提交补丁.

出0入0汤圆

发表于 2010-11-23 14:50:18 | 显示全部楼层
如何判断SD卡是2k模式的?如果能够正常判断,那么在device_control中返回相应正确的值应该就可以解决问题了

出0入0汤圆

发表于 2010-11-23 15:39:44 | 显示全部楼层
不好意思,之前SD的问题尚未解决,又出现问题。本人初次实际体验RTT。

刷完新的固件后,播放文件 双声道测试.mp3, 屏幕无响应。

再刷会光盘上的固件也存在同样问题。

SystemInit......

mem test pass!!

\ | /
- RT -     Thread Operating System
/ | \ 0.3.1 build Nov 23 2010
2006 - 2010 Copyright by rt-thread team
sdcard init failed
SPI File System initialized!
SD File System init failed!
load_default!
file write succeed:

LCD Device ID : 8989  data bus test pass! LCD GRAM test....  TEST PASS!

rem_codes /resource/remote.txt open fail! fd:-1
The remote disbale.
please run rem_study()
rtc is not configured
please configure with set_date and set_time
Thu Jan  1 00:00:00 1970

dm9000 id: 0x90000a46
finsh>>event size: 28
event size: 20
event size: 28
event size: 20
could not establish link
TCP/IP initialized!
stat -> stopped
psr: 0x41000000
pc: 0x08018476
lr: 0x08018469
r12: 0x00000001
r03: 0x00000000
r02: 0x00000000
r01: 0x00000000
r00: 0x080041d1
hard fault on thread: ply_bg
thread  pri  status      sp     stack size max used   left tick  error
-------- ---- ------- ---------- ---------- ---------- ---------- ---
nbuf     0x16 suspend 0x00000098 0x00000400 0x00000098 0x00000005 000
tcpip    0x0a suspend 0x000000c8 0x00000400 0x000000c8 0x00000014 000
etx      0x0c suspend 0x00000088 0x00000200 0x00000088 0x00000010 000
erx      0x0c suspend 0x00000088 0x00000200 0x00000088 0x00000010 000
remote   0x1e suspend 0x00000078 0x00000180 0x00000078 0x00000002 000
key      0x1e ready   0x00000098 0x00000180 0x00000098 0x00000005 000
ply_ui   0x19 ready   0x000001e8 0x00001000 0x00000670 0x00000004 000
ply_bg   0x0d ready   0x000000f0 0x00000400 0x00000308 0x00000002 000
info     0x19 suspend 0x000000d0 0x00000800 0x00000288 0x00000005 000
rtgui    0x0f suspend 0x000000e0 0x00000400 0x000000e0 0x00000005 000
tidle    0x1f ready   0x00000040 0x00000100 0x00000040 0x0000000e 000
tshell   0x14 suspend 0x00000088 0x00000800 0x00000088 0x0000000a 000

出0入0汤圆

发表于 2010-11-23 16:19:29 | 显示全部楼层
回复【115楼】liquan1010  

不好意思,之前sd的问题尚未解决,又出现问题。本人初次实际体验rtt。
刷完新的固件后,播放文件 双声道测试.mp3, 屏幕无响应。
再刷会光盘上的固件也存在同样问题。
-----------------------------------------------------------------------
是刷的BIN么? 如果是. 现在文件系统已是4K扇区.
如果是编译的.也许可能参考一下 63楼与72楼.

出0入0汤圆

发表于 2010-11-23 17:29:44 | 显示全部楼层
谢谢 应该是编译器版本问题,63楼与72楼看了,之前为了用M051,把MDK3.8换成了MDK4.12了,编译radio时忘了这事儿。uart1下载光盘.hex固件恢复了,等装了mdk3.80再试新版程序

出0入0汤圆

发表于 2010-11-23 20:15:28 | 显示全部楼层
aozima您好,麻烦上传一下SST25VF016B内的文件。谢谢!!!

出0入0汤圆

发表于 2010-11-23 20:21:23 | 显示全部楼层
回复【118楼】dmxfeng  
aozima您好,麻烦上传一下sst25vf016b内的文件。谢谢!!!
-----------------------------------------------------------------------
点击此处下载 ourdev_599966KI9DWH.rar(文件大小:963K) (原文件名:RADIO_DISK_resource.rar)

出0入0汤圆

发表于 2010-11-23 22:42:14 | 显示全部楼层
果然MDK4.12杯具.... 还好有JLINK v8,用jflash重刷了光盘中的hex....

串口下载不成功...我用了mcuisp 0.996,比光盘中版本高些也不行...

超级终端连接倒是可以正常 finsh...我用的usb转串口,接在TTL电平的接口上的

串口下载是否需要设置跳线还是其它什么? 以前由于有jlink就没试过串口下载...

出0入663汤圆

发表于 2010-11-23 23:48:12 | 显示全部楼层
回复【120楼】snoopyzz
-----------------------------------------------------------------------

当然要跳线,BOOT0 = 1 / BOOT1 = 0。

出95入100汤圆

发表于 2010-11-29 21:30:45 | 显示全部楼层
radio附带的那个编程指南的48页 第28行  RT_NULL应该是 (void *)2 请核实一下

出0入0汤圆

发表于 2010-11-30 10:00:59 | 显示全部楼层
长时间运行SD卡会突然读不到数据了,复位后又可以了
can't read more data
*

read failed: 3, buffer 0x20002034
can't read more data
read failed: 3, buffer 0x68002458
read failed: 3, buffer 0x68002458
read failed: 3, buffer 0x68002458
read failed: 3, buffer 0x68002458
read failed: 3, buffer 0x68002458

是不是读取错误后,直接软件复位SD卡即可,SD复位后怎么回到原来的播放流程中呢
         if (status == SD_OK) return size;
         //else
        rt_kprintf("read failed: %d, buffer 0x%08x\n", status, buffer);
        return 0;

出0入0汤圆

发表于 2010-11-30 10:12:45 | 显示全部楼层
回复【123楼】first blood  
长时间运行sd卡会突然读不到数据了,复位后又可以了
can't read more data
*
read failed: 3, buffer 0x20002034
can't read more data
read failed: 3, buffer 0x68002458
是不是读取错误后,直接软件复位sd卡即可,sd复位后怎么回到原来的播放流程中呢
         if (status == sd_ok) return size;
         //else
        rt_kprintf("read failed: ......
-----------------------------------------------------------------------
有发现这个情况.但想去跟综他一直没跟综到.
需要查到是什么原因引起的读取失败.才好想对策.

出0入0汤圆

发表于 2010-11-30 12:59:22 | 显示全部楼层
长时间就会有这个问题吗?回去也试试,现在仅长时间听豆瓣了

出0入0汤圆

发表于 2010-11-30 13:22:48 | 显示全部楼层
我的在听radio时,有时会死机现象,复位就好了,过一段时间又会出现!不知是哪里的问题。

出0入0汤圆

发表于 2010-11-30 13:42:23 | 显示全部楼层
回复【126楼】charlie2008  
我的在听radio时,有时会死机现象,复位就好了,过一段时间又会出现!不知是哪里的问题。
-----------------------------------------------------------------------

能接个串口看看吗?嗯,或许下次得考虑当出错的时候,直接在液晶屏上显示了。

等RT-Thread 0.4.0 beta1版本发布后,也把STM32Radio移植到0.4.x吧,有些问题还需要0.4.x才能解决。

出0入0汤圆

发表于 2010-11-30 14:56:12 | 显示全部楼层
死机的时候在液晶屏上显示比较好
长时间播放有时会读SD卡错误,不过我今天从早上放到现在,还没出现过,会不会是震动造成SD卡接触不良,但我昨天放了一晚上,早上看的时候出现SD读取错误,内核没死,串口一直打印read failed: 3, buffer 0x68002458 ,复位就好了,估计SD卡累了,罢工了

出0入0汤圆

发表于 2010-11-30 15:12:30 | 显示全部楼层
rtt_radio分支的spi flash驱动写得是挺不好的 :)
建议参考linux源码中的spi flash的驱动(drivers/mtd/devices/m25p80.c),那个写得比较好 也好读 ^_^

出0入0汤圆

发表于 2010-12-1 09:32:15 | 显示全部楼层
昨天放了一晚上,今天起来SD卡又读不到了,读不到任何文件,复位又行了

出0入0汤圆

发表于 2010-12-1 20:51:22 | 显示全部楼层
回复【126楼】charlie2008   
我的在听radio时,有时会死机现象,复位就好了,过一段时间又会出现!不知是哪里的问题。
-----------------------------------------------------------------------

能接个串口看看吗?嗯,或许下次得考虑当出错的时候,直接在液晶屏上显示了。

等RT-Thread 0.4.0 beta1版本发布后,也把STM32Radio移植到0.4.x吧,有些问题还需要0.4.x才能解决。

==================================================================================
SystemInit......               

mem test pass!!               

\ | /      
- RT -     Thread Operating System                                 
/ | \ 0.3.1 build Nov 27 2010                              
2006 - 2010 Copyright by rt-thread team                                       
sdcard init failed                  
SPI File System initialized!                           
SD File System init failed!                           

LCD Device ID : 8989  data bus test pass! LCD GRAM test....  TEST PASS!                                                                       

/resource/remote.txt open succeed.                                 

decode succeed,The remote enable                                
rtc is not configured                     
please configure with set_date and set_time                                          
Thu Jan  1 00:00:00 1970                        

dm9000 id: 0x90000a46                     
finsh>>event size: 28                     
event size: 20              
event size: 28              
event size: 20              
operating at 100M full duplex mode                                 
Acquired IP address from DHCP server:192.168.1.2                                                
TCP/IP initialized!                  
stat -> stopped               
douban channel 5               
Loading douban.fm playlist...                             
Loading douban.fm playlist...                             
size = 4308           
total 4308 bytes               
stat[stoppped] -> buffering                           
wait ready, data len: 0, stat 1                              
size = 2099904              
resume wait buffer                  
size = 1900392              
size = 1414512              
size = 2596488              
*
*
*
*
*
*
*
size = 1621728              
size = 1961712              
*
*
size = 2496816              
unknown error: -9, left: 4264                             
*
*
*
*
*
*
*
*
*
size = 333866            
outof sync, byte left: 4048                           
wait ready, data len: 0, stat 1                              
*
size = 2257824
resume wait buffer
size = 3215448
*
Loading douban.fm playlist...
size = 4000
total 4000 bytes
size = 2218416
size = 1078008
size = 2366424
*
size = 2532120
*
size = 2011392
size = 1599072
size = 2371320
size = 333866
unknown error: -9, left: 4142
wait ready, data len: 0, stat 1
*
size = 2033712
resume wait buffer
------------------------------------------------------
奇怪,今晚放了1小时没有死机!中途有串口捕捉到一些异常。但播放一直正常。
前几天几乎在一小时内必会死机至少一次。待会儿插上SD再听radio看看,前几天听RADIO
时,SD卡一直插着,今天没有插!应该不是SD卡的原因吧!

出0入0汤圆

发表于 2010-12-1 20:54:59 | 显示全部楼层
终于问题出现了,界面显示正在播放!但没有声音,按键无作用,貌似死机。
SystemInit......               

mem test pass!!               

\ | /      
- RT -     Thread Operating System                                 
/ | \ 0.3.1 build Nov 27 2010                              
2006 - 2010 Copyright by rt-thread team                                       
sdcard init failed                  
SPI File System initialized!                           
SD File System init failed!                           

LCD Device ID : 8989  data bus test pass! LCD GRAM test....  TEST PASS!                                                                       

/resource/remote.txt open succeed.                                 

decode succeed,The remote enable                                
rtc is not configured                     
please configure with set_date and set_time                                          
Thu Jan  1 00:00:00 1970                        

dm9000 id: 0x90000a46                     
finsh>>event size: 28                     
event size: 20              
event size: 28              
event size: 20              
operating at 100M full duplex mode                                 
Acquired IP address from DHCP server:192.168.1.2                                                
TCP/IP initialized!                  
stat -> stopped               
douban channel 5               
Loading douban.fm playlist...                             
Loading douban.fm playlist...                             
size = 4308           
total 4308 bytes               
stat[stoppped] -> buffering                           
wait ready, data len: 0, stat 1                              
size = 2099904              
resume wait buffer                  
size = 1900392              
size = 1414512              
size = 2596488              
*
*
*
*
*
*
*
size = 1621728              
size = 1961712              
*
*
size = 2496816              
unknown error: -9, left: 4264                             
*
*
*
*
*
*
*
*
*
size = 333866            
outof sync, byte left: 4048                           
wait ready, data len: 0, stat 1                              
*
size = 2257824              
resume wait buffer                  
size = 3215448              
*
Loading douban.fm playlist...                             
size = 4000           
total 4000 bytes               
size = 2218416              
size = 1078008              
size = 2366424              
*
size = 2532120              
*
size = 2011392
size = 1599072
size = 2371320
size = 333866
unknown error: -9, left: 4142
wait ready, data len: 0, stat 1
*
size = 2033712
resume wait buffer
size = 2046648
Loading douban.fm playlist...
size = 3996
total 3996 bytes
size = 1965936
*
size = 2121672
pbuf_free: p->ref > 0
Assertion: 563 in ..\..\net\lwip\src\core\pbuf.c, thread nbuf
(0) assert failed at sys_arch_assert:319
wait ready, data len: 0, stat 1
send event to ply_ui failed
*

出0入0汤圆

发表于 2010-12-1 21:00:28 | 显示全部楼层
Loading douban.fm playlist...
size = 3526
total 3526 bytes
stat[stoppped] -> buffering
wait ready, data len: 0, stat 1
send event to ply_ui failed
size = 1956624
resume wait buffer
stat[suspend] -> stopping
stat -> stopped
job done
Loading douban.fm playlist...
size = 3987
total 3987 bytes
stat[stoppped] -> buffering
wait ready, data len: 0, stat 1
size = 2397168
resume wait buffer
stat[buffering] -> stopping
Loading douban.fm playlist...
stat -> stopped
job done
(sem != RT_NULL) assert failed at rt_sem_take:307
====================================================
播放时,多按几次ENTER健(播放与STOP之间切换)也会死机.

出0入0汤圆

发表于 2010-12-2 09:21:05 | 显示全部楼层
好的,这块的东西会尽快的修复。感觉播放时内存操作上还存在问题

出0入0汤圆

发表于 2010-12-16 23:24:17 | 显示全部楼层
我的出现开机不显示。不知道是哪坏了?请大家指导下。最开始是好的,我自己试着刷了几次程序,结果刷黑了。按下RESET,屏幕亮下没反应了。


串口信息如下:
SystemInit......

mem test pass!!

\ | /
- RT -     Thread Operating System
/ | \ 0.3.1 build Dec 16 2010
2006 - 2010 Copyright by rt-thread team
sdcard init failed
FLASH ID: BF 25 41  match SST25VF016
SPI File System initialized!
SD File System init failed!
psr: 0x21000000
pc: 0x0801c294
lr: 0x080228a1
r12: 0x00000049
r03: 0x080228b1
r02: 0x00000001
r01: 0x97ffd73c
r00: 0x00000002
hard fault on thread: init
thread  pri  status      sp     stack size max used   left tick  error
-------- ---- ------- ---------- ---------- ---------- ---------- ---
tidle    0x1f ready   0x00000040 0x00000100 0x00000040 0x00000020 000
tshell   0x14 ready   0x00000040 0x00000800 0x00000040 0x0000000a 000
init     0x08 ready   0x00000040 0x00000800 0x00000228 0x00000012 000

出0入0汤圆

发表于 2010-12-16 23:53:14 | 显示全部楼层
回复【135楼】guaizima  电路BC
我的出现开机不显示。不知道是哪坏了?请大家指导下。最开始是好的,我自己试着刷了几次程序,结果刷黑了。按下reset,屏幕亮下没反应了。
-----------------------------------------------------------------------
不要再刷老程序了. 请用新的(请从SVN中取).
在INIT中就起不来的原因是 INIT中读了文件.但你现在文件系统可能已损坏.
请使用 104楼的单独U盘程序先把FLASH格式化并放好资源文件.再烧新的固件即可(104楼的程序也可以先测试).

出0入0汤圆

发表于 2010-12-17 00:14:45 | 显示全部楼层
学习!
头像被屏蔽

出0入0汤圆

发表于 2010-12-24 00:01:43 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽

出0入4汤圆

发表于 2010-12-24 16:00:47 | 显示全部楼层
能把最新的HEX文件发上来吗?

出0入4汤圆

发表于 2010-12-25 00:01:18 | 显示全部楼层
\ | /      
- RT -     Thread Operating System                                 
/ | \ 0.3.1 build Dec 24 2010                              
2006 - 2010 Copyright by rt-thread team                                       
sdcard init failed                  
SPI File System initialized!                           
SD File System init failed!                           

LCD Device ID : 8989  data bus test pass! LCD GRAM test....  TEST PASS!                                                                       

rem_codes /resource/remote.txt open fail! fd:-1                                               
The remote disbale.                  
please run rem_study()                     
rtc is not configured                     
please configure with set_date and set_time                                          
Thu Jan  1 00:00:00 1970                        

dm9000 id: 0x90000a46                     
finsh>>event size: 28                     
event size: 20              
event size: 28              
event size: 20              
operating at 100M full duplex mode                                 
Acquired IP address from DHCP server:192.168.0.219                                                  
TCP/IP initialized!                  
stat -> stopped               
touch up: (76, 144)                  
touch up: (141, 42)                  
touch up: (144, 42)                  
touch up: (144, 42)                  
touch up: (97, 14)                  
touch up: (66, 66)                  
touch up: (78, 206)                  
douban channel 3               
Loading douban.fm playlist...                             
size = 4802           
total 4802 bytes               
stat[stoppped] -> buffering                           
wait ready, data len: 0, stat 1                              
send event to ply_ui failed                           
size = 1334808              
resume wait buffer                  
psr: 0x81000000
pc: 0x08019b60
lr: 0x08019b49
r12: 0x0000000a
r03: 0x00000000
r02: 0xfffffccf
r01: 0xffffd2e7
r00: 0xfffffd1e
hard fault on thread: ply_bg
thread  pri  status      sp     stack size max used   left tick  error
-------- ---- ------- ---------- ---------- ---------- ---------- ---
nbuf     0x16 suspend 0x000000a8 0x00000400 0x00000298 0x00000002 000
tcpip    0x0a suspend 0x000000c8 0x00000400 0x00000240 0x0000000a 000
etx      0x0c suspend 0x00000088 0x00000200 0x00000088 0x0000000d 000
erx      0x0c suspend 0x00000088 0x00000200 0x000000d0 0x00000010 000
remote   0x1e suspend 0x00000078 0x00000180 0x00000078 0x00000002 000
key      0x1e suspend 0x00000090 0x00000180 0x00000090 0x00000005 000
ply_ui   0x19 suspend 0x000000d0 0x00001000 0x000005a0 0x00000002 000
ply_bg   0x0d ready   0x00000120 0x00000400 0x00000370 0x00000005 000
info     0x19 suspend 0x000000d0 0x00000800 0x00000288 0x00000005 000
rtgui    0x0f suspend 0x000000e0 0x00000400 0x000000e0 0x00000005 000
tidle    0x1f ready   0x00000040 0x00000100 0x00000040 0x00000001 000
tshell   0x14 suspend 0x00000088 0x00000800 0x00000088 0x0000000a 000

播放网络电台就死,自己用电脑架了个电台,直接用根网线和电脑连上,就正常

出0入0汤圆

发表于 2010-12-25 00:11:17 | 显示全部楼层
回复【140楼】ztrx  
psr: 0x81000000
pc: 0x08019b60
lr: 0x08019b49
r12: 0x0000000a
r03: 0x00000000
-----------------------------------------------------------------------
进入调试,直接输入 PC=0x08019b60,看看在哪个函数中.

出0入0汤圆

发表于 2011-1-15 22:52:30 | 显示全部楼层
【学习的初级阶段】
快疯啦。用 4.12/4.14/3.80a 测试都没过,编译下载下去是白屏,重新下载 光盘的就可以。看论坛上说 3.80A 也可以的哦。
有没哪个共享一下开发 MDK ,谢谢!也共享一个最新的 hex,用来做测试,谢谢!

出0入0汤圆

发表于 2011-1-17 08:44:49 | 显示全部楼层
SystemInit......
CPU SN: xx
mem test pass!!

\ | /
- RT -     Thread Operating System
/ | \ 0.4.0 build Jan 16 2011
2006 - 2009 Copyright by rt-thread team
sdcard init failed
SPI File System initialized!
SD File System init failed!
Unable to open GBK to Unicode look up table.
Unable to open Unicode to GBK look up table.
load_default!
Invalid LCD ID:00009325
Please check you hardware and configure. data bus test error: 5555 5555
rem_codes /resource/remote.txt open fail! fd:-1
The remote disbale.
please run rem_study()
rtc is not configured
please configure with set_date and set_time
Thu Jan  1 00:00:00 1970

dm9000 id: 0x90000a46
finsh>>could not establish link


SystemInit......
CPU SN: xx
mem test pass!!

\ | /
- RT -     Thread Operating System
/ | \ 0.4.0 build Jan 16 2011
2006 - 2009 Copyright by rt-thread team
sdcard init failed
SPI File System initialized!
SD File System init failed!
Unable to open GBK to Unicode look up table.
Unable to open Unicode to GBK look up table.
load_default!
Invalid LCD ID:00009325
Please check you hardware and configure. data bus test error: 5555 5555
rem_codes /resource/remote.txt open fail! fd:-1
The remote disbale.
please run rem_study()
rtc is not configured
please configure with set_date and set_time
Thu Jan  1 00:00:00 1970

dm9000 id: 0x90000a46
finsh>>operating at 100M full duplex mode
Acquired IP address from DHCP server:xx.xx.xx.xx
TCP/IP initialized!
stat -> stopped

出0入0汤圆

发表于 2011-1-17 09:44:00 | 显示全部楼层
回复【143楼】unitepower  
Invalid LCD ID:00009325
-----------------------------------------------------------------------
请配置一下board.h
// <o> LCD Module Version
// <1=>Version 1: fmt0371
// <2=>Version 2: i8080/16bit ili9320/9325/9328 LG4531 ST7783
// <3=>Version 3: i8080/16bit SSD1289
//         <i>Default: 1
#define LCD_VERSION             2

出0入0汤圆

发表于 2011-1-17 12:11:32 | 显示全部楼层
回复【144楼】aozima
-----------------------------------------------------------------------

非常感谢。系统跑起来了。9325 是 Ilitek 的 IC,我粗心了。

但是 ① 字库还是不行;是不是生成文件的时候,MDK 没有将资源文件放进去?请教一下,是 MDK 来完成这个事情,还是代码来完成?或者 hex 后期制作的时候?
通过按键选择 USB 连接 PC,PC 识别成 3 个盘符,但是都没有内容。
为此:utils.c 里边的 ff_convert_init()找不到文件。
进去再发现
No find the device sd0 !!!!
检查 Flash 是 SST25VF016B,和代码一致。貌似是寻找设备节点出啥问题了,功力还不够,没看出来。

② 触摸屏幕任何位置都是输出 touch up: (63992, 64506)。屏幕暂时不能操作,按键可以。

mem test pass!!

\ | /
- RT -     Thread Operating System
/ | \ 0.4.0 build Jan 17 2011
2006 - 2009 Copyright by rt-thread team
sdcard init failed
SPI File System initialized!
SD File System init failed!
Unable to open GBK to Unicode look up table.
Unable to open Unicode to GBK look up table.
load_default!

LCD Device ID : 9325  data bus test pass! LCD GRAM test....  TEST PASS!

rem_codes /resource/remote.txt open fail! fd:-1
The remote disbale.
please run rem_study()
rtc is not configured
please configure with set_date and set_time
Thu Jan  1 00:00:00 1970

dm9000 id: 0x90000a46
finsh>>operating at 100M full duplex mode
Acquired IP address from DHCP server:192.168.1.54
TCP/IP initialized!
stat -> stopped
touch up: (63992, 64506)

出0入0汤圆

发表于 2011-1-17 12:18:18 | 显示全部楼层
再复制资源文件到SPI FLASH中即可(第二个U盘). (想偷懒就下载119楼的)
你没插SD卡,当然找不到SD卡设备.

出0入0汤圆

发表于 2011-1-17 12:29:10 | 显示全部楼层
我已经复制出来了。
① 格式化 第二个盘;
② 拷贝资源文件进去;
3  重启 OK。

SD0 是 SD 卡设备,收到,谢谢!

下一步要学习 OS 里边设备怎么识别进去挂接的。

出0入0汤圆

发表于 2011-1-17 12:55:02 | 显示全部楼层
播放 乡愁工作室 死机。

阿莫,有提交 bug 的地方不?有效 BUG 专门管理起来,大家一起修改的地方。

can't read more data
connect to: 122.116.172.47...
SHOUTCAST request:
GET / HTTP/1.1
Host: 122.116.172.47
User-Agent: RT-Thread HTTP Agent
Icy-MetaData: 1
Connection: close
>>&auml;&Oacute;stat[stoppped] -> buffering
wait ready, data len: 0, stat 1
no data on recv, len 0,err 110
no data on recv, len 0,err 110
psr: 0x81000000
pc: 0x08026b42
lr: 0x08026b21
r12: 0x00000000
r03: 0xffffffff
r02: 0x20005bbc
r01: 0x0000874a
r00: 0x0000874a
hard fault on thread: erx
thread  pri  status      sp     stack size max used   left tick  error
-------- ---- ------- ---------- ---------- ---------- ---------- ---
       0x00

出0入0汤圆

发表于 2011-1-17 17:41:38 | 显示全部楼层
功能说明:
测试 读取一个电台文件,放入 list,之后播放 list 的第一个电台。
----------------------------------------------------------------------------------
    struct station_list* list;

    rt_kprintf("My start rt_app_ipradio_thread_entry !\n");

    list = station_list_create(RADIO_FN);
    if (list != RT_NULL)
    {
               play_list_clear();
        play_list_append_radio(list->items[0]->url, list->items[0]->title);
    }
    else return; /* not play radio station */

    player_play_item(play_list_start());
-----------------------------------------------------------------------------------
Build target 'RT-Thread STM32 Radio'
compiling application.c...
application.c(136): warning:  #223-D: function "rt_app_ipradio_start" declared implicitly
application.c(181): error:  #44: expression must have pointer type
application.c(181): error:  #44: expression must have pointer type
Target not created
-----------------------------------------------------------------------------------
其中 url & title 都是数组
struct station_item
{
        char title[40];
        char url[128];
};
------------------------------------------------------------------------------------
MDK 不能用 数组地址 来 当指针用?第一步改代码就受阻了, %>_<%。。。。。

出0入0汤圆

发表于 2011-1-17 19:31:42 | 显示全部楼层
我在 WIN-TC 上,
play_list_append_radio(list->items[0]->url, list->items[0]->title);
修改为
play_list_append_radio( &list->items[0]->url, &list->items[0]->title );
是可以得到正确结果的。

但是 MDK 就是编译都通不过。
application.c(181): error:  #44: expression must have pointer type
application.c(181): error:  #44: expression must have pointer type

要高手赐教一下

出0入0汤圆

发表于 2011-1-17 22:15:39 | 显示全部楼层
编译 OK 了

出0入0汤圆

发表于 2011-1-18 10:40:52 | 显示全部楼层
【学习日志】
1、开始学习的朋友,有暂时不学 UI 的要留意,如果你关闭了 RT_USING_RTGUI ,网络收音 部分的功能用不了。需要自己调整设置流程。
2、MDK4.14 可以编译使用了,貌似 bug 已经修正(也有可能我没碰到)。
3、学习之前,先检查板子是否和你的配置文件匹配 board.h。
4、为不影响其它任务,可以在 application.c 里边,创建一个自己的线程。

出0入0汤圆

发表于 2011-1-28 14:40:43 | 显示全部楼层
aozima 请教如何剥离 GUI,用串口_交互来控制 ipradio 的操作。
我剥离一直没成功,嵌套比较多,还没搞清楚控制流程。

出0入0汤圆

发表于 2011-1-28 18:04:38 | 显示全部楼层
debug 发现,老是在

    rt_mq_send(player_thread_mq, (void*)&request, sizeof(struct player_request));
--》》
        msg = (struct rt_mq_message*)mq->msg_queue_free;
        /* message queue is full */
        if (msg == RT_NULL)
        {
                /* enable interrupt */
                rt_hw_interrupt_enable(temp);

                return -RT_EFULL;
        }
这个地方 msg 返回时是 RT_NULL,好像是 队列老是满的,为啥呢?

出0入0汤圆

发表于 2011-3-27 21:42:15 | 显示全部楼层
看看!

出0入0汤圆

发表于 2011-3-29 19:32:24 | 显示全部楼层
网络收音机,mark

出0入0汤圆

发表于 2011-6-26 20:00:43 | 显示全部楼层
mark

出0入0汤圆

发表于 2011-7-13 16:50:36 | 显示全部楼层
如何买?想买一个

出0入0汤圆

发表于 2011-8-14 21:43:17 | 显示全部楼层
mark,好长,看了好久。

出0入0汤圆

发表于 2011-8-14 21:48:40 | 显示全部楼层
remote.txt是什么文件?附送的光盘上没有这个文件。我建了空文件,不知里面要填些什么参数。

LCD Device ID : 8989  data bus test pass! LCD GRAM test....  TEST PASS!

/resource/remote.txt open succeed.

rem_codes decode fail,The remote disable
Sun Aug 14 19:58:45 2011

dm9000 id: 0x90000a46
finsh>>event size: 28
event size: 20
event size: 28
event size: 20
could not establish link

还有个问题
我用SVN下了最新的代码,USB联机后再断开,电脑死机了,要按电源键重启才行。但是用光盘上附带的代码就没这个问题。郁闷。

出0入0汤圆

发表于 2012-2-10 16:38:28 | 显示全部楼层
mark!!

出0入0汤圆

发表于 2013-7-15 20:32:03 | 显示全部楼层
帮顶看看
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片。注意:要连续压缩2次才能满足要求!!】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-10-3 01:31

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表