完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
所以我正在研究一些BooLoad,我想知道我如何能拉动芯片的SiliconID和SiliconRev(来检查关于芯片的可引导加载的有效性)。
我通过一些代码挖掘,发现了一些似乎持有这些值的寄存器。 如果(CysSavaPixNAN32(CyDeVixChIPjJTAGYID)==SiLoNID&CyDeVixChIPaReVyValue==SiLon ReV){//OK,让我们继续进行。对不起,有些事不对。} 所以我有2个问题: 1、这个代码会做我想做的吗?还是我误解了? 2、PSOC3的寄存器映射在哪里?我好像在TRM里找不到它。 PSoCRocks。 当做, 克曼卡德 以上来自于百度翻译 以下为原文 So I'm working on some bootloaders,and I'd like to know how I can pull the chip's SiliconID and SiliconRev(to check the validity of the incoming bootloadable with respect to the chip.) I dug through some code and found some registers that seem to be holding these values. if(CYSWAP_ENDIAN32(CYDEV_CHIP_JTAG_ID)==siliconID && CYDEV_CHIP_REV_EXPECT==siliconRev){ //Okay,lets carry on. }else{ //Sorry,something aint right. } So I have 2 questions: 1.Will this code do what I want it to?..or have I misunderstood it? 2.Where is the register map for PSoC3? I didnt seem to find it in the TRM. PSoC Rocks. Regards, kmmankad |
|
相关推荐
3个回答
|
|
1)是的,CyDaveCHIPSJJTAGIDID和CyDeVixChIP.Rev.WITH位保持硅ID和修订字节,并与BooLoad加载之前的CyACD文件头记录进行比较。
页眉记录格式: [4-字节硅锰] [1字节硅通] [1字节校验和类型] 我找到了另一个包含XML修订ID的RealStMyLogixRevIdID。 2)不确定TRM中定义这些寄存器的位置 以上来自于百度翻译 以下为原文 1) Yes the CYDEV_CHIP_JTAG_ID and CYDEV_CHIP_REV_EXPECT bits holds the silicon ID and revision bytes and is compared with the header record of cyacd file before bootloading. The header record format: [4-byte SiliconID][1-byte SiliconRev][1-byte Checksum Type] I found another register MLOGIC_REV_ID which contains the Silicon Revision ID. 2) Not sure where these registers are defines in TRM |
|
|
|
谢谢SRIM。
那么,在哪里可以找到PSOC3的寄存器呢?似乎找不到任何地方的信息。 当做, 克曼卡德 以上来自于百度翻译 以下为原文 Thanks srim. So where can I find the registers for the PSoC3? ..cant seem to find that info anywhere. Regards, kmmankad |
|
|
|
没关系,我找到了寄存器TRM。我只是想要:
PSoC 3体系结构TRM PSoC 3寄存器TRM 以上来自于百度翻译 以下为原文 Never mind,I found the registers TRM.Just what I wanted :-) PSoC 3 Architecture TRM PSoC 3 Registers TRM |
|
|
|
只有小组成员才能发言,加入小组>>
760个成员聚集在这个小组
加入小组2151 浏览 1 评论
1897 浏览 1 评论
3718 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1829 浏览 6 评论
1574 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
778浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
536浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
482浏览 2评论
443浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
1139浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-2-24 11:31 , Processed in 1.045720 second(s), Total 102, Slave 86 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191