Skip to main content
lucian_andercou
Associate
November 15, 2018
Question

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

  • November 15, 2018
  • 4 replies
  • 1199 views

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.

This topic has been closed for replies.

4 replies

Tesla DeLorean
Guru
November 15, 2018

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
lucian_andercou
Associate
November 15, 2018

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

Tesla DeLorean
Guru
November 15, 2018

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

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
lucian_andercou
Associate
November 16, 2018

Thank you, @Community member​ .