Quality RTOS & Embedded Software

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




Loading

building RTOS in arty board

Posted by haydoiday228 on November 9, 2016

Hello Admin, I want build a system runing RTOS in microblaze. Can you help me? please and i have a question: How much RAM for system runing RTOS? Thanks.


building RTOS in arty board

Posted by rtel on November 9, 2016

You should be able to use the following as a base for your project, but will need to change the hardware project, which defines the Microblaze configuration, to be correct for your hardware: http://www.freertos.org/RTOS-Xilinx-Microblaze-KC705.html

On a Microblaze you should expect a MINIMUM of about 170 words (so 170*4 bytes) of RAM per task for use by the task as its stack. If the task is doing something complex, or calling functions like printf(), then it will need a bigger stack.


building RTOS in arty board

Posted by haydoiday228 on November 9, 2016

Thanks you for respone. I was builded a project with 64KB Ram on microblaze but it overflowed by 127344 bytes. My system include : a Microblze, Uart, 4 GPIOs, clock 80Mhz.


building RTOS in arty board

Posted by rtel on November 9, 2016

Look forward to hearing your reply.

Did you ask a question?


building RTOS in arty board

Posted by edwards3 on November 9, 2016

look at the map file output by GCC to see where the RAM is used and check you dont have configTOTALHEAPSIZE set too high http://www.freertos.org/a00111.html


building RTOS in arty board

Posted by haydoiday228 on November 9, 2016

I am sorry. if 70 words of RAM per task, while microblaze have 64KB RAM, but sdk respone error overflowed by 127344 bytes.


building RTOS in arty board

Posted by rtel on November 9, 2016

When does it overflow? If it is when you compile then it's not a FreeRTOS issue, you are just trying to use more RAM than the linker script is telling the compiler you have available. Unless you are using a completely statically allocate system the stacks will no be allocated from the RAM you have available until you create the tasks at run time.

Which heap memory allocated are you using? Heap_1, 2, 3, 4 or 5 (refer to the link in the post above).


building RTOS in arty board

Posted by haydoiday228 on November 9, 2016

thanks


building RTOS in arty board

Posted by rtel on November 9, 2016

I'm afraid this is a question on how to use the tools, not how to use FreeRTOS (for example, does your linker script know about the DDR RAM?), and this is a FreeRTOS forum - and you have not answered any of the questions already asked either.

However, the first thing you need to do, as has already been said in this thread, it to check the map file if one has been output (maybe the linker didn't output one if the build was not successful) to see where the RAM is being used. Also, as mentioned in the thread already, pay particular attention to the configTOTALHEAPSIZE unless you are using heap_3.


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




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

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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