FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [November 2016 Threads] building RTOS in arty boardPosted 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 boardPosted 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 boardPosted 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 boardPosted by rtel on November 9, 2016
Look forward to hearing your reply.
Did you ask a question?
building RTOS in arty boardPosted 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 boardPosted 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 boardPosted 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 boardPosted by haydoiday228 on November 9, 2016
building RTOS in arty boardPosted 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.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|