Jump to content
43oh

Code Composer Studio v6 now officially released


Recommended Posts

  • Replies 52
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

[Edit: while this is interesting code for example purposes, if you really want to shrink your code size, look at the -minrt flag when you link instead of this solution]   Seeing as we are piling on

FYI- Anyone looking to use the new msp430-elf-gcc, note that their msp430.h has an error in it:   C:\ti\ccsv6\ccs_base\msp430\include_gcc\msp430.h has a bunch of checks for crap like __MSP430XGENERI

Fwiw, I got an F5529 project going, even with one of the functions slammed up into FAR_ROM and working great. Nokia 1202 LCD:   Also, I got IQmathLib working!   Accuracy kinda sucked there; I

Posted Images

My observation when attending industry shows and conferences.

 

It has been a long time since I actually went to conferences, but I have noticed that in the videos I have watched of the presentations, almost all of the best presenters are using OS X.

 

What is particularly difficult to understand is why TI would choose to support Linux and not OS X, since getting something running on Linux is 99% of the way towards getting something to run on OS X.

Link to post
Share on other sites

More gcc issues ..

 

So I tried to compile a simple C++ blink led program .. it choked ...

                 from blinkled.cpp:5:/home/kimballr/opt/ccs6_0_190/ccsv6/ccs_base/msp430/include_gcc/iomacros.h:50:32: error: expected unqualified-id before string constant     #define sfrb_(x,x_) extern "C" volatile unsigned char x asm(#x_)                                ^/home/kimballr/opt/ccs6_0_190/ccsv6/ccs_base/msp430/include_gcc/iomacros.h:76:32: note: in expansion of macro 
Link to post
Share on other sites

Git integration may just be enough to make me to go for it. Unfortunately my full CCS licence (from a Piccolo control stick deal) only covers V5, so I'll need to keep that around too. I don't tend to do much stuff over the free limit anyway.

Link to post
Share on other sites

Wouldn't git integration just be part of Eclipse, not something TI added themselves? Isn't it possible to install CCS5 into an existing (more up-to-date) eclipse installation and get access that way, or to add git support to the CCS version of eclipse?

 

Just wondering; I have a full license for CCS for contracting work, but only use the IDE to verify a project builds under it before hand-off.

Link to post
Share on other sites

The last time I tried installing CCS into an existing Eclipse instance it had to be a out of date (3.x) 32 bit version. I just went with the integrated installation. At least this time it's 4.3, but is it still limited to 32-bit?

Link to post
Share on other sites

v6 is working pretty well for me.  The beta was a bit clunky and the App Center never worked.  After tracking down a proper libudev0 for Ubuntu 13.10 64bit, the release version is functioning quite well.  A few years ago, TI gave me a full platinum license and it transferred over to v6 with no issues.

Link to post
Share on other sites
  • 2 weeks later...

Does anyone else have trouble importing the empty USB project? CCS keeps waiting for:

file:///C:/ti/msp430/MSP430ware_1_80_01_03/usblib430/MSP430_USB_Software/MSP430_USB_API/examples/emptyUsbProject/specialtirex.html 

Other example projects import fine.

Link to post
Share on other sites
  • 1 month later...

FWIW, I don't think this actually enables Large Memory support either. Creating a section that lives in FAR_ROM (the memory ld script symbol for 0x10000+) and assigning a function to it results in a cryptic message like:

 

./ste2007.o: In function `ste2007_init':

ste2007.c:(.text.ste2007_init+0x4): relocation truncated to fit: R_MSP430X_ABS16 against symbol `ste2007_issuecmd' defined in .far_rom section in ./ste2007.o

collect2.exe: error: ld returned 1 exit status

gmake: *** [nokiahello.out] Error 1

gmake: Target `all' not remade because of errors.

 

I'll have to see tomorrow if this basic program works on the F5529, if so then at least it's a reasonable step in the future direction for free use of CCS on all the MSP430's.

 

EDIT: Quite mistaken, this GCC supports -mlarge.

Go into project's Properties > CCS Build > GNU Compiler > Miscellaneous, and add an "Other" flag as -mlarge.

 

Then looking at the ASM output, I see the "calla"'s and such.

 

And from msp430-elf-objdump -x, my "ste2007_issuecmd()" function lives at:

 

00010000 g .highmem 00000032 ste2007_issuecmd

 

0x10000 :-)

Hi, Spirilis. I have the same problems you have solved regarding using FAR_ROM with the MSP430x5x family (a MSP43F5438 in my case).

Started with a working program (less than 64Kb) and tried relocating code to FAR_ROM defining a ".far_text" section at "ld" file (just a copy of .text section, deleting .lowtext  and using > FAR_ROM instead of ROM >). Then I put an "__attribute__((section(".far_text"))) " to a function, and built the code. Inmmediately I found the above "relocation truncated to fit: R_MSP430X_ABS16 against symbol" message.

Then I tried defining -mlarge flag at "Properties > CCS Build > GNU Compiler > Miscellaneous>Other", and also at "Properties > CCS Build > GNU Linker > Miscellaneous>Other flags".... no way --> "region 'ROM' overflowed by 2744 bytes"...

But also,  if I delete the __attribute__((section(".far_text"))) " so I'm using the original code allocation (which worked at first) now it doen's work!!! I need to remove trhe -mlarge flags to make it work again...!!!

So -mlarge flags are totally messing up my code allocation...(even with a "small" program)

 

FYI, I've also defined symbols "__MSPF4305438__", "GCC_MSP430X", and "__LARGE_DATA_MODEL__" at my "Compiler section"...

Could you help me to find what is happening?

(Perhaps a copy of one of your "projects", using FAR_ROM memory, could be a help...)

Thanks in advance!

 

 

PS. I have no .highmem section at my ld file

Link to post
Share on other sites

Hi, Spirilis. I have the same problems you have solved regarding using FAR_ROM with the MSP430x5x family (a MSP43F5438 in my case).

Started with a working program (less than 64Kb) and tried relocating code to FAR_ROM defining a ".far_text" section at "ld" file (just a copy of .text section, deleting .lowtext and using > FAR_ROM instead of ROM >). Then I put an "__attribute__((section(".far_text"))) " to a function, and built the code. Inmmediately I found the above "relocation truncated to fit: R_MSP430X_ABS16 against symbol" message.

Then I tried defining -mlarge flag at "Properties > CCS Build > GNU Compiler > Miscellaneous>Other", and also at "Properties > CCS Build > GNU Linker > Miscellaneous>Other flags".... no way --> "region 'ROM' overflowed by 2744 bytes"...

But also, if I delete the __attribute__((section(".far_text"))) " so I'm using the original code allocation (which worked at first) now it doen's work!!! I need to remove trhe -mlarge flags to make it work again...!!!

So -mlarge flags are totally messing up my code allocation...(even with a "small" program)

 

FYI, I've also defined symbols "__MSPF4305438__", "GCC_MSP430X", and "__LARGE_DATA_MODEL__" at my "Compiler section"...

Could you help me to find what is happening?

(Perhaps a copy of one of your "projects", using FAR_ROM memory, could be a help...)

Thanks in advance!

 

 

PS. I have no .highmem section at my ld file

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