Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

freeRTOS Demo Fails to Build under TrueStudio

Posted by tma16 on February 11, 2019

Greetings:

DemoName: CORTEXSTM32F100Atollic FreeRTOS version: 10.1.1 TrueStudio version: 9.2.0

When I import and then try to build the above demo project I get an error message stating that I need to run the directory structure build batch file first which I did in fact do. The ***FreeRTOSSource*** subdirectory is created in the project directory and files appear within the subdirectories confirming that the batch process completed OK.

If I comment out the error trap code and re-build there are 53 errors reported.     
Three errors similar to this:

                                    lo register required -- `ldmia r0!,{r4-r11}'	

Fifty errors similar to this:

                                    selected processor does not support `dsb ' in Thumb mode	

Is this the proper forum to report Demo project problems to? If not please direct me to where I can get support for this.

Thanks tma


freeRTOS Demo Fails to Build under TrueStudio

Posted by rtel on February 11, 2019

This looks like a mismatch between the MCU architecture the assembly code is written for, and the MCU architecture the compiler is being told it is building code for. In other words, it looks like the compiler's command line options are wrong. I'm not sure why this would be - perhaps it is an incompatibility in TrueStudio versions in regards to how it saves options in its project. Check the command line generated by the tool, which you will be able to see as the project builds, and also look at the target settings in the tool itself to ensure it matches the target you are building for (it looks like it is trying to build for a Cortex-M0).


freeRTOS Demo Fails to Build under TrueStudio

Posted by tma16 on February 12, 2019

Greetings Richard,

Thank you for your support! It turned out to be a target mismatch between TrueStudio and the demo. I had presumed it was setup by the demo but found I needed to specify the specific STM32 MPU within the TrueStudio project settings.

However once I corrected the MPU ID it still would not build. I got two new errors similar to the one below. With an online search I discovered a fix - this info may be of interest to you:

"register may not be same – ‘strexb r3,r2,[r3]’"

The modification described at the link below fixed the problem. The procedure involves modifying one of the core files within the demo project directory:

http://letzbecreative.blogspot.com/2015/07/solve-arm-gcc-error-register-may-not-be.html

It now builds without error for the stm32f103c8t6 MPU but I wonder if this code change is a proper fix for the bug. Note the demo is for a board equipped with the lesser memory stm32f100 MPU of the same family. I think unlikely that this error occurred because of the MPU difference but I suppose possible.

Thanks Again! tma


freeRTOS Demo Fails to Build under TrueStudio

Posted by rtel on February 12, 2019

Is the 'register may not be the same' error in our port code? Or in a cmsis file that ships with our demo? I think the latter we don't use that asm instruction.


freeRTOS Demo Fails to Build under TrueStudio

Posted by tma16 on February 12, 2019

It is in:

"DemoCORTEXSTM32F100AtollicLibrariesCMSISCM3CoreSupportcore_cm3.c"


freeRTOS Demo Fails to Build under TrueStudio

Posted by rtel on February 12, 2019

Got it, thanks, seems to be multiple copies of this in various demos.


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS v10.2.0 is available for immediate download. MIT licensed, and including RISC-V and ARMv8-M (Cortex-M33) demos.

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Cadence Tensilica Cortes

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Mediatek

Renesas

RISC-V

SiFIve RISC-V

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner