cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the default I2C address of STSAFE-A120

LJimé.1
Associate II

Hi,

I would want to know the default I2C address of the STSAFE-A120 and if it is possible to change it, as it is done in the A110.

In addition, is there any documentation about the content of the STSAFE-A120 I2C registers?

Thank you in advance.

Regards,

Luis

1 ACCEPTED SOLUTION

Accepted Solutions
Benjamin BARATTE
ST Employee

Hi @LJimé.1 ,

 

The STSAFE-A120 I2C address is part of the customization, therefore, it's describe in the application note on the evaluation profile here

The default value is 0x20 on 7 bits.

 

Yes, this value is updatable as on STSAFE-A110.

 

The STSAFE-A120 is not based on registers. It's a frame based protocol. Therefore, the STSELib is here to manage the frame creation as an helper to your application.

You need to provide a simple send/receive I2C API to have it working on your device.

 

To update the I2C address, you have the command stse_put_i2c_parameters function.

Warning, once made an update of the I2C address, you will need to reset the STSAFE-A120 to apply the new I2C address and restart you STSELib handle with the new I2C address.

 

Best Regards,

Benjamin

View solution in original post

2 REPLIES 2
Benjamin BARATTE
ST Employee

Hi @LJimé.1 ,

 

The STSAFE-A120 I2C address is part of the customization, therefore, it's describe in the application note on the evaluation profile here

The default value is 0x20 on 7 bits.

 

Yes, this value is updatable as on STSAFE-A110.

 

The STSAFE-A120 is not based on registers. It's a frame based protocol. Therefore, the STSELib is here to manage the frame creation as an helper to your application.

You need to provide a simple send/receive I2C API to have it working on your device.

 

To update the I2C address, you have the command stse_put_i2c_parameters function.

Warning, once made an update of the I2C address, you will need to reset the STSAFE-A120 to apply the new I2C address and restart you STSELib handle with the new I2C address.

 

Best Regards,

Benjamin

Hi Benjamin,

Thank you very much for your answer!

Regards,

Luis