cancel
Showing results for 
Search instead for 
Did you mean: 

STPM33 configuration problem

JZoha
Associate

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

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 REPLY 1
Didier HERROUIN
ST Employee

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