groupUrl: https://ez.analog.com/dsp/adsp-cm4xxx-processors/adsp-cm40x/
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 Circuits
    • 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
ADSP-CM40x
  • Processors and DSP
  • ADSP-CM4xxx Processors
  • ADSP-CM40x
  • Cancel
ADSP-CM40x
Documents FAQ: How do I access my ADSP-CM40x 2.0 part when the debugger cannot connect?
  • Q&A
  • Discussions
  • Documents
  • Members
  • Tags
  • Reports
  • Managers
  • More
  • Cancel
  • New
ADSP-CM40x requires membership for participation - click to join
  • Documents
  • ADSP-CM40x Enablement Package (Rev 2.1.0) Supports Rev H Silicon ONLY
  • ADSP-CM40X PROCESSORS SUPPORT COMMUNITY
  • Analog inputs of internal ADC
  • Can the VRef for the ADC on the ADSP-CM40x be used as a voltage supply for other devices?
  • Clocking the USB controller
  • FAQ: Are MEMX and MEMY physical memories?
  • FAQ: Can I access ADCM40x cache directly?
  • FAQ: Can I Perform flash programming in SPI Memory Mapped mode?
  • FAQ: Can I place DATA in CODE memory and vice-versa?
  • FAQ: Can I use MATLAB/Simulink with the ADSP-CM40x?
  • FAQ: Does AD CM40x feature a Data Cache?
  • FAQ: How can I utilize Cache with Async memory connected SRAM?
  • FAQ: How do I access my ADSP-CM40x 2.0 part when the debugger cannot connect?
  • FAQ: SPI/Cache :: Line-Wrap mode vs. Line-base-first mode. Which one to choose?
  • FAQ: What general features of Blackfin Cache are not available in CM40x Cache?
  • FAQ: What is XiP?
  • Getting Started with ADSP-CM40x Mixed-Signal Control Processors
  • How do I benchmark or count system cycles of a segemnt of code on the ADSP-CM40x ?

FAQ: How do I access my ADSP-CM40x 2.0 part when the debugger cannot connect?

ADSP-CM40x 2.0 processors have a security header which must be correct for the application to run, and for the debugger to be able to connect. If the security header is programmed incorrectly or becomes corrupt, the debugger will be blocked from connecting to the part. The UART Flash Programmer (wsd.exe in the tools directory of the board support package) can be used to mass-erase the flash content, clearing the corrupt header and allowing a clean version of the application to be programmed.

There is a bug in the boot code which affects this mass-erase operation, however – if the security header is corrupt and the key contained within the security is the default key, then:

- The debugger is locked out, as per security requirements;

- The UART interface will incorrectly listen for download of a new application for flash-programming.

- The UART interface will incorrectly not listen for the mass-erase command.

If the security header is corrupt and the key contained within the security is not the default key, then:

- The debugger is locked out, as per security requirements;

- The UART interface will listen for the mass-erase command or a secure key command

The upshot of this is that a part with a corrupt security header will block out the debugger always, but mass-erase over UART will have no effect if the default key is being used.

In the circumstance when the default key is being used, the part can be recovered by:

- Downloading a new application with a valid security header, over the UART.

- Optionally, using the UART Flash Programmer to send the mass-erase command over the UART, if you need to clear the flash.

In the circumstance when a non-default key is being used, the part can be recovered by:

- Sending the mass-erase request to erase the flash, or send the custom key and reprogram a new application

  • Share
  • History
  • More
  • Cancel
Comments
Anonymous
  • stevek
    stevek over 5 years ago in reply to cqrichard

    Hi Richard,

    The wsd.exe application was included in the Board Support Package when it was first released, but since that date, we have rolled the functionality into a common CrossCore Serial Flash Programmer product (CCSFP), which supports ADSP-CM40x, ADSP-CM41x and ADuCM302x processors. When any problems are found with the flash programming or mass-erase via UART, it is this product which will contain fixes.

    We would suggest that you download the CCSFP from ADI's website, and follow the instructions in the README to program the provided example into flash (CCSFP comes with the same example, build for each of the supported parts). This should clear any corrupted security header for you. You can then use the mass-erase functionality of CCSFP, or just download your own application.

    • Cancel
    • Vote Up 0 Vote Down
    • Reply
    • More
    • Cancel
  • cqrichard
    cqrichard over 5 years ago

    Hi,Stevek, Would you please give me the detailed way ' using the UART Flash Programmer to send the mass-erase command over the UART' ? I cannot mass-erase the cm40f flash using the wsd.exe tool.

    • 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.