Sign in to follow this  
Followers 0
telforddorr

c2000 issues

17 posts in this topic

New to TI processors, but have lots of AVR time logged. Picked up a c2000 launchpad xl tms320f2802x board which has the tms320f28027ptt processor on it, for a power control project., Installed energia0101e0014 software with the xds100 drivers and ti_cgt_c2000_windows_installer compiler on a win 7 pro box. Can compile examples and run the on-board demo (including displaying temperature data returned from the board's pre-loaded demo sketch). So far, so good.

 

The issue is, when I compile and upload a simple example sketch (in this case, examples.basic.blink), the sketch compiles and tries to upload, but hangs, never completing. Board switches s1-s2-s3 set on-off-off, with s4 set on. Board selected = c2000, serial port set appropriately (e.g I get preloaded demo data back from the board), and reset button pressed at the upload prompt.

 

Any ideas?

Share this post


Link to post
Share on other sites

Hi Telforddorr,

 

Could you give me some more info on where this is failing in the upload process?  Do the LEDs at the top right of the board flash after you click OK on the message box?  What baud rate is the serial monitor setup for?  We've found that uploads won't work if the baud rate is above 38400 baud.

Share this post


Link to post
Share on other sites

A picture is probably best (click for large version):

 

post-40196-0-65769500-1425577912_thumb.jpg

 

I do not see the LEDs flash (but that is probably datastream length dependent).

 

The demo requires the Energia Serial Monitor utility to be set to 115,200, but that utility isn't used as a part of the upload (if it's like the one in the Arduino IDE). Serial Monitor default baud rate = 9600 unless specifically changed. Don't know what baud rate the 28027 is set for during upload.

 

I know the com port selection is correct and the USB/serial link works because the board's preloaded demo data gets sent successfully to the Serial Monitor utility (LED's blink like mad during the xfer).

 

It suprises me that the upload utility doesn't have a timeout. It hangs, as shown, forever.

 

Thanks for the assist. This hang issue is becoming frustrating...

Share this post


Link to post
Share on other sites

No response...

 

OK, let me ask a different form of the question: has anybody personally successfully uploaded a sketch to a C2000 Launchpad XL board using the above software combination?

 

Want to be sure it's even possible before continuing this.

Share this post


Link to post
Share on other sites

I would imagine @@TI_Trey 's only done it a zillion times since he personally developed the C2000 port of Energia. I have played with it (the C2K Energia port) once so far I believe. Should take another look soon...

 

Lack of response probably reflects the lesser interest and experience of most of us with the C2000 LaunchPads, not to knock the platform at all (it's a nice chip for its intended applications IMO) but please be patient :)

 

Sent from my Galaxy Note II with Tapatalk 4

Share this post


Link to post
Share on other sites

Not a problem - just wanted to do a sanity check and be sure what I'm trying to do is even possible. Since the C2000 is a specialized (and thus a less popular) processor, it wouldn't suprise me if the energia software or driver software has drifted away from the board firmware (updates being what they are, all being done by separate groups), and nobody noticed. If so, then trying to figure out what I screwed up here will be fruitless.

 

I patiently await response(s).

 

Side note: talked with a guy I'm working with up in Oregon who has the same board, same software, and same problem. His is a little more interesting - he initially successfully uploaded to a C2000 using CCS software, then tried Energia, which failed. Retrying Code Composer, it now also fails. FWIW. (I haven't tried CCS yet.)

Share this post


Link to post
Share on other sites

I'm experiencing the exact same problem with my C2000 and Energia. Really hope there's a solution - I'd like to use the C2000 for my project, but I'd probably switch to the MSP if the C2000 is going to force me to use Code Composer...

Share this post


Link to post
Share on other sites

A picture is probably best (click for large version):

 

attachicon.gifuploadHang.jpg

 

I do not see the LEDs flash (but that is probably datastream length dependent).

 

The demo requires the Energia Serial Monitor utility to be set to 115,200, but that utility isn't used as a part of the upload (if it's like the one in the Arduino IDE). Serial Monitor default baud rate = 9600 unless specifically changed. Don't know what baud rate the 28027 is set for during upload.

 

I know the com port selection is correct and the USB/serial link works because the board's preloaded demo data gets sent successfully to the Serial Monitor utility (LED's blink like mad during the xfer).

 

It suprises me that the upload utility doesn't have a timeout. It hangs, as shown, forever.

 

Thanks for the assist. This hang issue is becoming frustrating...

 

I got mine to work. I installed the newest version of the compiler and not the 6.2.6 version suggested in the energia website. I get the exact same prompt to reset the board but its in separate window too (See picture 1).

And after resetting the board and hitting OK it uploads the program.. It takes something like 10 seconds and the whole program upload takes like 20 seconds. See picture 2 of complete upload. My code itself is not working but i did confirm the upload working with multimeter and setting one pin high and low. I just think the SPI library isnt working the same way as the msp430 boards is.

post-39904-0-23634900-1425982446_thumb.png

post-39904-0-46478900-1425982451_thumb.png

bluehash likes this

Share this post


Link to post
Share on other sites

Congratulations on your success!

 

Which specific version are you using? I'm using ti_cgt_c2000_6.4.2_windows_installer.exe. My energia version is from energia-0101e0014-windows.zip. Yours? Launchpad drivers are from xds100.zip.

 

Thanks for the response.

Share this post


Link to post
Share on other sites

OK, solution found.

 

