- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to program the CapSense with a µC. Specifically I want to change a SPO register to be used as a driven shield. Since I'm new to this, some of the first instructions in the programming manual are unclear to me:
//-------------------------------------------------------------------------------
// Note, that this step requires following data from hex-file:
// - I2C Program Address (0x90500002 – offset in hex)
// - I2C Verify Address (0x90500003 – offset in hex)
// Programmer should implement below APIs:
// 1) HEX_GetProgramAddr() and 2) HEX_GetVerifyAddr()
// Reset Target depending on acquire mode – Reset or Power Cycle
If (AcquireMode == “Reset”) ToggleReset(); // Toggle XRES pin, target must be powered.
Else If (AcquireMode == “Power Cycle”) Power(ON);// Supply power to target.
// Loop to find out correct I2C device from hex-file
Program_Address = HEX_GetProgramAddr();
Verify_Address = HEX_GetVerifyAddr();
So do I get this right, that I get the Hex File only by reading it from the chip? What is this the proper way of receiving the hexfile from the CapSense?
So do I need to read the adresses 0x90500002 and 0x90500003 of the CapSense with I2C? Will the result of this reading be the Hex File Record Struct, where I can extract the adresses? If so, how do I know the size of the structure before reading it?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
CY8CMBR3102 is a I2C config chip, the customer don't program it using SWD interface.
If you want to enable the shield function, please refer to the below linker:
The chip register map is fixed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
CY8CMBR3102 is a I2C config chip, the customer don't program it using SWD interface.
If you want to enable the shield function, please refer to the below linker:
The chip register map is fixed.