groupUrl: https://ez.analog.com/dsp/software-and-development-tools/freertos/
Analog.com Analog Dialogue Wiki English
Analog.com Analog Dialogue Wiki 简体中文
EngineerZone
EngineerZone
  • Site
  • User
  • Site
  • Search
  • User
EngineerZone
EngineerZone
  • Log in
  • Site
  • Search
  • Log in
  • Home
  • Blogs ⌵
    • EZ Spotlight
    • The Engineering Mind
  • Browse ⌵
    • All Groups
    • All Members
  • Support ⌵
    • 3D ToF Depth Sensing
    • A2B
    • Aerospace and Defense (ADEF)
    • Amplifiers
    • Analog Microcontrollers
    • Analysis Control Evaluation (ACE) Software
    • Audio
    • Clock and Timing
    • Condition-Based Monitoring
    • Data Converters
    • Design Tools and Calculators
    • Direct Digital Synthesis (DDS)
    • Embedded Vision Sensing
    • Energy Monitoring and Metering
    • FPGA Reference Designs
    • Industrial Ethernet
    • Interface and Isolation
    • Low Power RF Transceivers
    • MEMS Inertial Sensors
    • Motor Control Hardware Platforms
    • Optical Sensing
    • Power Management
    • Precision Technology Signal Chains
    • Processors and DSP
    • Reference Designs
    • RF and Microwave
    • Signal Chain Power (SCP)
    • Switches/Multiplexers
    • Temperature Sensors
    • Video
    • Wide Band RF Transceivers
    • Wireless Sensor Networks Reference Library
  • About EZ
  • More
  • Cancel
  • 主页
  • 浏览 ⌵
    • 收件箱
    • 个人设置
    • 会员
    • 专区列表
  • 论坛专区 ⌵
    • 放大器专区
    • 精密转换器专区
    • 音频专区
    • ADE电能计量专区
    • MEMS和传感器专区
    • 接口和隔离专区
    • Power 中文专区
    • ADUC微处理器专区
    • 锁相环专区
    • 开关和多路复用器专区
    • 温度传感器
    • 基准电压源专区
    • 资源库
    • 论坛使用指南
    • 技术支持参考库
    • 在线研讨会
    • 论坛社群活动
    • 论坛激励活动
  • More
  • Cancel
FreeRTOS
  • Processors and DSP
  • Software and Development Tools
  • FreeRTOS
  • Cancel
FreeRTOS
Documents How to add FreeRTOS source files in your newly created FreeRTOS CCES project
  • Q&A
  • Documents
  • File Uploads
  • Members
  • Tags
  • Reports
  • Managers
  • More
  • Cancel
  • New
FreeRTOS requires membership for participation - click to join
  • Documents
  • -FreeRTOS: FAQ
    • Analog Devices announces FreeRTOS for Analog Devices Processors, 1.2.0 release
    • Analog Devices FreeRTOS Product: Introduction
    • How to add FreeRTOS source files in your newly created FreeRTOS CCES project
    • How to Run LwIP on FreeRTOS for ADSP-SC589-MINI
    • How to Run MCAPI on FreeRTOS for SC5XX
    • How to Use the LwIP DnsClient FreeRTOS example with the CCES v2.9.0 or later

How to add FreeRTOS source files in your newly created FreeRTOS CCES project

When creating a new FreeRTOS CCES project, the FreeRTOS source files located in “$Your FreeRTOS Path$/FreeRTOSv10.0.0/FreeRTOS/Source/” should also be added into your project, otherwise linker will report below errors:

[Error li1021]  The following symbols referenced in processor 'P0' could not be resolved:

        'pvPortMalloc [_pvPortMalloc]' referenced from 'system\FreeRTOS\Source\event_groups.doj'

        'pvPortMalloc [_pvPortMalloc]' referenced from 'system\FreeRTOS\Source\queue.doj'

        'pvPortMalloc [_pvPortMalloc]' referenced from 'system\FreeRTOS\Source\stream_buffer.doj'

        'pvPortMalloc [_pvPortMalloc]' referenced from 'system\FreeRTOS\Source\tasks.doj'

        'pvPortMalloc [_pvPortMalloc]' referenced from 'system\FreeRTOS\Source\timers.doj'

        'pxPortInitialiseStack [_pxPortInitialiseStack]' referenced from 'system\FreeRTOS\Source\tasks.doj'

        'ulPortSetInterruptMask [_ulPortSetInterruptMask]' referenced from 'system\FreeRTOS\Source\event_groups.doj'

        'ulPortSetInterruptMask [_ulPortSetInterruptMask]' referenced from 'system\FreeRTOS\Source\queue.doj'

        'ulPortSetInterruptMask [_ulPortSetInterruptMask]' referenced from 'system\FreeRTOS\Source\stream_buffer.doj'

        'ulPortSetInterruptMask [_ulPortSetInterruptMask]' referenced from 'system\FreeRTOS\Source\tasks.doj'

        'vApplicationGetIdleTaskMemory [_vApplicationGetIdleTaskMemory]' referenced from 'system\FreeRTOS\Source\tasks.doj'

        'vApplicationGetTimerTaskMemory [_vApplicationGetTimerTaskMemory]' referenced from 'system\FreeRTOS\Source\timers.doj'

        'vApplicationStackOverflowHook [_vApplicationStackOverflowHook]' referenced from 'system\FreeRTOS\Source\tasks.doj'

        'vAssertCalled [_vAssertCalled]' referenced from 'system\FreeRTOS\Source\event_groups.doj'

        'vAssertCalled [_vAssertCalled]' referenced from 'system\FreeRTOS\Source\queue.doj'

        'vAssertCalled [_vAssertCalled]' referenced from 'system\FreeRTOS\Source\stream_buffer.doj'

        'vAssertCalled [_vAssertCalled]' referenced from 'system\FreeRTOS\Source\tasks.doj'

        'vAssertCalled [_vAssertCalled]' referenced from 'system\FreeRTOS\Source\timers.doj'

        'vPortClearInterruptMask [_vPortClearInterruptMask]' referenced from 'system\FreeRTOS\Source\event_groups.doj'

        'vPortClearInterruptMask [_vPortClearInterruptMask]' referenced from 'system\FreeRTOS\Source\queue.doj'

        'vPortClearInterruptMask [_vPortClearInterruptMask]' referenced from 'system\FreeRTOS\Source\stream_buffer.doj'

        'vPortClearInterruptMask [_vPortClearInterruptMask]' referenced from 'system\FreeRTOS\Source\tasks.doj'

        'vPortEndScheduler [_vPortEndScheduler]' referenced from 'system\FreeRTOS\Source\tasks.doj'

        'vPortEnterCritical [_vPortEnterCritical]' referenced from 'system\FreeRTOS\Source\event_groups.doj'

        'vPortEnterCritical [_vPortEnterCritical]' referenced from 'system\FreeRTOS\Source\queue.doj'

        'vPortEnterCritical [_vPortEnterCritical]' referenced from 'system\FreeRTOS\Source\stream_buffer.doj'

        'vPortEnterCritical [_vPortEnterCritical]' referenced from 'system\FreeRTOS\Source\tasks.doj'

        'vPortEnterCritical [_vPortEnterCritical]' referenced from 'system\FreeRTOS\Source\timers.doj'

        'vPortExitCritical [_vPortExitCritical]' referenced from 'system\FreeRTOS\Source\event_groups.doj'

        'vPortExitCritical [_vPortExitCritical]' referenced from 'system\FreeRTOS\Source\queue.doj'

        'vPortExitCritical [_vPortExitCritical]' referenced from 'system\FreeRTOS\Source\stream_buffer.doj'

        'vPortExitCritical [_vPortExitCritical]' referenced from 'system\FreeRTOS\Source\tasks.doj'

        'vPortExitCritical [_vPortExitCritical]' referenced from 'system\FreeRTOS\Source\timers.doj'

        'vPortFree [_vPortFree]' referenced from 'system\FreeRTOS\Source\event_groups.doj'

        'vPortFree [_vPortFree]' referenced from 'system\FreeRTOS\Source\queue.doj'

        'vPortFree [_vPortFree]' referenced from 'system\FreeRTOS\Source\stream_buffer.doj'

        'vPortFree [_vPortFree]' referenced from 'system\FreeRTOS\Source\tasks.doj'

        'vPortFree [_vPortFree]' referenced from 'system\FreeRTOS\Source\timers.doj'

        'vPortValidateInterruptPriority [_vPortValidateInterruptPriority]' referenced from 'system\FreeRTOS\Source\queue.doj'

        'vPortValidateInterruptPriority [_vPortValidateInterruptPriority]' referenced from 'system\FreeRTOS\Source\tasks.doj'

        'xPortStartScheduler [_xPortStartScheduler]' referenced from 'system\FreeRTOS\Source\tasks.doj'

 

