within the SDK it seems that the I2C master drivers are configured with the files DevCfg_master_fom_out_cdb.xml and DevCfg_master_devcfg_out_cdb.xml. Using this default configuration I was able to access a device using I2C1 instance (QAPI_I2CM_INSTANCE_002_E) with some code based on the I2C sample code from the API documentation.
When I change my code to access a device using I2C0 instance (QAPI_I2CM_INSTANCE_001_E) the code crashes.
I made my additions for I2C using the QCLI_demo setup.
Can someone explain how to configure I2C0 instance and why they are located in two different XML files (devcfg|fom)?
I need to use both I2C instances in FOM mode. When I move the configuration from devcfg.xml to the fom.xml I get a linker error: unresolved symbol I2CCoreConfig01_qca4020_devcfg_xml