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/TMS320F28033: TMS320F28033

Part Number: TMS320F28033

Tool/software: Code Composer Studio

i has dumped code via debugger XDS100v2 in to RD-195 ARC FAULT DETECTION BOARD EVOLUTION BOARD.

i has connected all the connection  AS mention in below pdf link.

www.ti.com/.../snoa564f.pdf

but i  has shorted jumped J9 for continuous noise detection as i want to detect arc fault manually ,not from external current signal via current transformer .

when i started debugging code in CCS debugging stopped with following error 

when i has analyzed it following function call is genrating this ESTOP.

i did not understand why this function is going to generate this error. please help to solve this issue

  • Vishal,
    I'm not sure why the code would be stopping in this area; the Device_cal function should be inside TI OTP in the 0x3D7EB0 range. The address you are referring to 0x3FF599 is near the end of boot ROM for this device, which is open. If the Boot ROM symbols aren't included in your project there would not be source code..

    If you could put a BP at the Device_cal function, and then use the assembly single step to bring up the dis-assembly when the function is called I can see if the OTP appears OK. I beleive it is 2 register writes then a return back to the code.

    Best,
    Matthew
  • hello sir,

    when i tried to put break point at  Device_cal function  and then i pressed run button but what i found is that it is showing same error what i has previously mentioned ,and one thing i found is that when i am doing step by step running at that instant code run fine but when it reaches to  Device_cal  function it breaks and then starts again when i pressed step by step running button .

    i has observed following thing

    when following instruction is executed 

     SysCtrlRegs.CLKCTL.bit.XTALOSCOFF=0;

    why it jumps to 

      PLLset(0xA,CLKDIVBY1);

    when i see disassembly following line is found.  PLLset function next to extranal oscillator off . 

    i want to know is it ok??

    regards,

    vishal. 

  • Vishal,
    This is OK, this design has an external crystal Y1 that is populated on the PCB.
    For the earlier experiment it is important that we see the contents of the dis-assembly when we step into the Device_cal() function. If you are halted at the Device_cal() function use Ctrl+Shift+F5 to assembly step into.

    If CCS is giving an error, or blocking this area from view then we need to modify the memory map to allow it. You can make sure the GEL is correct by selecting "Tools" GEL file from the top menu. It should have the GEL file that matches the device(F28033). If it doesn't you can load the GEL from here: C:\ti\ccsv8\ccs_base\emulation\gel\f28033.gel

    I want to make sure that the device_cal is correct, assuming that is still where the code is stopped.

    Matt
  • Vishal,
    Wanted to reach out to see if you had resolved this issue. After re-looking at the code, and the error location, I would make sure that the device is indeed switching to the external X-tal, that is 6MHz. The code/PLL setting assume this; if the internal oscillator is selected instead its native frequency is 10MHz, which at PLL setting of 10x would cause the device to operate outside the allowable clock rate.

    I will mark this resolved, but if you reply it will clear that and alert me.

    Best,
    Matthew
  • dear sir,

    i has done two thing and everything is working fine, yellow LED is blinking and green LED is continuously on. but when i has tried to generate software based arc it is not detecting arc so why it is behaving like that..?

     1.when i has commented STL test  everything is working fine , is it ok can i bypass STL test.?

    i has attached snap shot of following

    can i do like that ?

    2.i has selected internal crystal oscillator instead of external crystal is it ok??

    i has attached snap shot of following

    please provide your feedback.

    thanks & regards,

    vishal.  

  • Vishal,
    If you right click on the project, scroll down to Build Configurations and "Set Active" Since you have disabled/don't want the STL I think you need to choose "Debug" vs the Flash standalone. This should effectively removal all the safety library calls since you have disabled the watchdog.

    Matt
  • Vishal,
    Wanted to check to see if this resolved your issue or there were still some outstanding items to look into?

    Best,
    Matthew
  • sir,

    thanks for your input. my code is running in debug mode and it is not showing any error. but when i has pressed switch SW1 . it is not detecting ARC and  red LED Is OFF it is not ON.. 

    I am getting following warning. 

    so when i has put break point in ReadAdcFast  in assembly code it is going there and i has seen the accumulator content  in watch window ,it is updating every time but when i has tried to put breakpoint in DoArcdect function it is not allowing me to put breakpoint ,i has disable all brekpoints  and only single brekapoint is there in my code at DoArcdect so i think that this warning is creating problem .

    please help to solve this sir,

    regards,

    vishal. 

  • Vishal,

    Apologies for the long time between posts.  I'm not certain why CCS is showing this error/warning in this case.  If you right click on the ArcDetect project and pick "Properties" this will bring up the properties window.  Expand the "Build" then "Advanced Options" and click "Predefined Symbols"  Let's make sure we see this:

    FLASH
    F28033
    PIN_PKG=PIN_PKG_56
    DEVICE_TYPE_28033=1

    Best,

    Matthew

  • SIR,

    THANKS FOR REPLY.

    sir my code is working. . when i has PRESSED switch (SW1) and probed at TEST POINT (TP17) ARC is generating so it is OK.

  •    

    SIR,

    THANKS FOR REPLY.

    sir my code is working. . when i has PRESSED switch (SW1) and probed at TEST POINT (TP17) ARC is generating so it is OK.

      

    but when i measure same signal after CAPACITOR (C75)  it is not transferring to ADC pin

    what i have done is, i has removed this capacitor (C75) and i am sure that i has already R63 AND C78 RC filter is available on ADC pin so i would not pic up a noise.

    now i did not understand why this capacitor needed to be removed.?

    what happen if actual ARC is generating then i needed the this capacitor?

    regards,

    vishal.