Linker finished with 1 error

cc3089: fatal error: Link failed (code:1)

make[1]: *** [CHT4089_BF702_Monitor.dxe] Error 1

make: *** [all] Error 2

To fix above errors, please add below FreeRTOS source files in screenshot as following steps:

And for Sharc project, here is example to add below FreeRTOS source files:

  1. Create FreeRTOS virtual folder:

             a. Right-click on system folder -> New -> Folder

             b. Fill in folder name “FreeRTOS” in Folder name -> Click Advanced -> choose “Folder is not located in the file system (Virtual Folder)” -> click Finish button

       2. Create portable and MemMang virtual folder

       3. Add heap_4.c file into MemMang folder:

            a. Right-click on MemMang folder -> New -> File

            b. Select “Link to file in the file system” -> Browse and fill in the path of heap_4.c file under your FreeRTOS($Your FreeRTOS Path$/FreeRTOSv10.0.0/FreeRTOS/Source/portable/MemMang/heap_4.c)

       4. Add the remaining files in FreeRTOS folder as shown in the screenshot

       5. Rebuild the project

How to create relative links to the FreeRTOS source files?

  1. Take port.c as example, right-click on portable folder -> Import -> File Syatem
  2. Click the Browse... to point to your source folder ($Your FreeRTOS Path$/FreeRTOSv10.0.0/FreeRTOS/Source/portable/CCES/SHARC_215xx)
  3. Entry this folder and expend it to select the files you want to add
  4. Click 'Advanced' section and 'Create links in workspace'
  5. Then click Finish

How to add Include Paths for new projects?

  1.  Right-click on your project and select Properties
  2.  Go to settings to add the paths in Additional include directories shown as below. Now it is in Debug mode as default, please also do it in Release mode. 
  • Share
  • History
  • More
  • Cancel
Comments
Anonymous
Related
 
社交网络
快速链接
  • 关于ADI
  • Partners
  • 模拟对话
  • 职业
  • 联系我们
  • 投资信息
  • 新闻中心
  • 质量和可靠性
  • 办事处与代理商
  • Analog Garage
语言
  • English
  • 简体中文
  • 日本語
  • Руccкий
电子快讯

欲获得最新ADI产品、设计工具、培训与活动的相关新闻与文章,请从我们的在线快讯中选出您感兴趣的产品类别,每月或每季度都会发送至您的收件箱。

订阅
Switch to mobile view
Analog Logo
© 1995 - 2022 Analog Devices, Inc. All Rights Reserved 沪ICP备09046653号-1
  • ©
  • 1995 - 2022 Analog Devices, Inc. All Rights Reserved
  • 沪ICP备09046653号-1
  • 网站地图
  • 隐私和保密政策
  • 隐私设置
  • 使用条款
 
Social
Quick Links
  • About ADI
  • Partners
  • Analog Dialogue
  • Careers
  • Contact us
  • Investor Relations
  • News Room
  • Quality & Reliability
  • Sales & Distribution
  • Analog Garage
Languages
  • English
  • 简体中文
  • 日本語
  • Руccкий
Newsletters

Interested in the latest news and articles about ADI products, design tools, training and events? Choose from one of our 12 newsletters that match your product area of interest, delivered monthly or quarterly to your inbox.

Sign Up
Switch to mobile view
Analog Logo
© 1995 - 2022 Analog Devices, Inc. All Rights Reserved 沪ICP备09046653号-1
  • ©
  • 1995 - 2022 Analog Devices, Inc. All Rights Reserved
  • 沪ICP备09046653号-1
  • Sitemap
  • Privacy & Security
  • Privacy Settings
  • Terms of use
EngineerZone Uses cookies to ensure you get the best experience in our community. For more information on cookies, please read our Privacy & Security Statement.