STM32Cubemx 4.4.0 generation bug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-10-22 09:29 AM
Hello everybody!
Where can I download a previous version of the stm32cubemx? A newest version has generation bug, the generated c files not working. The initalization paramater sets in the structures but the init function does not called.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-10-23 08:57 AM
Can you post the ioc of your failing project and where exactly the problem is in the generated files.
Thanks in advance, Regards DanielIn order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-10-23 11:15 AM
Here is the project
The problem is in the i2.c rtc.c sdio.c crc.c files. If you see this fájl in the init funcitons there is no stm32hal function init call.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-10-23 12:28 PM
I noticed the following problem in this new version:
15:37:20 **** Rebuild of configuration Debug for project board 168MHz Configuration ****
Info: Internal Builder is used for build
arm-atollic-eabi-gcc -c -mthumb -mfpu=fpv4-sp-d16 -std=gnu90 -DUSE_HAL_DRIVER -DSTM32F429xx -I..\..\..\..\Inc -I..\..\..\..\Drivers\STM32F4xx_HAL_Driver\Inc -I..\..\..\..\Drivers\CMSIS\Include -I..\..\..\..\Drivers\CMSIS\Device\ST\STM32F4xx\Include -Os -ffunction-sections -fdata-sections -g -Wall -o Drivers\STM32F4xx_HAL_Driver\stm32f4xx_hal_pwr.o ..\..\..\..\Drivers\STM32F4xx_HAL_Driver\Src\stm32f4xx_hal_pwr.c
C:\Users\monteiro\AppData\Local\Temp\ccrUEmDc.s: Assembler messages:
C:\Users\monteiro\AppData\Local\Temp\ccrUEmDc.s:315: Error: selected processor does not support Thumb mode `wfi'
C:\Users\monteiro\AppData\Local\Temp\ccrUEmDc.s:326: Error: selected processor does not support Thumb mode `sev'
C:\Users\monteiro\AppData\Local\Temp\ccrUEmDc.s:335: Error: selected processor does not support Thumb mode `wfe'
C:\Users\monteiro\AppData\Local\Temp\ccrUEmDc.s:343: Error: selected processor does not support Thumb mode `wfe'
C:\Users\monteiro\AppData\Local\Temp\ccrUEmDc.s:401: Error: selected processor does not support Thumb mode `wfi'
C:\Users\monteiro\AppData\Local\Temp\ccrUEmDc.s:412: Error: selected processor does not support Thumb mode `wfe'
C:\Users\monteiro\AppData\Local\Temp\ccrUEmDc.s:461: Error: selected processor does not support Thumb mode `wfi'
15:37:21 Build Finished (took 617ms)
I created this project, only informing that the kit used.
The kit is STM32F429I-DISCOVERY I configured the application to generate one code for this kit. The program STM32CubeMX generated all the code and I did not modified anything! Im using the TrueSTUDIO Free to compile the project. Im attached one picture from TrueSTUDIO/Tools Settings and some configs: ASSEMBLER: COMMAND: arm-atollic-eabi-gcc -c All options: -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -g -I..\..\..\..\Inc -Wa,--no-warn -x assembler-with-cpp C COMPILER: COMMAND: arm-atollic-eabi-gcc -c All options: -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -std=gnu90 -DUSE_HAL_DRIVER -DSTM32F429xx -I..\..\..\..\Inc -I..\..\..\..\Drivers\STM32F4xx_HAL_Driver\Inc -I..\..\..\..\Drivers\CMSIS\Include -I..\..\..\..\Drivers\CMSIS\Device\ST\STM32F4xx\Include -Os -ffunction-sections -fdata-sections -g -Wall C LINKER: COMMAND: arm-atollic-eabi-gcc All options: -mthumb -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -T''..\STM32F429ZI_FLASH.ld'' -Wl,--start-group -lc -lm -Wl,--end-group -static -Wl,-cref,-u,Reset_Handler ''-Wl,-Map=${BuildArtifactFileBaseName}.map'' -Wl,--gc-sections -Wl,--defsym=malloc_getpagesize_P=0x1000 ________________ Attachments : TrueSTUDIO_free_01.png : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzRS&d=%2Fa%2F0X0000000bLz%2FeQhgSmWHS2hZxzuM7qodGRtI8DaH.qHAOz57AxS5W_A&asPdf=false- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-10-28 11:51 AM
Have you tested it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-10-30 03:39 AM
Hi,
After checking with your project, it looks like a regression since 4.4 (seems to work with 4.3). To be rapidly confirmed by a deeper analysis, but as far as we can see, it is a bug. Instead of:arm-atollic-eabi-gcc -c -mthumb
-mcpu=cortex-m4
-mfloat-abi=softfp
-mfpu=fpv4-sp-d16 -std=gnu90
-D__weak=__attribute__((weak)) -D__packed=__attribute__((__packed__))
we have now:arm-atollic-eabi-gcc -c -mthumb -mfpu=fpv4-sp-d16 -std=gnu90 …
One colleague gave me a ''workaround'', acting on project settings in atollic: things to be changed in ‘Project … Build Setting’ (TargetSetting & ToolSetting), as shown on the attached screenshots. I'm gonna forward the message about the issue so that it can be fixed and integrated in a future release. Regards, Fred ________________ Attachments : atollic.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzRN&d=%2Fa%2F0X0000000bLx%2Fx4Loz48pSd54C.ESojxmB6rodjo0_eNxJDTA7fHYxMY&asPdf=false- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-10-30 08:07 AM
Thanks for the that. The problem is that I havent got 4.3 stm32cubemx installer and I havent found this. Can you send me a link with this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-11-05 12:08 AM
Hello,
Please use the following workaround: in TrueStudio, open the ''Properties'' interface and verify the compilation settings, then press ''Apply''. Best Regards.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-11-05 12:23 AM
Hello,
Can you help me about the generation bug?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-11-05 07:59 PM
I am also having similar issues with Atollic True Studio Pro Eval. Auto-generated projects will not build. Mine also show up various processor does not support Thumb mode complaints.
I have tried the ST workaround without success. It still will not build. Can you give more information on your workaround please? I am brand new to ARM development though so perhaps I am doing something wrong. I also would appreciate a 4.3.x stable download link as I am trying to evaluate your tools and am unable to do so. Thanks