cancel
Showing results for 
Search instead for 
Did you mean: 

CRC issues with HAL and STemWin

jbos
Associate
Posted on October 24, 2016 at 13:03

I'm having some problems using the STemWin library and the STM32 L4 HAL library. I would like to calculate a CRC16-CCITT using the HAL library. Unfortunately, the STemWin library isn't working anymore when I use the HAL functions to initialize the CRC.

What is the correct approach to using both the HAL CRC and the STemWin library?

2 REPLIES 2
slimen
Senior
Posted on October 24, 2016 at 14:17

Hello,

As mentioned in the page 6 of

http://www.st.com/content/ccc/resource/technical/document/application_note/54/c9/95/42/8c/0b/43/69/DM000896pdf/files/DM000896pdf/jcr:content/translations/en.DM000896pdf

to call GUI_Init function prior to use any STemWin function or GUI routines, if not STemWin will be not function:

''The CRC module (in RCC peripheral clock enable register) should be enabled before using the library.''

In the AN4323, review “Hello world�? program which illustrates this initialization.

You can refer to the related

https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/STemWin%20GUI_Init%28%29%20crashed&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=2968

for StemWin issue.

Regards

Posted on October 24, 2016 at 17:47

The software is testing the 32-bit CRC polynomial used by all STM32 parts, not the alternate ones supported by a subset of the parts.

I'd remove the test, but that's me..

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