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.

Problem in running F28027 in standalone mode from FLASH

Other Parts Discussed in Thread: MOTORWARE, UNIFLASH, LAUNCHXL-F28027F

hi,

i am working with F28027 in CCS6.1 and developing my codes based on motorware Proj_lab_10a.

i can use my program in debug mode without any problem but i don't know how to run it in standalone mode without debugger and PC.

is it sufficient to use UNIFLASH or i must change the code or any file of project?

  • the code for F2802x is already built for flash. You just have to load it (CCS, UNIFLASH, SDFLASH, etc.) and then set the boot mode pins / switches correctly per the Boot Mode user's guide.

    Are you using LAUNCHXL-F28027F ?

  • i designed a board with F28027 and used 3 boot mode pins / switches(use Jumper) from  LAUNCHXL-F28027F . i load the .out file to the F28027 with CCS, it work fine in debug mode but in standalone mode, NO.

    like  LAUNCHXL-F28027F, for running from FLASH, i make two PINs ON and one OFF but it doesn't work.

    is it necessary to use uniflash to load the .out file to F28027 or i must set some other configurations?

  • did you update the software to set the necessary flags to enable the system and start the motor? did you hardcode a speed, etc.?

    did you copy the switch / GPIO design from the Launchpad exactly?
    what pins are you setting high/low?
  • if you mean CCS, no, i didn't update the software and don't know how to do it. tell me about it.

    about design of my board. i used exactly the switch / GPIO design from the Launchpad but used jumpers(J2) instead of switches.

    i must say that i want to drive 220v ACIM motor so i used the schematic of Launchpad for my design and write my program based on  "f28027 hvkit_rev1p1" from this address :

    "motorware_1_01_00_16\sw\solutions\instaspin_foc\boards\hvkit_rev1p1\f28x\f2802xF\projects\ccs5"

    is there any difference(for running F28027 in standalone mode from FLASH) from launchpad project and "f28027 hvkit_rev1p1" project?

    this is my schematic designs:

  • when you attach with CCS and use the MotorWare projects as-is you are changing the variables through CCS JTAG. You enable the Flags for EnableSys, Run_Identify, set SpeedRef, etc.

    Once you boot to flash you don't have anyway to communicate (unless you have a serial interface enabled). So at a minimum you need to hardcode the flags and a starting acceleration and speed. But then it's just going to run at one speed.  If you need to do more you need to add that SW logic / communications.

  • as you said, i writed the SCI module communication program. in debug mode it work fine and i can command to F28027 and change the motor state(Run, Stop, Speed Change, ....).
    but using the inverter in standalone mode, nothing happend and non of the Commands work.
    i tested more.
    i hardcode the flags and set true thegMotorVars.Flag_enableSys and gMotorVars.Flag_Run_Identify. when i play the debug mode it work fine and motor start to spin in hardcoded speed and acceleration but when i used it in standalone mode(without debugger) the same as always, it didn't work.
    how can i solve this problem?

  • Hi,

    I have a few thoughts:

    1)
    Can you use an oscilloscope to probe the signals GPIO34 and TDO?  You can then prove that both are being pulled high at the pin on start-up.

    2)
    Take a look at the following wiki article:
    http://processors.wiki.ti.com/index.php/C2000_Flash_Common_Issues/FAQs#Running_Code_Standalone

    Can you try the method of 'load symbols only' as described there and see how things work?


    Thank you,
    Brett

  • hi,
    i checked the GPIO34 and TDO signals. there was a problem on them and i fix it.
    now, the mcu work fine in hardcoded program. ex: i set true the gMotorVars.Flag_enableSys and gMotorVars.Flag_Run_Identify and attach the power(220v AC). it work fine and the motor RUN correctly.
    but the problem is, when i want to command it through UART(SCI) it doesn't work and response while it work fine and response in debug mode.
    is there anything that i must change?
  • glad you solved your HW issue.

    you would need to look at your UART code. there is obviously something wrong with your communications or with how you are using the data from your packets with the variables in code.
  • What happens if you:

    1. flash the device with your code
    2. power down then power back up
    3. connect to CCS
    4. instead of loading the .out file as you would normally, 'load symbols only' instead
    5. Run

    With loading symbols only, you should have a method to see what is going on during standalone boot.  Item 2 or 5, in the wiki article I linked in my previous post, are fairly common problems.


    Thank you,
    Brett

  • i'm confused.
    is it possible that one program work fine in debug mode without any problem but can't work in standalone mode?
    because i checked everything and i am sure that every hardcoded program work in standalone mode but the UART connection program and i am sure that the UART connection program work fine in debug mode.
    is it possible?
  • I don't think this is your problem, but you might want to try this fix

    http://e2e.ti.com/support/microcontrollers/c2000/f/902/p/480444/1735493#1735493

  • hi,

    i read the above links and do some more test and i found something.

    when i program my mcu and run it in standalone mode, it doesn't execute the code but when i press the RESET button, it reset and start to execute the code.

    i must say that i use an Interface circuit beetween F28027 and other mcu for SCI communication.

    actually my program doesn't start to execute(SCI communication doesn't run) for the first time(when the power on) but it execute fine after reset.

    what is the problem? how can i fix that?