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.

TMS320F28054M: 移植sci,pll问题

Part Number: TMS320F28054M
Other Parts Discussed in Thread: C2000WARE, MOTORWARE

将TMS320F2802x系列sci程序移植到28054上,出现卡死在while(PLL_getLockStatus(obj->pllHandle) != PLL_LockStatus_Done) {}的情况,想问下什么原因?未移植前程序没有这个问题。

  • 你好,这是锁相环没有锁住,程序移植的时候有做过哪些修改吗?

    另外,F28054也有SCI例程,你可以参考一下:C:\ti\c2000\C2000Ware_3_04_00_00\device_support\f2805x\examples\c28\sci_echoback

    • 我是按照这个步骤添加的:
    • Add sci.c source file to Motorware project
    • Add SCI_init() functions to HAL_init() function in hal.c
    • Add sciXHandle definitions to HAL_Obj in hal_obj.h (where X is either A or B for SCI-A or SCI-B module)
    • Add HAL_enableSciInts function definition in hal.h
    • Add sciXRxISR or sciXTxISR function definitions in hal.h
    • Add sciX ISR vectors to HAL_initIntVectorTable() in hal.h
    • Add HAL_setupSciX function definitions in hal.h
    • Add HAL_setupSciX source in hal.c
    • Change CLK_disableSciaClock() to CLK_enableSciaClock() in HAL_setupPeripheralClks() in hal.c
    • Add HAL_enableSciInts function in hal.c
    • Add sciXRxISR or sciXTxISR functions in proj_lab13.c
    • Call HAL_enableSciInts() function in proj_lab13.c