Skip to main content
GauravMore
Associate II
November 1, 2022
Solved

How to activate I/O compensation cell.

  • November 1, 2022
  • 1 reply
  • 2740 views

I was working with the test code of QSPI. I generated the code using the latest STM CUBMX ver 1.10.1.

But after generation also it didn’t worked. Then I compared the code with the sample test code.

There I found the below mentioned code patch in the SystemClock_Config function.  

Note : The activation of the I/O Compensation Cell is recommended with communication interfaces (GPIO, SPI, FMC, QSPI ...) when operating at high frequencies(please refer to product datasheet)
 The I/O Compensation Cell activation procedure requires :
 - The activation of the CSI clock
 - The activation of the SYSCFG clock
 - Enabling the I/O Compensation Cell : setting bit[0] of register SYSCFG_CCCSR
 */
 /*activate CSI clock mondatory for I/O Compensation Cell*/
 __HAL_RCC_CSI_ENABLE() ;
 /* Enable SYSCFG clock mondatory for I/O Compensation Cell */
 __HAL_RCC_SYSCFG_CLK_ENABLE() ;
 /* Enables the I/O Compensation Cell */
 HAL_EnableCompensationCell();

 After adding the above mentioned code the generated code worked as expected. But I wonder that this code is not generated by the code generator.

Since it is recommended as per the note mentioned above. I also tried to find as where we can change this setting but was not able to find the same.

Can anyone guide as to where this I/O compensation cell can be activated using the code generator.

This topic has been closed for replies.
Best answer by Aymen ABBES

Hello @GauravMore​,

Thank you for bringing this issue to our attention.

I reported internally.

Internal ticket number: 138890 (This is an internal tracking number and is not accessible or usable by customers).

Aymen

1 reply

Aymen ABBES
ST Employee
November 15, 2022

Hello @GauravMore​,

Thank you for bringing this issue to our attention.

I reported internally.

Internal ticket number: 138890 (This is an internal tracking number and is not accessible or usable by customers).

Aymen