Apparently, the baud rate used by the uploader is "borrowed" from the setting set in the Serial Monitor utility. It seems that every time I enter energia, the baud rate is reset to 115,200 (contrary to what I stated above). This rate will not work for uploading, as Trey stated. So, just before starting a recompile/upload, reset the baud rate in the Serial Monitor to 9600, then immediately start the compile/upload. Switches set up-down-down, and S4 up. After compilation, takes maybe 20 seconds to upload.

 

Not clear what the timing is from pressing the reset button to pressing OK - will have to experiment (undocumented).

 

Hint: set the compiler and uploader outputs in "preferences" to "verbose" mode. You can see what baud rate is being used that way.

Share this post


Link to post
Share on other sites

Well, this must be another "everything you know is wrong" day. Contacted the guy up in Oregon and had him try the same methodology as I used, with no success. His system still will not upload, but mine will. Thus, I'm no closer to understanding what's going on here than I was when I started. Sitting here watching the lights blink - tweaked the demo to blink all four LEDs sequentially and send messages back on the serial port. Ironically, the messages are; "I am not alive", "(cough)", "(hack)", and "I am alive". The sequence repeats endlessly. Kind of mirrors the nature of progress here.

 

This thing's got snakes in the configuration, and I've no idea where they are, or when they are going to byte next....

Share this post


Link to post
Share on other sites

Congratulations on your success!

 

Which specific version are you using? I'm using ti_cgt_c2000_6.4.2_windows_installer.exe. My energia version is from energia-0101e0014-windows.zip. Yours? Launchpad drivers are from xds100.zip.

 

Thanks for the response.

Energia version energia-0101E0014-windows, xds drivers installed with code composer studio, and code generation tools downloaded from texas is ti_cgt_c2000_6.2.11_windows_installer. I didnt even notice that there is 6.4.xx version. Havent had any time to toy around with the board in few days (been sick). I havent done any setting alterations for my energia , its fresh "install" on win7 64bit. Still cant get the spi work tho.. Can get it work on mspr430 but not c2000. 

Share this post


Link to post
Share on other sites

I am having the same problem with the C2000 F28027.  I can pass information to the board with the Energia Serial Monitor and Putty but I cannot upload a program to it with Energia or CCS.  The upload LEDs never blink when I try to upload the program, it just compiles then fails to upload after I hit ok.  There is much talk about reducing the baud speed however nobody has given instructions on how to do so, at least that I can decipher.  Microsoft Surface Pro 2/Windows 10.  On my iMac it won't even compile, citing a header file it cannot find.  I have the latest Energia and drivers as of Aug 12 2015.

 

Now I will have to buy a 430 or switch to Arduino because TI either was too ambitious releasing so many different boards or I am just not that smart and it is all me.

Share this post


Link to post
Share on other sites

As a follow-up to my complaint about the C2000 yesterday, I just received my MSP430G2 today.  10 minutes later I had it up and running on my iMac and Surface Pro 2 (Win10) with Energia, no problem.  Besides being more complex, the C2000 is not ready for prime time with Energia or CCS in my opinion, as there are significant issues with connection and even the example codes often fail to compile.  If you want a proven system get the MSP430.

Share this post


Link to post
Share on other sites

Sorry to hear y'all are having trouble.  I don't check these forums as much as I should.  My apologies.

 

A couple things to note:

  • Compiler version should be completely independent of whether the upload works or not.  Nearly any C2k compiler version should be ok.  Also there is a new version of the compiler out that I should be able to integrate into Energia, so that user's will not have to do this step manually.  Hopefully I can get this into the next release, but no promises.
  • Energia currently uses the device's serial boot mode to program the device.  This is why you have to set all those d@mn switches.  First the PC loads a small program into the device's RAM.  This is the short LED blink you see in the beginning.  Then this program recieves the actual application and programs it into flash.  This is the part where you see the LEDs alternately blink.  Because of how everything shakes out, the baud rate needs to be 38400 or less.
  • I will be updating Energia for C2k to use a new progamming mechanism called DSLite.  DSLite is a lightweight version of the debug server CCS uses. This new programming scheme will use JTAG instead of serial, will be faster, and will not require any switch configuration prior to programming
  • CCS programming is probably failing due to the 3rd boot switch.  For CCS to connect this needs to be in the up position.  I believe this is documented in the user's guide for the LaunchPad.
  • I've seen programming failures with the 27F (instaSPIN) version of the LaunchPad in Energia.  I've recreated the issue here, but haven't been able to isolate the cause.  This will automatically be fixed when we switch over to DSLite.

 

Hopefully that answers some questions and helps people get up and running!

spirilis and bluehash like this

Share this post


Link to post
Share on other sites

I have often had problems getting a C2000 Launchpad working with a new install of Energia (I teach engineering at a community college and have assisted about a dozen students in a robotics club get up and running with Energia/C2000 Piccolo ('027 and '069) processors).  The latest trick I learned was to right click on the Energia.exe file and select "properties".  Under the Compatibility tab, checking "Run this program in compatibility mode for;" and selecting the appropriate operating system (selecting windows 7 fixed the download problem that was encountered last night).  A student also taught me a nice trick to see if the Serial Port is working with the Launchpad before you start a download.  Under the "tools" tab select the Serial Monitor, enter some characters and watch for the Rx blue led on the Launchpad to blink when you hit "send".

 

I still have one computer that refuses to work with a C2000 Launchpad (Lenovo W500 running win7).  I also have a Lenovo T500 running win7 that has no problems!

 

In my opinion, Energia is nice for "newbies" that want to get started learning.  Most of the example sketches were written for other Launchpads.  CCS is where you have to go if you want all of the performance.  

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0