我注释了这段,因为是自己开发的板子,不知道怎么改,所以给注释了,不知道有没有影响
/* Initialize main Platform lib */
// memset(&init_config, 0, sizeof(platform_init_config));
// memset(&init_flags, 1, sizeof(platform_init_flags));
// init_flags.pll = 0;
// init_flags.ddr = 0;
// if (platform_init(&init_flags, &init_config) != Platform_EOK)
// {
// printf ("Platform init failed!\n");
// print_platform_errno();
// return;
// }
然后修改了器件,实际板子上对应的
p_device = platform_device_open(PLATFORM_DEVID_NORN25Q128, 0);//
也提示了NOR programming completed successfully,
但是就是不能工作
Shine:
提示烧写成功了,可以先读flash里烧进去的内容,比对一下是否一样。
user5369998:
回复 Shine:
我是用的是官方给提供的RBL启动方式,用官方给提供的软件产生.bat文件,写入flash中提示如下
Flashing sector 0 (0 bytes of 45872)Reading and verifying sector 0 (0 bytes of 45872)NOR programming completed successfully
我在load memory里面设置的length是0x219a5 也就是我实际的.bat文件大小是(137,637 字节),但是实际写入的只有45872,是我在哪里设置错了吗?
然后我有将.dat 手动修改为.bin文件,然后提示如下
Flashing sector 0 (0 bytes of 137637)Flashing sector 1 (65536 bytes of 137637)Flashing sector 2 (131072 bytes of 137637)Reading and verifying sector 0 (0 bytes of 137637)Reading and verifying sector 1 (65536 bytes of 137637)Reading and verifying sector 2 (131072 bytes of 137637)NOR programming completed successfully
这种刷进去的大小倒是一样,我想问我这种操作是否正确
TI中文支持网

