UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 58055

14.7 SDK BSP - The Malloc() in the CortexA9 Standalone BSP delivered with SDK does not work correctly

Description

The Malloc() in the CortexA9 Standalone BSP delivered with SDK does not work correctly . The Malloc() allocates memory from the heap as expected. However, the Malloc() function does not seem to determine when the system heap is out of space and causes overwrite issues, and thus leading to the application to crash.

How can this be resolved?

Solution

This is a known issue.

To work around the problem, download the patch attach to the end of this answer record and follow the instructions below:

Unzip, the file and replace the _sbrk.c file in
<EDK Install Directory>\sw\lib\bsp\standalone_v3_11_a\src\cortexa9\gcc

Or, on Standalone SDK:
<SDK Install Directory>\sw\lib\bsp\standalone_v3_11_a\src\cortexa9\gcc

Attachments

Associated Attachments

Name File Size File Type
AR58055.zip 1 KB ZIP
AR# 58055
Date Created 10/21/2013
Last Updated 10/25/2013
Status Active
Type General Article
Devices
  • Zynq-7000
Tools
  • EDK - 14.6
  • EDK - 14.7