211A API CyGetSignature question

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

cross mob
jocac_4016601
Level 3
Level 3
10 replies posted 10 likes given 5 replies posted

From your API:

5.3 CyGetSignature

This API retrieves the signature of the device firmware.

Description

This API retrieves the signature of the device firmware.

Parameters

Parameters Description

CY_HANDLE handle Valid device handle

UCHAR * pSignature Signature returned

Question: what value is pSignature?  I have hunted through your CPP code and can't find it.

0 Likes
1 Solution

The correct answer is 4.

pSignature = uint(4)

anyVarFooFooselfWants = UCHAR * pSignature  # array of 4 bytes of type character

After calling:

anyVarFooFooselfWants = "CYUS"  # without the quotes

View solution in original post

0 Likes
4 Replies
jocac_4016601
Level 3
Level 3
10 replies posted 10 likes given 5 replies posted

anything?  Take your time, I did a USB to SPI interface with microchip in 3 days, I only have 3 weeks into this chip.

0 Likes

This default signature is "CYUS" in firmware.

0 Likes

The correct answer is 4.

pSignature = uint(4)

anyVarFooFooselfWants = UCHAR * pSignature  # array of 4 bytes of type character

After calling:

anyVarFooFooselfWants = "CYUS"  # without the quotes

0 Likes

Yes, the signature string is "CYUS" without quotes and the length is 4.

0 Likes