2019-12-22 06:12 AM
Hi,
I generated the code from CubeMX 5.3 for STM32F401.
But, following error are listed
C:\Users\SS\AppData\Local\Temp\ccxlOu12.s:295: Error: selected processor does not support `dsb 0xF' in Thumb mode
Drivers/STM32F4xx_HAL_Driver/Src/subdir.mk:60: recipe for target 'Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o' failed
C:\Users\SS\AppData\Local\Temp\ccxlOu12.s:306: Error: selected processor does not support `isb 0xF' in Thumb mode
C:\Users\SS\AppData\Local\Temp\ccxlOu12.s:350: Error: selected processor does not support `dsb 0xF' in Thumb mode
C:\Users\SS\AppData\Local\Temp\ccxlOu12.s:371: Error: selected processor does not support `dsb 0xF' in Thumb mode
C:\Users\SS\AppData\Local\Temp\ccxlOu12.s:492: Error: selected processor does not support `dmb 0xF' in Thumb mode
C:\Users\SS\AppData\Local\Temp\ccxlOu12.s:555: Error: selected processor does not support `dsb 0xF' in Thumb mode
C:\Users\SS\AppData\Local\Temp\ccxlOu12.s:566: Error: selected processor does not support `isb 0xF' in Thumb mode
make: *** [Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.o] Error 1
So, I added the "-mcpu=cortex-m4" option and compile again.
But following error is listed end of compile, maybe link time
make: *** No rule to make target 'RCS/../', needed by '../'. Stop.
What is problem?
BR
Paul
2019-12-22 10:33 AM
What compiler is that?
2019-12-22 01:48 PM
my compiler is gcc and option as this:
2019-12-22 04:13 PM
this option are generated by CubeMX except -mcpu option
2019-12-22 10:18 PM
I solved this problem.
I download CubeSTM32_FW from st.com site and cleared this problem.
I did *.ld file with my board spec.
BR
Paul
2020-02-21 07:58 AM
Hi everyone is it possible to send again in details what exactly have you done because I am facing the same problem. I did all the update but I still have the problem.
2020-02-23 05:55 AM
I also faced this problem. There are some problems with CubeMX 5.3.0~5.6.0. In my case, when SW4STM32 is selected as Toolchain / IDE in Code Generator, the linker script file (STM32F401RETx_FLASH.ld in F401RE example) will not be generated in the project folder. I have used SW4STM32 for the IDE so far, but I changed my IDE to STM32CubeIDE and solved this problem. STM32CubeIDE is similar to SW4STM32 and easy to use for me.
2020-02-24 01:58 AM
Haya thanks
2020-04-15 02:11 AM
Has anyone found solution for this issue ? I want to use SW4STM32... Strange is that the same version of the CubeMX on different computer is working fine. Probably it is related with some commands used to create linker file but I don't know details about this.
BR,
Marcin.
2020-10-10 09:43 AM
I am trying to run the sample_azure_iot project and get this same error in stm32cubeide. Any idea what could be wrong? I downloaded the sample directly from: https://github.com/azure-rtos/samples
Any idea what could be wrong?