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.

TMS320F28335: controlsuit ->HVMotorCtrl+PfcKit_v2.1->HVPM_Sensorless_2833x can not run

Part Number: TMS320F28335
Other Parts Discussed in Thread: CONTROLSUITE, C2000WARE

hi, 

when I down load "HVPM_Sensorless_2833x"  to F28335 board .   It can not run .and I don't know why . 

it shows :

when  click "run" ,   nothing happen :

I know this "sensorless_2833x " is float .Wether any place I configure wrong?  when I download other program in it , it run well. 

please help 

best regard

hunkfu

  • this is float mcu confugurate. 

  • Hello:
    I try again with HV-KIT . find it well run when RAM configure . but when I pre-defined "FLASH" , and changed "F28335_RAM_HVPM_Sensorless.cmd" to "F28335_FLASH_HVPM_Sensorless.cmd" then compiler and download . in this case , program can not run!
  • Add a "FLASH" definition in "Project->Properties->Build->Advanced Options->Predefined Symbols->Pre-define NAME". Please try again.
  • yes, as you see, i have done. but in this way , program can not run!
  • hi,yanming:
    these is wrong message shows when I changed it to FLASH:

    C28xx: Trouble Halting Target CPU: (Error -2062 @ 0x0) Unable to halt device. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 7.0.100.0)
    C28xx: Power Failure on Target CPU
    C28xx: Error occurred during flash operation: Could not read 0x0000900E@Data: target is not connected
    C28xx: Error occurred during flash operation: Could not write 0x00009009@Data: target is not connected
    C28xx: Error occurred during flash operation: Could not write 0x00009008@Data: target is not connected
    C28xx: Error occurred during flash operation: Failed to run target while trying to execute FlashAPIInterface28335V2_10.out
    C28xx: Error occurred during flash operation: CPU Reset error. The requested reset was aborted.
    C28xx: Error occurred during flash operation: Could not read 0x00000AEF@Data: target is not connected
    C28xx: Error occurred during flash operation: Could not read 0x00007020@Data: target is not connected
    C28xx: Error occurred during flash operation: Could not write 0x00007020@Data: target is not connected
    C28xx: Error occurred during flash operation: Could not write 0x08834@Program: target is not connected
    C28xx: Flash Programmer: Error encountered when writing to flash memory
    C28xx: File Loader: Memory write failed: Unknown error
    C28xx: GEL: File: E:\workspace7_f28335\controlSUITE\development_kits\HVMotorCtrl+PfcKit_v2.1\HVPM_Sensorless_2833x\F2833x_RAM\HVPM_Sensorless_2833x.out: Load failed.

    please help or try it on HV-KIT board of TI design.
    best regard!
    hunkfu
  • Please make sure the .cmd file is correct and JTAG emulator works well. The example project (HVPM_Sensorless_2833x) worked well that only needs changing .cmd file to F28335_FLASH_HVPM_Sensorless.cmd and defining "FLASH" symbols as I mentioned above.
  • hi, yanming:
    I try download other f28335 program as FLASH cord . it can run well . but "HVPM_Sensorless_2833x " download into board , then can not run. please make sure this program can run on hv-kit . thank you.
  • and I know well how change ram to flash option . but this program have problem . I don't know why.
  • The testing was done on hv-kit that worked well, please check the switched or jumpers on controlCard and hv-kit, to ensure the emualtor works well and power supply for controlCard is ok.
  • thank you Yanming replied .
    "HVPM_Sensorless_2833x" mixed 28035 and 28335. "HVPM_Sensorless_2833x" complied are based f28035 . when you chang to f28335 flash .you will find problem . maybe , this issue can not be fund . as same condition , it run well "c2000ware f28335 flash "

    when download " "HVPM_Sensorless_2833x_" flash ---click "run" . it run well , but "EnableFlag" set "TRUE". it will show :

    Trouble Reading Register PC:
    (Error -1142 @ 0x0)
    Device blocked debug access because it is currently executing non-debuggable code. Choose 'Rude Retry' to disable polite mode and force the operation.
    (Emulation package 7.0.100.0)

    Maybe there are some problems in "HVPM_Sensorless.c" . because , it is suitable f28035.
    please try to test it again.

    best regard
    hunk fu
  • hi Yanming:
    I fund this problem reason, because of "ADC_cal()" , this function in micro "ADC_MACRO_INIT(ChSel,TrigSel,ACQPS)". if I document out "ADC_cal()" , HVPM_Sensorless_2833x run well . I don't know why in this place ADC adjust can not run . could you check it ?
    thanks
    hunkfu
  • Please refer to the comments in HVPM_Sensorless-DevInit_F2833x.c, to check the version of the controlCard and the crystal on it.

    To increase the flash waitstate as below codes if the CPU frequency is configured to 150MHz.
    //Set the Paged Waitstate for the Flash
    FlashRegs.FBANKWAIT.bit.PAGEWAIT = 5;

    //Set the Random Waitstate for the Flash
    FlashRegs.FBANKWAIT.bit.RANDWAIT = 5;

    //Set the Waitstate for the OTP
    FlashRegs.FOTPWAIT.bit.OTPWAIT = 8;
  • yes, yanming!
    that is ok !
    you know this problem make me stuck long time . and I use C2000WARE is ok before , then I had to migrate HVPM_Sensorless.c to C2000WARE.
    today i read your replied . and try it , everything is ok!
    thanks