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.
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?
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
What happens if you:
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
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?