Quality RTOS & Embedded Software

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




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) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists