groupUrl: https://ez.analog.com/dsp/software-and-development-tools/hardware-tools/
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
Hardware Tools
  • Processors and DSP
  • Software and Development Tools
  • Hardware Tools
  • Cancel
Hardware Tools
Documents FAQ: My application behaves incorrectly when using SDRAM.
  • Q&A
  • Discussions
  • Documents
  • Members
  • Tags
  • Reports
  • More
  • Cancel
  • New
Hardware Tools requires membership for participation - click to join
  • +Documents
  • -4010 Custom Resets: FAQ
    • FAQ: My application behaves incorrectly when using SDRAM.
  • +ADSP Blackfin dev kits: FAQ
  • +ADSP-BF609 EZ-KIT Lite: FAQ
  • +Board Support Package: FAQ
  • +CCES 1.1.0: FAQ
  • +CrossCore Embedded Studio: FAQ
  • +DSP EZ-KIT: FAQ
  • +ICE Test Utility: FAQ
  • +ICE-1000 and ICE-2000: FAQ
  • +In-Circuit Emulator: FAQ
  • +JTAG TCLK: FAQ
  • +Target Connection Error: FAQ
  • +VisualDSP++: FAQ

FAQ: My application behaves incorrectly when using SDRAM.

Question:

My application has grown to a size where it is now too big for internal memory, so I am using SDRAM, I receive errors in the IDDE that 'External Memory is disabled for this region of memory', while the disassembly window shows 'Illegal opcode' errors. The code does not execute correctly any longer.

 

 

============================================

Answer:

When applications behave incorrectly during external memory access - either executing code, or reading/writing data - it may be that the external memory is not configured correctly. It may be that the code produces incorrect results, hits an exception or the PC appears to be in a random location in the Disassembly Window on halt. You may also encounter errors within the IDDE, such as the Memory Window/Memory Browser showing all contents as “0xDD” (Disabled), code sections showing “Illegal Opcode” in the disassembly window, or output in the console that “External memory is disabled for this region of memory”. There are some common pitfalls to be aware of.

 

 

Default Behaviour

When you connect to a target via a JTAG Emulator or Debug Agent, the default behaviour is that the Emulator will check a corresponding XML file to see if there is any configuration to be done of the EBIU/External Port/DDR. This feature is enabled/disabled via:

[VisualDSP++] “Settings: Target Options: Use xml reset values”

[CrossCore Embedded Studio] Under the "Custom Board Support" tab within the "Run: Debug Configurations" menu

 

 

This instructs the Emulator to check the corresponding XML file in "...\System\Archdef\"  within the VisualDSP++ installation directory for 'register reset definitions'.

e.g. "…\System\Archdef\adsp-bf561-proc.xml" for the BF561 in VisualDSP++

e.g. “...\System\Archdef\adsp-bf609-resets.xml” for the BF609 in CCES.

 

 

These XML files contain a section <register-reset-definitions> that specifies values that should be assigned to the external memory registers upon reset of the target. Note that the XML files only contain register reset values where there is a corresponding EZ-KIT Lite. i.e. as there is a BF533 EZ-KIT Lite, there are register reset definitions in "...\System\Archdef\adsp-bf533-proc.xml" in VisualDSP++.

 

 

However as there is no corresponding EZ-KIT Lite for the BF532 or BF608, for example, there are no register reset definitions in their corresponding XML files. These XML files provided with the VisualDSP++ and CrossCore Embedded Studio tools should not be modified, as they are liable to be overwritten. Additionally, these XML files work universally - that is, the BF533 XML file will affect all BF533 targets, so changes to make your custom board work correctly could lead to incorrect settings for an EZ-KIT Lite, or other third party/custom BF533 targets.

 

 

Custom/Third-Party Boards

When using a custom or third party board it is important to be aware that the Emulator will either apply the default EZ-KIT Lite external memory register settings, or make no configuration of the external memory at all. In both cases, access to external memory will be unreliable at best, and impossible in the worst case.

 

 

For custom and third party boards, we provide "Custom Board Support", which allows users to specify an XML file containing register reset definitions, to be associated with a specific Session. Attached is an example populated with the Blackfin BF527 EZ-KIT Lite Register Reset Definitions that can serve as a template.

 

 

Editing the Custom Board Support XML file

You will need to ensure that the document properties are correct; that the 'processor-family' matches your target (Blackfin, SHARC, or TigerSHARC), and that the 'file' name matches the name of the xml file.

 

 

[VisualDSP++ ]

<custom-visualdsp-proc-xml

     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

     xsi:noNamespaceSchemaLocation="\Program Files\Analog Devices\VisualDSP 5.0\System\ArchDef\ADSP-custom-board.xsd"

     processor-family="Blackfin"

     file="Custom_Resets.xml">

 

 

[CrossCore Embedded Studio ]

<custom-cces-proc-xml

     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

     xsi:noNamespaceSchemaLocation "\Analog Devices\CrossCore Embedded Studio 1.0.0\System\ArchDef\ADSP-custom-board.xsd"

     processor-family="Blackfin"

     file="Custom_Resets.xml">

 

 

Then, simply change the <register-reset-definitions> you require. It may be useful to copy the register reset definitions from a similar processor for which an EZ-KIT Lite exists (e.g. if you are using BF531, copy the definitions from adsp-bf533-proc.xml) as a starting point. Additionally, if the tools are not installed to the default path you will need to change the "noNamespaceSchemaLocation" path.

 

 

[VisualDSP++] In VisualDSP++ you can then associate the file with your session via 'Settings'->'Session'.

[CrossCore Embedded Studio] In CrossCore Embedded Studio you can associate the files with your session by going to the “Custom Board Support” tab for your Debug Configuration under ‘Run’->’Debug Configurations’.

 

 

We provide an EBIU Calculator, which can be used to determine the correct EBIU Register settings for your Blackfin target: http://ez.analog.com/docs/DOC-1441

 

 

For more information on Custom Board Support, xml structure and syntax please see:

[VisualDSP++] VisualDSP++ Help under ‘Help’->’Contents’->’Graphical Environment’->’Custom Board Support’.

[CrossCore Embedded Studio] CCES Help under ‘Help’->’Contents’->’CrossCore Embedded StudioTm 1.0.0’->’Graphical Development Environment’->’Tasks ’->’Running and Debugging Programs’->’Working with Launch Configurations’->’Configuring Custom Board Support’.

 

 

Other Common Issues

A common mistake when configuring the EBIU is not setting the PSSE bit within the EBIU_SDGCTL. This is the Power-up Sequence Start Enable bit, and ensures that – on the next access to SDRAM – the settings you have applied to the EBIU registers are executed to configure it appropriately. This bit always reads as ‘0’, but must be set whenever the EBIU registers are changed. This is detailed in the Hardware Reference Manuals.

 

 

Another common EBIU issue occurs when moving from debugging a DXE within the IDDE, to running your application stand-alone by building a loader file to be booted from an external source, e.g. Flash. Once the application is no longer being run within the IDDE, the Emulator, and therefore the XML files, are not in use and do not make any configuration of the EBIU.

 

 

Please be aware that you cannot modify the PLL values using an XML file. Programming of the PLL requires a PLL relock sequence to allow the clock to stabilize and lock to the new frequency, which cannot be done using the .xml file. Similarly, programming of the on-chip regulator initiates a PLL relock sequence when the processor reaches the programmed voltage level.

Attachments:
4010.Custom_resets.zip
  • faqs
  • Share
  • History
  • More
  • Cancel
Comments
Anonymous
Parents
  • Jeroen_
    Jeroen_ over 9 years ago

    Hello,

    I have installed CCES and am searching for the register reset definitions but the file "...\System\Archdef\adsp-bf609-resets.xml” for the BF609 in CCES" is not installed on my PC.

    Is this FAQ still up to date? Because I have also the warning: "Warning: External memory is disabled for this region of memory" and the program is not working.

    Regards,

    Jeroen

    • Cancel
    • Vote Up 0 Vote Down
    • Reply
    • More
    • Cancel
  • ADIApproved
    ADIApproved over 9 years ago in reply to Jeroen_

    Hi Jeroen,

    We would normally expect to see the "Warning: External memory is disabled for this region of memory"  message if external memory had not been set up correctly, or not configured at all. From your post I assume you are not using the adsp-bf609-resets.xml file so this error is more than likely to be expected.

    Can I ask you to double check the file is definitely not there. If you are looking at this folder and have it sorted alphabetically you will notice just after the 'ADSP-21489-proc.xml' file the next processor is the BF5xx then BF60x, after that it begins with the BF504 processors and the file you are looking for is actually further down the list of files, after the BF592 processors.

    If you are still unable to install it can you confirm which version of CCES you are using?

    Regards,

    Colin

    • Cancel
    • Vote Up 0 Vote Down
    • Reply
    • More
    • Cancel
Comment
  • ADIApproved
    ADIApproved over 9 years ago in reply to Jeroen_

    Hi Jeroen,

    We would normally expect to see the "Warning: External memory is disabled for this region of memory"  message if external memory had not been set up correctly, or not configured at all. From your post I assume you are not using the adsp-bf609-resets.xml file so this error is more than likely to be expected.

    Can I ask you to double check the file is definitely not there. If you are looking at this folder and have it sorted alphabetically you will notice just after the 'ADSP-21489-proc.xml' file the next processor is the BF5xx then BF60x, after that it begins with the BF504 processors and the file you are looking for is actually further down the list of files, after the BF592 processors.

    If you are still unable to install it can you confirm which version of CCES you are using?

    Regards,

    Colin

    • Cancel
    • Vote Up 0 Vote Down
    • Reply
    • More
    • Cancel
Children
  • Jeroen_
    Jeroen_ over 9 years ago in reply to ADIApproved

    Hello,

    I found the file, and the problem is solved. Thank you.

    Regards,

    Jeroen

    • Cancel
    • Vote Up 0 Vote Down
    • Reply
    • More
    • Cancel
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.