cancel
Showing results for 
Search instead for 
Did you mean: 

GUI_Init() from the STemWin library gets stuck with some specific configurations of CRC.

lucian_andercou
Associate II

I integrated STemWin using CubeMX into an STM32f767BIT6 project and it only works with default settings for CRC. If I change the settings, execution halts inside the GUI_Init() function. I need to get StemWin to work with the following settings for CRC:

Length : 16-Bit,

Generating Polynomial: X12+X5+X0,

Init Value: 0xffff,

Input Data Inversion: Byte,

Output Data Inversion: Enable

Input Data Format : Bytes.

I replaced

_DMA_ExecOperation()

with

while (DMA2D->CR & DMA2D_CR_START) {}

in bot configurations, otherwise execution halts inside "_DMA_ExecOperation()" function.

I attach both Cube configurations. Any advice is appreciated.

4 REPLIES 4

ST uses the 32-bit default mode of the CRC Peripheral to validate it is running on STM32 chips. I'd patch the object.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
lucian_andercou
Associate II

@Community member​ , what do you mean by patch the object ?

I mean go in with a hex editor and "fix" the problem..

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
lucian_andercou
Associate II

Thank you, @Community member​ .