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.

[参考译文] TMS570LC4357:引导加载程序-应用程序->使用 FreeRTOS 的应用程序在创建任务时失败

Guru**** 2482105 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/977981/tms570lc4357-bootloader---appication---application-with-freertos-fails-on-task-creation

器件型号:TMS570LC4357

位于 Bank0中的 Btld 和位于 Bank1中的应用程序。

从 btld 切换到应用程序可以正常工作、但进入应用程序时"create_rtos_tasks"->"MPU_xTaskCreation"->

basetype_t prvRaisePrivilege (void)

   寄存器 BaseType_t return_value asm ("r0");
   asm (" swi 1 ");
   返回 return_value;

它跳至0x00000008、这是 bltd 的位置、而不是应用程序的位置。

在 hL_sys_link.ld 应用程序中、设置为:

"

Vectors (Rx)    :origin = 0x00200100,length = 0x00000020

内核(Rx)    :origin = 0x00200120,length = 0x00008000

闪 存(Rx)    :origin = 0x00208120、length =(0x001F7EE0 + 0x00200000)

"

只需提到没有 FreeRTOS 的应用程序工作正常(在启动时使用 vimInit)

发现了这一点、但没有答案:

e2e.ti.com/.../785778

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好  Ilija、

    该器件只支持一个位于闪存(0x00000000)开头的异常向量表。 当您的应用程序中发生一个 SVC 异常时、代码在0x0000000的异常表中分支到0x08。

    如果引导加载程序不使用 SVC 处理程序、您可以将引导加载程序 sys_intvecs.asm 中的 SVC 分支地址更改为您的应用程序:

    引导加载程序 sys_intvecs.asm:

    resetEntry
              b _c_int00
    UndefEntry
             b 未定义尝试

             b 0x2000F8 ;0x200100-0x8  for Svc

    应用 sys_intvecs.asm:

    resetEntry
              b _c_int00
    UndefEntry
             b 未定义尝试

             b vPortSWI

     

     

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    感谢王启明

    这让我的问题大了点:)

    此致、

    Ilija Kostic