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.

CCS/LAUNCHXL-F28069M: Error - 1142 @ 0x0 issue not resolving

Part Number: LAUNCHXL-F28069M
Other Parts Discussed in Thread: MOTORWARE

Tool/software: Code Composer Studio

We are using our own Inverter and Sensing circuit to run Bldc motor. Before the motor was running fine but we had some issues with our voltage sensing circuit so we replaced the voltage sensing and with that, we also changed the Gate Driver circuit as we were not confident with the previous gate driving circuit. 

Now when I run the lab2c everything runs properly for a couple of seconds. The motor also rotates in open loop which confirms that Gate driver is running properly and the voltage values displayed in the watch window, shows that the voltage is also been sensed properly but after some time, the system resets itself and it presents "Error 1142 @0x0". The screenshots of the error are been uploaded at the end of the post.

According to this post, I have power cycled the board (which is to sit for a couple seconds after turning the device off to make sure the memory in the device is fully cleared before turning it back on) and also tried to change the workspace, but it didn't work.

In this post he was using wrong lab experiments, I think I am using correct ones which are from "boostxldrv8301_revB" the address is (C:\ti\motorware\motorware_1_01_00_18\sw\solutions\instaspin_foc\boards\boostxldrv8301_revB\f28x\f2806xF\projects\ccs\proj_lab02c)  but I don't think this is the issue because previously I was running the similar programs and they were running fine.

In  this post, the problem was "running DELAY_US(ADC_usDELAY) before memcpy (&RamfuncsRunStart, &RamfuncsLoadStart, (Uint32) &RamfuncsLoadSize) and InitFlash();;" but in my program their are no such functions used.

According to this wiki page, "the running firmware on the device may be preventing the JTAG debugger from properly connecting (if the device has flash memory). In these cases, consult the documentation of your device to find out how to unlock it" but I don't know which document to refer and how to do it.

Please help me out.

 

The screenshot of the error has been posted below :

  • Is there a certain routine that is entered when this occurs? Are you able to stop the debugger and see if you're in an illegal ISR trap? Also, do you have the InstaSPIN .lib file correctly in the lab? This could be an issue of the PC not being able to properly locate estimator functions in ROM

    Sean
  • Is there a certain routine that is entered when this occurs?
    -No routine is entered I am only enabling the "gMotorVars.Flag_enableSys" and "gMotorVars.Flag_Run_Identify".

    Are you able to stop the debugger and see if you're in an illegal ISR trap?
    -The debugger can be stopped before the error occurs and after the error the whole system is reseted and I need to "Rude retry" to get to the watch window. But that also is not helpful. The only way out is that i need to stop the current debug section and start new one which gets the error after couple of seconds.

    Also, do you have the InstaSPIN .lib file correctly in the lab?
    -Sorry, but i dont know where this file is located i am unable to find the file. Please help locate the file.

    This could be an issue of the PC not being able to properly locate estimator functions in ROM.
    -How do i check that if this the problem? and if this is the issue, then how to solve this?
  • Please help me with this!!!!