Forums Search for: Compiler
IAR: volatile const int x @ 0x1000 = 123 ;
inDear all! Once more a problem with IAR's C-compiler. (V3.40A) I'm trying to place a variable in the information (flash) memory. Sounds very...
Dear all!
Once more a problem with IAR's C-compiler. (V3.40A)
I'm trying to place a variable in the information (flash) memory.
Sounds very simple but turns out to be complicated like hell.
My first idea was something like this:
volatile const int x @ "INFO" = 123;
I even found something very similar in the compiler reference page 35:
---------------------------
Basic floating point execution times, using compiler libraries
inThe IAR KickStart C compiler does NOT support floating point. I assume this is managed by simply not including the routines in the...
The IAR KickStart C compiler does NOT support floating point. I assume this is managed by simply not including the routines in the libraries. In thinking about the DIV routine recently discussed, I realized that it made me curious just how quickly the floating point packages tend to work on their basic operations, such as multiplication and division and addition and subtraction. But since
BIG problems with math.h
inhello I need to make such a move: 2 ^ 5, so, I write pow (2,5) and I get this error: "[Linker error] undefined reference to `pow' ". why? I...
hello I need to make such a move: 2 ^ 5, so, I write pow (2,5) and I get this error: "[Linker error] undefined reference to `pow' ". why? I tried other compilers and all was ok, but on mspgcc I dont work. All paths are ok, ie when i write pow (2), then compiler says: "too few arguments to function `pow' ", so I can say then, that compiler had found math.h, coz he know w
How to use IAR compiler to program a memory image
inAnders, We have a slightly unusual problem. This is about an MSP430F148 using IAR C tools. We put a bootloader in our product, then...
Anders, We have a slightly unusual problem. This is about an MSP430F148 using IAR C tools. We put a bootloader in our product, then download an application image into it. The download takes a long time (20 minutes). The bootloader and application are both C projects built on your compiler. The download process builds various other structures and pointers in program space, based on the d...
Delphi Compiler for MSP430 and more.
inAdnan Kurt Koc University Physics Dept. Scie160 Rumeli Feneri Yolu Sariyer Istanbul Ph: +90 212 338 1623 Fx: +90 212 338...
Adnan Kurt Koc University Physics Dept. Scie160 Rumeli Feneri Yolu Sariyer Istanbul Ph: +90 212 338 1623 Fx: +90 212 338 1559 akurt@akur... >>> msp430@msp4... 01.12.2003 14:30:53 >>> > POLL Question : How many would be interested in a low cost (command line) > Delphi compiler for MSP430 ? I am a novice MSP430 programmer. In order to speed things up
Quick question: Compiler Error
inHi, I am using IAR Kickstart (free) compiler, and I am getting this error when I put in a certain chunk of code: Error[e16]: Segment CSTACK...
Hi, I am using IAR Kickstart (free) compiler, and I am getting this error when I put in a certain chunk of code: Error[e16]: Segment CSTACK (size: 0x50 align: 0x1) is too long for segment definition. At least 0x19 more bytes needed. The problem occurred while processing the segment placement command "-Z(DATA)CSTACK+_STACK_SIZE#", where at the moment of placement the available m
IAR FET Problem -- works in v2, doesn't in v3
inHi All. I'm kinda stumped on this one -- I have both IAR MSP430 EW v2.3 (compiler v1.26A) and v3.2 (compiler v2.21B). Previously, I was able...
Hi All. I'm kinda stumped on this one -- I have both IAR MSP430 EW v2.3 (compiler v1.26A) and v3.2 (compiler v2.21B). Previously, I was able to run C-SPY with the FET in both versions of EW. Now, I can run it in v2 but not in v3 -- I get "FATAL ERROR Failed to initialize device. Session aborted!" and "A fatal error has occured. The debugger will terminate." windo
Compiler crashes on initialized variables with -fdata-sections
inWhen I use the -fdata-sections option, the compiler crashes whenever it sees a global initialized variable. Any ideas on how to fix this? $...
When I use the -fdata-sections option, the compiler crashes whenever it sees a global initialized variable. Any ideas on how to fix this? $ cat foo.c static unsigned u = 1; unsigned foo(void) { return u; } $ msp430-gcc -mmcu=msp430x4250 -g -Wall -W -Wpointer-arith -Wcast-align -Wshadow -Wundef -Wwrite-strings -O1 -fomit-frame-pointer -fshort-double -DENABLE_DIAG_PRINTF=...
MSPGCC to compile and IAR to link and other stuff
inThis is my first post in this community. i want to do my Masters project using the MSP430 development tool.i am at a very preliminary stage...
This is my first post in this community. i want to do my Masters project using the MSP430 development tool.i am at a very preliminary stage now.i want to use the mspgcc compiler to compile my code and then use those obj files in the IAR IDE to link them and load in to the MSP430. i want to do this coz , i want to compile code which is more than 4kb. but my IAR compiler has limited 4kb ...
IAR compiler and C++ code
inHello I am running a C++ code in the IAR Embedded Workbench and i am having a problem with these lines : float *temp1= new...
Hello I am running a C++ code in the IAR Embedded Workbench and i am having a problem with these lines : float *temp1= new float[N]; float *temp2= new float[N]; .............. delete[] temp1; delete[] temp2; Are these declaration supported with this compiler or is there any other way of doing this? Moreover as i cannot use printf statement in IAR, i ha
Comments on jump tables and compiler portability file update with release of CCE
inCCE is now out of beta and at release version 1.0. I have re-examined and retested code example 6.5 in section 6.8.2.1 of "MSP430...
CCE is now out of beta and at release version 1.0. I have re-examined and retested code example 6.5 in section 6.8.2.1 of "MSP430 Optimizing C/C++ Compiler User's Guide (SLAU132)" to see if works as is or still needs to be modified to produce proper jump table code as occurred in the beta edition. Other than with minor irrelevant editing, the code example in the user's guide pr
1.x to 3.x IAR compiler migration problem (compile error)
inI recently upgraded my IAR EW430 compiler to the latest version from a very old 1.26 version. I am getting this compile error on a line of...
I recently upgraded my IAR EW430 compiler to the latest version from a very old 1.26 version. I am getting this compile error on a line of code that did not have an error before. The error is: Error[Pe513]: a value of type "void *" cannot be assigned to an entity of type "void (*)(void)" and the line of code is: task[j].detail.fun_ptr = (void *)in_ptr; I would appreciate any...
New _SWAP_BYTES intrinsic function in IAR V1.26B
in
The readme file for the new version 1.26B of the IAR compiler talks about a
new intrinsic function _SWAP_BYTES.
New features
A new...
The readme file for the new version 1.26B of the IAR compiler talks about a
new intrinsic function _SWAP_BYTES.
New features
A new intrinsic function _SWAP_BYTES has been implemented in the compiler.
This function executes the SWPB instruction.
unsigned short _SWAP_BYTES(unsigned short dst);
I thought that I would try it out. Result = disappointment.
The
IAR Error
inHello Everyone, I am seeing this error now with version 5.51.6 of the IAR EW-430 Compiler: Tool Internal Error: Internal Error:...
Hello Everyone, I am seeing this error now with version 5.51.6 of the IAR EW-430 Compiler: Tool Internal Error: Internal Error: [CoreUtil/General]: Int divide by zero (0xc0000094) at 009A2C4C Internal Error: [CoreUtil/General]: Int divide by zero (0xc0000094) at 009A2C4C Error while running C/C++ Compiler Anyone know what the cause may be? Thanks, John W. -------------------...
BASIC Compiler for MSP430
inI heard rumors that TI (or someone) was developing this. Anyone know of it or of one? thanks.
I heard rumors that TI (or someone) was developing this. Anyone know of it or of one? thanks.
Anyone did decimal arithmatic on MSP430 in runtime??
inHi there, I want to know if anyone converted hex data into decimal in C compiler ...If yes..how did you manage ? Thanks in...
Hi there, I want to know if anyone converted hex data into decimal in C compiler ...If yes..how did you manage ? Thanks in advance..
IAR or CrossWork
inWhich C compiler would you recomend? I've narrowed it down to these two as they are the ones which support doubles and long longs. This...
Which C compiler would you recomend? I've narrowed it down to these two as they are the ones which support doubles and long longs. This question is also intended to get me through the SPAM filter screen quicker later on. Thanks
C or EC++ should I use?
inHi, We have started a new project which we will use IAR C/EC++ compiler for MSP430. I wonder which langugue is best to use, C or EC++? If I...
Hi, We have started a new project which we will use IAR C/EC++ compiler for MSP430. I wonder which langugue is best to use, C or EC++? If I choice EC++, how is the code size and the performance compare to C? Could you please give me some comments/advices? Thanks! Best Regards, BigNingbo
Help with installing mspgcc-20120406-p20120911 to W7
inWhat am I doing wrong or not doing at all? I want to use GCC free compiler for the MSP-430 family and especially for the TI Launchpad...
What am I doing wrong or not doing at all? I want to use GCC free compiler for the MSP-430 family and especially for the TI Launchpad MSP430F5529. I have never used GCC before. Also, where is a list of c commands for this processor? Thanks for any and all help. Joe
Help EEPROM MSP430F169
inHello, my name is Bruce from PERU. Somebody will have code in C (Compiler IAR MSP430) to communicate with a serial EEPROM (anyone) micro...
Hello, my name is Bruce from PERU. Somebody will have code in C (Compiler IAR MSP430) to communicate with a serial EEPROM (anyone) micro MSP430F169. HELPPPPPPPPPPPPPPpppppppppppppp Thanks