请选择 进入手机版 | 继续访问电脑版
查看: 823|回复: 3

[S08P-Lite体验]二.板载例程体验

[复制链接]
  • TA的每日心情
    开心
    2021-6-16 07:43
  • 签到天数: 155 天

    [LV.7]常住居民III

    9

    主题

    519

    帖子

    0

    金牌会员

    Rank: 6Rank: 6

    积分
    1150
    最后登录
    2021-11-12
    发表于 2021-1-14 13:01:53 | 显示全部楼层 |阅读模式
    S08P-Lite出厂自带例程,也可以在官方主页上下载例程并自行烧录。
    该例程可以体验板卡的各个模块,如热敏电阻,DAC,SPI Flash,按键,红外等。
    板子上电后,就会通过串口(波特率115200)打印以下内容,然后我们根据提示,逐步测试各个模块
    1. --System Log BEGINS--


    2. SRS=0x40
    3. Pin Reset

    4. --System Log ENDS--


    5. -- S08-LITE FAT BEGINS --

    6. Thermistor test: BEGINS
    7. Thermistor test: heat the Thermistor RT1 on board now
    8. Thermistor test: pass test until the Thermistor is heated over the given value
    复制代码
    我们需要根据提示逐步测试板卡功能,此时是提示测试热敏电阻,我们把手放在热敏电阻上面,即可完成测试。
    1. Thermistor test: PASSED

    2. Potentiometer test: BEGINS
    3. Potentiometer test: turn the Potentiometer R54 on board now
    4. Potentiometer test: pass test until the Potentiometer is turned to the max value
    5. Potentiometer test: PASSED

    6. DAC5571 test: BEGINS
    7. DAC5571 test: connect jumper J15 2-3 and J6 2-3
    8. DAC5571 test: the DAC5571 output from 0 to 255 automatically now
    9. DAC5571 test: pass test until the DAC5571 output the max value
    10. DAC5571 test: PASSED

    11. FlashW25Q32 test: BEGINS
    12. FlashW25Q32 test: read device ID is 0x15
    13. FlashW25Q32 test: erase flash sector 0
    14. FlashW25Q32 test: after erase, contents in sector 0 should be all 0xFF
    15. FlashW25Q32 test: read flash sector 0:
    16. 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
    17. FlashW25Q32 test: write flash sector 0:
    18. FlashW25Q32 test: after write,  contents in sector 0 should equal to what's written
    19. 0x0 0x1 0x2 0x3 0x4 0x5 0x6 0x7 0x8 0x9 0xA 0xB 0xC 0xD 0xE 0xF
    20. FlashW25Q32 test: read flash sector 0:
    21. 0x0 0x1 0x2 0x3 0x4 0x5 0x6 0x7 0x8 0x9 0xA 0xB 0xC 0xD 0xE 0xF
    22. FlashW25Q32 test: PASSED

    23. Button test: BEGINS
    24. Button test: press button 2 or 3 on board now
    25. Button test: pass test until button 2, 3 are pressed
    复制代码
    我们会看到热敏电阻测试通过,接下来是板载电位器测试,DAC测试,SPI Flash测试,然后是按键测试,按下按键2,3后即可开始下一步。
    1. Button test: PASSED

    2. TSI test: BEGINS
    3. TSI test: touch pad 1 or 2 on board now
    4. TSI test: pass test until pad 1, 2 are touched
    复制代码
    接下来是电容触摸按键测试
    1. TSI test: PASSED

    2. IRDA test: BEGINS
    3. IRDA test: connect jumper J5 2-3
    4. IRDA test: power on another IRDA transceiver board, and place the two boards close
    5. IRDA test: pass test until the IRDA send and receive all data
    6. Transmit                Receive
    7. 0x0                        0x0
    8. 0x1                        0x1
    9. 0x2                        0x2
    10. 0x3                        0x3
    11. 0x4                        0x4
    12. 0x5                        0x5
    13. 0x6                        0x6
    14. 0x7                        0x7
    15. IRDA test: PASSED


    16. -- S08-LITE FAT ENDS --
    复制代码
    至此板卡功能测试程序到此结束。

    该会员没有填写今日想说内容.
    回复

    使用道具 举报

  • TA的每日心情
    开心
    2024-3-26 15:16
  • 签到天数: 266 天

    [LV.8]以坛为家I

    3298

    主题

    6545

    帖子

    0

    管理员

    Rank: 9Rank: 9Rank: 9

    积分
    31998
    最后登录
    2024-4-9
    发表于 2021-1-14 13:21:37 | 显示全部楼层
    感谢分享,有什么问题可随时与我联系
    签到签到
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    6 天前
  • 签到天数: 1335 天

    [LV.10]以坛为家III

    88

    主题

    4292

    帖子

    12

    版主

    Rank: 7Rank: 7Rank: 7

    积分
    9049
    最后登录
    2024-4-13
    发表于 2021-1-15 10:49:41 | 显示全部楼层
    这个小板子的出厂程序做得还挺像那么回事啊
    该会员没有填写今日想说内容.
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    6 天前
  • 签到天数: 1335 天

    [LV.10]以坛为家III

    88

    主题

    4292

    帖子

    12

    版主

    Rank: 7Rank: 7Rank: 7

    积分
    9049
    最后登录
    2024-4-13
    发表于 2021-1-15 10:50:00 | 显示全部楼层
    这个小板子的出厂程序做得还挺像那么回事啊
    该会员没有填写今日想说内容.
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /4 下一条

    Archiver|手机版|小黑屋|恩智浦技术社区

    GMT+8, 2024-4-16 21:27 , Processed in 0.111193 second(s), 21 queries , MemCache On.

    Powered by Discuz! X3.4

    Copyright © 2001-2021, Tencent Cloud.

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