Jump to content
43oh

Recommended Posts

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?

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.

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...

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

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.)

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

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.

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....

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. 

Link to post
Share on other sites
  • 4 months later...

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.

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.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...