工具与软件:
我在 Flash 中同时有两个不同的应用程序,它们都有自己的子函数,我可以调用或运行这些 应用程序之一。
我遇到的问题是、如果我给 应用程序的起始地址、它将进入预取条目或 undef 条目。如果我给_c_int100函数地址也是同样的问题。那么、我如何高速缓存跳转应用程序、或者如果我只是想在他们的应用程序中使用该函数、这是否可行?
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.
工具与软件:
我在 Flash 中同时有两个不同的应用程序,它们都有自己的子函数,我可以调用或运行这些 应用程序之一。
我遇到的问题是、如果我给 应用程序的起始地址、它将进入预取条目或 undef 条目。如果我给_c_int100函数地址也是同样的问题。那么、我如何高速缓存跳转应用程序、或者如果我只是想在他们的应用程序中使用该函数、这是否可行?
我们可以写入内存库0、但它正在进入预取
/* USER CODE BEGIN (0) */
#include "bl_flash.h"
/* USER CODE END */
/* Include Files */
#include "sys_common.h"
/* USER CODE BEGIN (1) */
/* USER CODE END */
/** @fn void main(void)
* @brief Application main function
* @note This function is empty by default.
*
* This function is called after startup.
* The user can use this function to implement the application.
*/
/* USER CODE BEGIN (2) */
#define SIZE 16
uint8_t dataToProgram[SIZE] = {4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15};
#define BANK0 0
#define STARAT_ADDRESS 0x0000C000 /////0x00014DA0
extern unsigned int apiLoadStart;
extern unsigned int apiLoadSize;
extern unsigned int apiRunStart;
extern unsigned int constLoadStart;
extern unsigned int constLoadSize;
extern unsigned int constRunStart;
/* USER CODE END */
int main(void)
{
/* USER CODE BEGIN (3) */
/* Copy the flash APIs to SRAM*/
//_copyAPI2RAM_(&apiLoadStart, &apiRunStart, &apiLoadSize);
// memcpy(&apiRunStart, &apiLoadStart, (uint32)&apiLoadSize);
/* Copy the .const section */
//_copyAPI2RAM_(&constLoadStart, &constRunStart, &constLoadSize);
// memcpy(&constRunStart, &constLoadStart, (uint32)&constLoadSize);
Fapi_Init(BANK0, BANK0);
// Fapi_BlockErase(STARAT_ADDRESS, SIZE);
Fapi_BlockProgram(STARAT_ADDRESS, (uint32_t)dataToProgram, SIZE);
// Fapi_BlockErase(STARAT_ADDRESS, SIZE);
// Fapi_BlockProgram(STARAT_ADDRESS, (uint32_t)dataToProgram, SIZE);
while(1)
{
}
/* USER CODE END */
// return 0;
}
/* USER CODE BEGIN (4) */
/* USER CODE END */
输入我将分享屏幕快照.
请帮助、如何删除此错误。
尊敬的 Sai Teja:
很遗憾、我在您的屏幕截图或您共享的代码中看不到任何与应用程序跳转相关的代码。
如果您需要代码跳转参考、请参阅下面链接中的 CAN 引导加载程序示例或 UART 示例。 这些示例都是经过良好测试的示例、请将其作为参考并执行相同的步骤:
SafetyMCU_bootloader«bootloader - Hercules_examples/Hercules_examples -适用于 Hercules 处理器的软件示例(TI.com)

——
谢谢、此致、
Jagadish。