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.

TMS320F28027F: Issues while running instaspin-foc proj_lab01

Part Number: TMS320F28027F
Other Parts Discussed in Thread: MOTORWARE, LAUNCHXL-F28027F, LAUNCHXL-F28027

Hi All,

I'm trying to run proj_lab01 (instaspin_foc\boards\boostxldrv8301_revB\f28x\f2802xF\projects\ccs\proj_lab01) in C2000 LaunchPad XL. The app hangs while executing OFFSET_init function in hal.c at

  // initialize the current offset estimator handles
  for(cnt=0;cnt<USER_NUM_CURRENT_SENSORS;cnt++)
    {
      obj->offsetHandle_I[cnt] = OFFSET_init(&obj->offset_I[cnt],sizeof(obj->offset_I[cnt]));
    }

offset.c and filter_fo.c were not added to the project. So I added them and now OFFSET_init works. But again it hangs in HAL_setParams at

  _iq beta_lp_pu = _IQ(pUserParams->offsetPole_rps/(float_t)pUserParams->ctrlFreq_Hz);

On analyzing further I found that any floating point operation hangs the app. (I confirmed by doing some floating point operation in main.c upon startup)

I've some older apps that works correctly. Having problems only with instaspin-foc lab examples.

NOTE: I'm using CCS Version: 7.3.0, C2000 compiler TIv16.9.7, motorware_1_01_00_18

Thanks,

Prakash