工具/软件:Code Composer Studio
您好!
我使用了28069F 芯片并在 OTP(InstaSPIN)中使用了程序。 当我不使用 CSM 时、程序完全正常。 但是、一旦我使用了 CSM 函数、程序的其他部分是正常的、除了 OTP 中的程序无法正常调用、这会导致电机无法运行。原因是什么?
提前感谢您!
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.
工具/软件:Code Composer Studio
您好!
我使用了28069F 芯片并在 OTP(InstaSPIN)中使用了程序。 当我不使用 CSM 时、程序完全正常。 但是、一旦我使用了 CSM 函数、程序的其他部分是正常的、除了 OTP 中的程序无法正常调用、这会导致电机无法运行。原因是什么?
提前感谢您!
在禁用 CSM。之前、电机旋转成功
错误: 程序无法执行 InstaSPIN、电机无法工作。
我执行了以下过程:
#define CSM_ENABLE
#ifdef csm_enable
#pragma DATA_SECTION (halHandle、"ROM_accessed_data");
#endif
HAL_Handle halHandle;
#ifdef csm_enable
#pragma DATA_SECTION (gUserParams、"ROM_accessed_data");
#endif
在 CMD 文件中:
ROM_accessed_data :> RAMM1 page = 1.
但我无法使用以下代码:
#ifdef csm_enable
//copy .econst 至 unsecure RAM
if (* econst_end -* econst_start)
{
Memcopy ((uint16_t *)&econst_start、(uint16_t *)&econst_end、(uint16_t *)&econst_ram_load);
}
//copy .switch ot unsecure RAM
if (* switch_end -* switch_start)
{
Memcopy ((uint16_t *)&switch_start、(uint16_t *)&switch_end、(uint16_t *)&switch_ram_load);
}
#endif
因为 我不知道如何获取 &econst_start、&econst_.的地址。。。。。
我知道如何将一个函数从闪存调用到 RAM 中执行、但 .econst 呢?
这些提示是否可以帮助我成功使用 CSM?
谢谢!!