2016-11-25 03:27 AM
Hi guys,
as far as I know, STemWin library requires the CRC module to by enabled before calling GUI_Init(), to verify that it's running on STM32 platform (mentioned on this forum).As I plan to use CRC module in my application, is it safe to use it after STemWin is initialized? I tried to disable CRC module immediately after GUI_Init() and STemWin works fine. I just want to be sure, that STemWin needs CRC only during init.Thank you in advance for any comments! #stemwin #crc #stm32l4Solved! Go to Solution.
2018-01-07 05:11 PM
The CRC peripheral is an ST specific implementation, the software test that the data register sequences as expected, ie writes test data pattern, reads and confirms data pattern output by peripheral.
2016-11-25 05:39 AM
Hello,
Why do you want disable CRC ?As mentioned in the AN4323: ''The CRC module (in RCC peripheral clock enable register) should be enabled before using the library.''''Note that before initializing the GUI, the CRC module (in RCC peripheral clock enable register) should be enabled.''I recommend you to have a look to the STemWin applications under the STM32CubeL4 firmware package: STM32Cube_FW_L4_V1.5.0\Projects\STM32L476G_EVAL\Applications\STemWin, it can be very useful.You should follow the configuration steps provided in the : Getting started with STemWin Library, in section “3 How to use STemWin Library step by step�.Regards2016-11-25 06:25 AM
Dear forumstm32,
thank you for your reply.I have disabled CRC module just because I wanted to test, if STemWin library is using it after initialization. I fully understand, that STemWin needs CRC module for init. But what is not clear is if CRC module is used by STemWin later. I plan to use CRC module for CRC calculation in communication task and also for some operation on FLASH storage. If STemWin will use CRC also later after initialization, I can not use CRC module anymore, because of possible colisions. I forget to mention, that I'm using FreeRTOS, STemWin is running in one thread only. But other (more than one) threads will use CRC module. I'm able to control access to CRC module between my threads using MUTEX or Gatekeeper approach, but I have no idea when/if STemWin tries to access the CRC module in same time when me.RegardsJan2018-01-06 05:39 PM
Why do we need to enable CRC before using STemwin?
2018-01-06 07:05 PM
So licensed software is locked to ST hardware.
2018-01-07 07:21 AM
Why keil MDK emWin don't need any CRC like some kind of stuff?
2018-01-07 08:27 AM
Look you're digging up a year old thread and arguing about why ST locks IP they licensed to their hardware. Keil has their own agreement with Segger.
If Segger now provides everything free go download that instead.
2018-01-07 04:22 PM
Your answer is helpful. Can you explain how license lock works? I don't have any clue about that and just want to know a little bit more.
2018-01-07 05:11 PM
The CRC peripheral is an ST specific implementation, the software test that the data register sequences as expected, ie writes test data pattern, reads and confirms data pattern output by peripheral.