CSR8670如何锁SPI口
8670的datasheet描述了芯片支持锁SPI接口,但是我找遍文档也没找到具体的操作步骤,请问群友知道如何去锁住SPI接口吗?谢谢!另外除了锁SPI接口,请问还有什么方法能防止代码被dump的吗?
自己写个小工具,按照bluesuite里面提供的库 或者买一个别人写好工具,直接使用 谢谢回复,用testengine可以锁SPI。
步骤是先将8670 set bootmode0, 然后调用test engine api 去锁SPI。
我 写了个简单的代码,供同样问题的人参考
#include "pch.h"
#include "testengine.h"
#include <windows.h>
#include <iostream>
#include <stdint.h>
/* key length is fixed 128 bits*/
uint8_t key = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F};
int main()
{
int ret;
/* Get device handle */
uint32 deviceHandle = openTestEngine(USB, "\\\\.\\csr0", 0, 5000, 1000);
if (deviceHandle != 0)
{
/* Set secure key to chip */
ret = bccmdSetSpiLockCustomerKey(deviceHandle, (uint32*)key);
/* Lock SPI */
ret = bccmdSpiLockInitiateLock(deviceHandle);
}
std::cout << "Hello World!\n";
} 感谢分享:lol:lol 不懂 不懂 加密芯片 感谢分享 不懂 不懂;P;P 学习
页:
[1]
2