Start12.c文件解释

本文详细介绍了RAM测试(MBIST)及初始化的过程,探讨了其在冷复位和热复位下的不同作用。RAMMBIST测试会破坏RAM内容,通过线性写/读算法检测错误,遇到错误时设备进入无限循环并重启看门狗,直至进入SLEEP模式。RAM初始化则确保RAM写为零以避免ECC错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

// ram test in bootrom
/* 
RAM Test (MBIST) and RAM Initialization
The RAM memory test is performed for cold reset type. 
The RAM initialization is performed for cold and warm reset types.
When executed, the RAM MBIST test destroys the contents  of the tested RAM.It consists of a linear write/read
algorithm using alternating data. 
In case an error is detected in the RAM MBIST, the appropriate error status is captured and the device enters
an endless loop. As the watchdog is enabled when entering the endless error loop after a boot in user or
debugmode, a WDT1 cold reset is asserted after timeout and the RAM test is re-executed. 
After five (5) consecutive  watchdog resets, the device enters SLEEP mode (by hardware function).
The RAM initialization writes the whole RAM to zero with the proper ECC status. This is needed to prevent an
ECC error during user code execution due to a write operation to a non initialized location (with invalid ECC
code). 
Note: The standard RAM interface is disabled during MBIST test execution.


在bootrom中的ram测试
包括RAM测试(MBIST) 和RAM 初始化两种
RAM记忆测试执行于冷复位类型。
RAM初始化执行于冷和热复位类型。
当执行时,RAM MBIST测试破坏了测试的RAM的内容。它包含了一个线性的写/读算法用于交互数据。
假如一个错误在RAM MBIST中被检测到,适当的错误状态被捕获到,然后设备进入
一个无尽循环中。当在引导用户或调试模式之后进入无休止的错误循环时,看门狗被启用。
在超时后一个WDT1冷复位生效并且RAM测试被重新执行。
在5次连续的看门狗复位之后,设备进入SLEEP模式(使用硬件功能)。
RAM的初始化使用适当的ECC状态来将整个RAM写成零。
由于对非初始化位置的写保护(使用无效的ECC代码),在执行代码时,需要防止ECC错误。
注意:在MBIST测试执行时标准的RAM接口被禁用。


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值