2019-01-04 07:37 AM
I'm using STM32F412 MCU connected via SPI bus to EVALSTPM33.
I downloaded en.stsw-stpm002 driver from ST.
All is fine till calling Metro_ApplyConfig.
Metro_Write_Block_to_Device transmits default configuration correctly.
Metro_Read_Block_From_Device receives default configuration correctly.
However, when I try to change the default configuration, (for example disable the CRC):
Metro_Write_Block_to_Device transmits user configuration correctly.
Metro_Read_Block_From_Device receives default configuration.
It seems that the configuration is not written to the registers.
What is wrong?
Jacob
2019-04-02 02:17 AM
When you want to disable the CRC, your following commands must be aligned with the new configuration, so you must use a 4 bytes cast instead of 5.
Be careful also to send the right CRC value when you send your "CRC disabling" command.
Didier