- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
PSoC 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks srim.
So where can I find the registers for the PSoC3? ..cant seem to find that info anywhere.
Regards,
kmmankad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Never mind,I found the registers TRM.Just what I wanted 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The REV_ID register isn't listed in the TRM though?