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.
Hello,
What FET are you using?
Are you using the UBS FET (MSP-FET430UIF)? Or the parallel port version? If the parallel port version - did you select support for that FET when installing CCS? Typically this is not included by default.
Have you made sure the target configuration you have created is active?
Please check these items and let us know.
Best Regards,
Lisa
Hello again,
just thought I would see if the tips posted where helpful or whether you would be able to provide a bit more information.
Hopefully the above post did point you to the solution.
Best Regards,
Lisa
Hello,
Parallel port version I am using, and i have selcted the FET when installing CCS, typically it was not checked but I checked the option. Before that I have selected the "microcontroller core addition" and unchecked(not selected) the emulator only ckecked(selected) the FET because I am getting trouble during the installation. If i checked(selects) all the options in "microcontroller core addition" then it will not installing.
which path is better to me go for installation "microcontroller core addition" or "MSP430 only core addition" ?
How to simulate the C code? and plese give me in detail about new target creation for simulation and MSP430 parallel port FET.
can i write the assembly code ? if yes how and what type of file i should create and how to add the header files?? and how to simulate the code?
please reply me for the above..
neminath
Hi Neminath,
That is odd that that you would have problems installing. For sure see if the MSP only version is any different as you will of course need to install emulator support. Please keep us posted if you have continuing installation issue and please provide further detail on the errors/steps/screenshots etc.
Regarding your other questions. CCS unfortunately does not have a simulator for the MSP430 so you will not be able to simulate in CCS. IAR - www.iar.com - does have an MSP430 simulator.
When you create an MSP430 project in CCS you should notice on the left in the included files a .ccxml file. If you double click on that file, this is where you will see the option to select your parallel port FET.
You are able in CCS as you need to create an assembly only project (this will be an option if you follow the steps from File->New->CCS Project and start creating a project for the MSP430. You can also in CCS do a mixture of assembly and C.
My best advice is to make sure you get a clean working installation and go through some of the documents and examples.
There is a good document on CCS for the MSP430 here:
http://focus.ti.com/lit/ug/slau157r/slau157r.pdf
I hope this helps.
Best Regards,
Lisa
Hello Lisa,
can you please help me about the simulation. I got it that CCS is not having the option for the simulation but other
than that which software should I go ?
I am using two Cntrollers which are MSP430F449, MSP430F427.
both are different projects but I want simulator should be the same for the both. so that I can easily simulate,
please help me out for this.
Regarding Assebly Code. I wrote the code which is given by TI examples but if I exicute the program then its not creating the .out file.
for that what should I add ?
error:
<Linking>
undefined first referenced
symbol in file
--------- ----------------
main C:\Program Files\Texas Instruments\ccsv4\tools\compiler\msp430\lib\rts430.lib<boot.obj>
error: unresolved symbols remain
error: errors encountered during linking; "basic.out" not built
>> Compilation failure
gmake: *** [basic.out] Error 1
gmake: Target `all' not remade because of errors.
Build complete for project basic
For assembly code also i need to simulate and for C too.
I am just thinking to buy the MSP430USBFET from TI, what is the feed back about that.?
after i connecting MSP430USBFET can i simulate and debug ?
best regards,
neminath
Hi Neminath,
Ok here is some feedback/information I hope will help you.
First of all, yes I can certainly recommend our MSP-FET430UIF. With the FET you can debug ... but having the FET tool will not make a difference that CCS has no MSP430 simulator. So in CCS you will still not be able to simulate ... only download and debug.
The other supported compiler for the MSP430 from IAR (www.iar.com) does have a simulator. Like CCS there is a free code size limited version.
Regarding the error you see. What options have you used? Did you create an assembly only project? Are you using a CCS Assembly example?
Best Regards,
Lisa
Hi Lisa,
I have brought the MSP-FET430UIF. This is really working without any problem except simulation. I can't go for IAR because
its very expencive. If for this MSP-FET430UIF IAR software(free version) can works means i would prefer to go for it.
Assembly code problem:
I really stuck in some way during building the projects,could u please send me some simple example assembly code?
I want to know how to START,RESET and INTERRUPT ROUTIN.please send me simple portline toggle program.
Yeah I am using a CCS Assembly example. did not change the code.
here are the steps i followed.
file--> new-->CCS project--> project name(basic)--> device selection(MSP430F449)-->finish.
file-->new-->source file-->source file:basic.asm --> finish.
errors:
"../lnk_msp430f449.cmd", line 83: error: placement fails for object ".reset",
size 0x4 (page 0). Available ranges:
RESET size: 0x2 unused: 0x2 max hole: 0x2
undefined first referenced
symbol in file
--------- ----------------
main C:\Program Files\Texas Instruments\ccsv4\tools\compiler\msp430\lib\rts430.lib<boot.obj>
error: unresolved symbols remain
error: errors encountered during linking; "basic2.out" not built
>> Compilation failure
gmake: *** [basic2.out] Error 1
gmake: Target `all' not remade because of errors.
Build complete for project basic2
problems:
Severity and Description Path Resource Location Creation Time Id
errors encountered during linking; "basic2.out" not built basic2 line 0 1313122960781 8
placement fails for object ".reset", size 0x4 (page 0). Available ranges: RESET size: 0x2 unused: 0x2 max hole: 0x2 basic2 line 0 1313122960781 6
unresolved symbol main, first referenced in C:\Program basic2 line 0 1313122960781 7
Please Help me regarding above.
Best Regards,
Neminath
Hi Lisa,
I have brought the MSP-FET430UIF. This is really working without any problem except simulation. I can't go for IAR because
its very expencive. If for this MSP-FET430UIF IAR software(free version) can works means i would prefer to go for it.
Assembly code problem:
I really stuck in some way during building the projects,could u please send me some simple example assembly code?
I want to know how to START,RESET and INTERRUPT ROUTIN.please send me simple portline toggle program.
Yeah I am using a CCS Assembly example. did not change the code.
here are the steps i followed.
file--> new-->CCS project--> project name(basic)--> device selection(MSP430F449)-->finish.
file-->new-->source file-->source file:basic.asm --> finish.
errors:
"../lnk_msp430f449.cmd", line 83: error: placement fails for object ".reset",
size 0x4 (page 0). Available ranges:
RESET size: 0x2 unused: 0x2 max hole: 0x2
undefined first referenced
symbol in file
--------- ----------------
main C:\Program Files\Texas Instruments\ccsv4\tools\compiler\msp430\lib\rts430.lib<boot.obj>
error: unresolved symbols remain
error: errors encountered during linking; "basic2.out" not built
>> Compilation failure
gmake: *** [basic2.out] Error 1
gmake: Target `all' not remade because of errors.
Build complete for project basic2
problems:
Severity and Description Path Resource Location Creation Time Id
errors encountered during linking; "basic2.out" not built basic2 line 0 1313122960781 8
placement fails for object ".reset", size 0x4 (page 0). Available ranges: RESET size: 0x2 unused: 0x2 max hole: 0x2 basic2 line 0 1313122960781 6
unresolved symbol main, first referenced in C:\Program basic2 line 0 1313122960781 7
Please Help me regarding above.
Best Regards,
Neminath
Hi Neminath,
First of all there is nothing I can do to provide you a simulator in CCS. The code size limited version of IAR does allow simulation so it would depend on your application and how much code you will be writing. Also be careful as ti could be that the free IAR version stipulates in the license agreement that the free version is not for production use for example.
Unfortunately I can not write code for you. There are always some quite good examples for the MSP devices - including for assembly.
Please see this link to the examples for the MSP430F449.
http://www.ti.com/litv/zip/slac019j
Best Regards,
Lisa
Hi Lisa,
In ccs v4.2 there is any settings or any other options is there for assembly code?
Because I don't know why assembly code are not compiling. I have tried all the TI examples,
step 1: file->new->ccs project-> lelecting device -> finish.
step 2: file -> new-> source file-> file name with .asm -> ok.
any other option i should folow except this???
assembly program:
;******************************************************************************
; MSP-FET430P440 Demo - Software Toggle P5.1
;
; Description: Toggle P5.1 by xor'ing P5.1 inside of a software loop.
; ACLK = n/a, MCLK = SMCLK = default DCO
;
; MSP430F449
; -----------------
; /|\| XIN|-
; | | |
; --|RST XOUT|-
; | |
; | P5.1|-->LED
;
; M. Buccini / A. Dannenberg
; Texas Instruments Inc.
; May 2005
; Built with Code Composer Essentials Version: 1.0
;******************************************************************************
.cdecls C,LIST, "msp430x44x.h"
;-----------------------------------------------------------------------------
.text ; Program Start
;-----------------------------------------------------------------------------
RESET mov.w #0A00h,SP ; Initialize stackpointer
StopWDT mov.w #WDTPW+WDTHOLD,&WDTCTL ; Stop WDT
SetupP1 bis.b #002h,&P5DIR ; P5.1 output
;
Mainloop xor.b #002h,&P5OUT ; Toggle P5.1
Wait mov.w #050000,R15 ; Delay to R15
L1 dec.w R15 ; Decrement R15
jnz L1 ; Delay over?
jmp Mainloop ; Again
;
;------------------------------------------------------------------------------
; Interrupt Vectors
;------------------------------------------------------------------------------
.sect ".reset" ; RESET Vector
.short RESET ;
.end
--------------------------------------------------------------------------------------------------------------------------------------------
step 3: project-> Rebuild all
errors are:
"../lnk_msp430f449.cmd", line 83: error: placement fails for object ".reset",
size 0x4 (page 0). Available ranges:
RESET size: 0x2 unused: 0x2 max hole: 0x2
undefined first referenced
symbol in file
--------- ----------------
main C:\Program Files\Texas Instruments\ccsv4\tools\compiler\msp430\lib\rts430.lib<boot.obj>
error: unresolved symbols remain
error: errors encountered during linking; "basic2.out" not built
>> Compilation failure
gmake: *** [basic2.out] Error 1
gmake: Target `all' not remade because of errors.
Build complete for project basic2
problems:
Severity and Description Path Resource Location Creation Time Id
errors encountered during linking; "basic2.out" not built basic2 line 0 1313122960781 8
placement fails for object ".reset", size 0x4 (page 0). Available ranges: RESET size: 0x2 unused: 0x2 max hole: 0x2 basic2 line 0 1313122960781 6
unresolved symbol main, first referenced in C:\Program basic2 line 0 1313122960781 7
please help me for the above.
best regards ,
neminath.
Hi Neminath,
I can only suggesting taking things one step at a time and starting with an assembly language example and build up the familiarity with CCS and assembly language tools.
I would
- download the examples for your MSP
- create a new workspace with an empty assembly only MSP430 project
- add one of the downloaded assembly examples to the project. Do not create or make a new file simply add one of the existing examples.
- read the below documentation
http://www.ti.com/litv/pdf/slau157s
http://www.ti.com/litv/pdf/slau131e
Best Regards,
Lisa
Hi Lisa,
Thank you...
looking forward for same support and help in future as well..
best regards,
neminath