2019-05-04 10:42 AM
I'm trying to play with STemWin (I can't use TouchGFX because I'm on Linux) on the STM32F429iDiscovery board. When I create my project in STM32CubeIDE and build, it's clear that the STemWin libraries are not part of my project. I can create a folder in my project, copy STemWin_CM4_wc16.a there, rename it with a 'lib' prefix, and add a library path and file in the project settings and get it to compile (though the code will then compile and download to the target, it still won't run properly.)
FEATURE REQUEST: When GRAPHICS -> STemWin is enabled in CubeMX, the GUI should ask the user whether to use the 16- or 32- bit wchar version, whether or not to use speed optimized version, and whether or not to use the RGBA version of the library, and the library should automatically be included in the project. The project should build with no linker errors without the user manually moving libraries around or changing the project settings for library paths.
2019-05-04 11:05 AM
STEPS TO REPRODUCE:
Using STM32CubeIDE 1.0.0 on Lubuntu 18.04.
WORKAROUND:
I don't know for sure if this is the 'right' solution, but it is 'a' solution that, I believe, is 'correct enough' to get the code to compile and link properly.
Just because it builds doesn't mean the code runs. My code hangs in _DMA_ExecOperation and I need to find out why. Other folks have run into this in the past and there are unanswered questions in the forums. I will start looking at that and may post further questions.
2019-05-09 08:46 PM
Another bug: the code generated by STM32Cube never calls __HAL_RCC_DMA2D_CLK_ENABLE(), so none of the DMA2D settings have any effect.
I still haven't got anything working, but this is clearly a necessary step.
2019-05-13 11:59 AM
I am having the same problem on Windows 10, STM32CubeIDE 1.0.0.
I have created a project in the new IDE with the same configuration as in separate CubeMX and it does not generate STemWin library file. If I copy the file from the project generated by separate CubeMX and manually add it as a library to the STM32CubeIDE project, I am receiving the following compilation error:
arm-none-eabi-gcc -o "UIV1_ci.elf" @"objects.list" -l"##/workspace_1.0.0/UIV1_ci/Middlewares/ST/STemWin/Lib/STemWin_CM4_OS_wc16_ot_ARGB.a" -mcpu=cortex-m4 -T"##\workspace_1.0.0\UIV1_ci\STM32L4R7VITX_FLASH.ld" --specs=nosys.specs -Wl,-Map="UIV1_ci.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
c:\st\stm32cubeide_1.0.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: cannot find -l##/workspace_1.0.0/UIV1_ci/Middlewares/ST/STemWin/Lib/STemWin_CM4_OS_wc16_ot_ARGB.a
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:48: UIV1_ci.elf] Error 1
"make -j8 all" terminated with exit code 2. Build might be incomplete.
(I replaced my local paths above with ##)
Solution provided by johnjohn9105 helps to compile, but the LCD does not function properly (in particular, I end up with a blank white screen).
I thought of moving my project(s) to the new platform, but apparently it will not happen immediately.
I hope issues like this will be resolved soon.
2019-05-20 12:01 PM
Hi guys.
I have similar problem, I intend put STemWin into smt32f103.
in the link above is all information.
https://community.st.com/s/profile/0050X000008AmyJQAS
Can you help me...
Thank in advance.
2019-06-13 03:30 PM
The solution of johnjohn9105 has just saved my life usingthe PDMFilter Library from pdm2pcm module. I has constant errors linking to thisl ibrary and now finally it compiles.
Remeber, remove the lib and .a --> libPDMFilter_CM4_GCC_wc32.a becomes --> PDMFilter_CM4_GCC_wc32.
I am adding the name of STM32F4 DISCOVERY and pdm2pcm in case the indexers help someone else.
Thanks!!