Get the SiliconID and SiliconRev for the PSoC3

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

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

0 Likes
1 Solution
Anonymous
Not applicable

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

View solution in original post

0 Likes
4 Replies
Anonymous
Not applicable

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

0 Likes
Anonymous
Not applicable

Thanks srim.

   

So where can I find the registers for the PSoC3? ..cant seem to find that info anywhere.

   

 

   

Regards,

   

kmmankad

0 Likes
Anonymous
Not applicable

Never mind,I found the registers TRM.Just what I wanted 🙂

   

PSoC 3 Architecture TRM

   

PSoC 3 Registers TRM

0 Likes

The REV_ID register isn't listed in the TRM though?

0 Likes