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.

SCIboot问题

/******************************************************************/

// For Piccolo B, we dont need to copy the API from Flash as it is

// present in BOOT ROM

/******************************************************************/

//   // Copy the Flash API functions to SARAM

//   Example_MemCopy(&Flash28_API_LoadStart, &Flash28_API_LoadEnd, &Flash28_API_RunStart);

怎么理解

ti提供的API例程中说flashapi函数不能在ROM和OTP中运行只能在SARAM中运行,需要拷贝到SARAM,我想直接从bootrom中拷贝API函数是否可以

  • 另外,如果从flash中拷贝的话,就必须先将flashAPI。lib烧录到flash中,这样还是需要使用仿真器或第三方软件,就失去了sciboot开发的意义

  • 请再看看您使用的芯片的FLASH-API的文档说明。

    有些芯片API放在ROM中运行即可:

    To satisfy these two restrictions, all flash API functions must be executed from on-chip, zero-wait state SARAM

    or ROM memory.

    关于第二个问题,在有些芯片中,可以先通过sciboot把包含FLASH-API的程序加载到芯片中再进行烧写芯片的FLASH,不需要先将flashAPI.lib烧录到flash中.

  • 我怎么知道那个芯片可以在ROM中运行,通过sciboot把包含FLASH-API的程序加载到芯片中再进行烧写芯片的FLASH,相当于在ram中仿真,但是ram中仿真,只可以擦出,不可以编程

  • Q:我怎么知道那个芯片可以在ROM中运行

    A:这个可以以该芯片FLASH-API中的说明文档为准,比如您提到的Piccolo B就可以在ROM中运行,在2803x的FLASH-API的文档中有说:To satisfy these two restrictions, all flash API functions must be executed from on-chip, zero-wait state SARAM or ROM memory.

    关于“但是ram中仿真,只可以擦出,不可以编程”,这句话我没能理解,通过CCS烧写FLASH其实就是在RAM中运行FLASH-API,在RAM中运行FLASH-API可以program  FLASH中的内容。

  • ram中仿真,擦除flash成功,对flash编程时报错