This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

大家好 6657评估板上加载用的NOR flash-NORN25Q032A停产了 改用6678评估板上的NORN25Q128



大家好 6657评估板上加载用的NOR flash-NORN25Q032A停产了 改用6678评估板上的NORN25Q128

加载的驱动要做作相应修改

导入mcsdk_2_01_02_06包里的norwriter_evmc6657l工程 简单修改后

往FLASH程序灌入程序时 提示:
NOR device open failed!
Returned platform error number is 12

谁遇到过这问题 给个答案啊!


  • 看了一下platform.h对error number is 12的定义,这个错误表示这个器件不支持
    #define PLATFORM_ERRNO_UNSUPPORTED 0x0000000c /**< Functionality not supported */

    看一下platform.c中platform_flash_open函数源码, if (deviceid == PLATFORM_DEVID_NORN25Q032A) 这里是否有做修并重新编译platform lib?
    #if (PLATFORM_NOR_IN)

    NOR_STATUS nor_status;

    if (deviceid == PLATFORM_DEVID_NORN25Q032A) {

    /* Disable Write protect in NOR */
    //fpgaDisableNorWriteProtect();
    nor_status = nor_init();
    if (nor_status != NOR_EOK) {
    IFPRINT(platform_write("platform_device_open: Initialization failed.\n"));
    return NULL;
    }

    /* Store the open flags */
    gDeviceNor.flags = flags;

    p_info = &gDeviceNor;

    if (nor_get_details(p_info) != SUCCESS) {
    IFPRINT(platform_write("platform_device_open: Unable to read device information.\n"));
    platform_errno = PLATFORM_ERRNO_BADFLASHDEV;
    return NULL;
    }

    p_info->handle = deviceid;

    return p_info;
    }
    #endif
  • 我曾经把platform.c这个文件里的所有 PLATFORM_DEVID_NORN25Q032A都替换为PLATFORM_DEVID_NORN25Q128 也不行啊!

    关键是这个文件里好多部分都是阴影 表示不编译 你看下附件图片。

    另外你说的“重新编译platform lib” 是什么意思 如何编译重新编译platform lib?

    看附件图片 这个库包含在norwriter_evm c6657l这个工程里???

  • 请问现在有重新编译成功了吗?