EmbeddedRelated.com

Re: What happens with unused interrupts?

Started by rakam0 in MSP43018 years ago 1 reply

Hi, I recently started in this group. I have a problem with compiler IAR Embedded. I need to use the RESET INTERRUPT, that set in the...

Hi, I recently started in this group. I have a problem with compiler IAR Embedded. I need to use the RESET INTERRUPT, that set in the wathdog control register, and in my code wrote(for use the interrupt): #pragma vector= VECTOR_RESET __interrupt void interrupcion_reset(void) { //any code } if I do this it will to work, but the compiler mark the next error: Error[e16]: Segm...


Hex File generation

Started by in MSP43021 years ago 6 replies

Hi! since i'm quite new to the msp430 i have some questions: What kind of hex format does the msp430f149 use for programming the device, and...

Hi! since i'm quite new to the msp430 i have some questions: What kind of hex format does the msp430f149 use for programming the device, and how do i generate this hexfile with a) IAR compiler and b) AQ430 Compiler (both demo versions) what i would like to do is to generate a hex file at the computer and then send it to the msp430 via Usart to a special memory segment form where it can be


Creating a bootloader segment using IAR compiler.

Started by jkw_ee in MSP43018 years ago 5 replies

I am writting a bootloader/monitor for a project but am hung up on what I think is just some confusion with the compiler. I have no problem...

I am writting a bootloader/monitor for a project but am hung up on what I think is just some confusion with the compiler. I have no problem allocating a segment for the code in the xlinker. My approach was to write the bootloader as a function and assign it to the memory segment using the #pragma directive. The code is written so that the segment is not overwritten when updating the f


Any opinions/experiences on ImageCraft compiler?

Started by Al Dietrich in MSP43019 years ago 19 replies

Hello, My company will soon purchase a MSP430 compiler. One of the lowest cost MSP430 compilers is ImageCraft. How does it compare to...

Hello, My company will soon purchase a MSP430 compiler. One of the lowest cost MSP430 compilers is ImageCraft. How does it compare to Crossworks and IAR? Crossworks seems to be one of the favorite compilers in the discussion group. Al


can we use IAR compiler in INTEL ATOM processor notepad

Started by arunangshu Chandra in MSP43014 years ago 1 reply

dear All, =A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 can we use IAR compiler in INTEL ATOM proces= sor notepad =A0 arunangshu chandra The...

dear All, =A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 can we use IAR compiler in INTEL ATOM proces= sor notepad =A0 arunangshu chandra The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. = http://in.yahoo.com/ ------------------------------------


: IAR string conversion

Started by Paulo Ricardo in MSP43019 years ago 2 replies

Hi, I'm looking for functions like "itoa()" and "atoi()" in IAR compiler docs, but I have not found nothing. Someone know if these...

Hi, I'm looking for functions like "itoa()" and "atoi()" in IAR compiler docs, but I have not found nothing. Someone know if these functions are native to IAR compiler or I need to do it myself? TIA, -Paulo


Debugger Bug?

Started by Vito Russo in MSP43019 years ago 7 replies

Hallo! This is a question for folks used to IAR compiler. Something a bit strange is happening with my compiler. I'm using IAR Embedded...

Hallo! This is a question for folks used to IAR compiler. Something a bit strange is happening with my compiler. I'm using IAR Embedded Workbench V2.10A for EW430. My program calls some assembly routine during the initialization of the microcontroller. After a branch instruction, the "call stack" window starts to show nonsense information. In place of the root of the stack I see


Math Library Does Not Work

Started by suprajr in MSP43021 years ago 6 replies

Hey all- I'm using the IAR Embedded Workbench C compiler and my code includes the #include "math.h" line of code, and i try to use the...

Hey all- I'm using the IAR Embedded Workbench C compiler and my code includes the #include "math.h" line of code, and i try to use the float() function. But the compiler gives me an error saying that float() is an unrecognized external function that cannot be found, etc. etc. Anyone have a solution to this? I know in GCC i always typed the -lm to get the linker to includ


data alignment question

Started by w.se...@... in MSP43018 years ago 4 replies

I am using F133 and the IAR KS. I am trying to determine the size of a data structure at runtime: typedef struct _AIRFLOW_COEFFS { INT8U...

I am using F133 and the IAR KS. I am trying to determine the size of a data structure at runtime: typedef struct _AIRFLOW_COEFFS { INT8U segment; INT16U min, max; float offset, gain; }_airflow_coeffs; My addition tells me that this uses 13 bytes, but sizeof returns 14 bytes. It appears the compiler is word aligning the data. Is there a way to tell the compiler to align on byt


IAR: How to divide/modulo efficiently (DivModNNX)

Started by Dirk Reymann in MSP43015 years ago 3 replies

Dear all, anyone got a clue how to make the compiler use both return values from its DivModNNX calls? Right now code like "digit = val%10;...

Dear all, anyone got a clue how to make the compiler use both return values from its DivModNNX calls? Right now code like "digit = val%10; val/=10" makes the compiler call the division function twice, each time throwing one of the results away. How do I get it to call the function only once and use both results straight? Thanks for your ideas Dirk PS: I already got a workaround "va...


Re: BIC instruction in Code Composer Studio (CCS4)

Started by Paul Curtis in MSP43012 years ago

There's no difference between BIC.B and AND.B in this case (certainly as seen by the C compiler). Try using something that could use the...

There's no difference between BIC.B and AND.B in this case (certainly as seen by the C compiler). Try using something that could use the constant generator, e.g. x &= ~4; I suspect you may not get AND.B out of the C compiler then, it might use BIC.B because 4 can be encoded in a single instruction word using the constant generator, whereas 0xfb can't be and will require one extension word...


IAR Compiler Bug?

Started by Anonymous in MSP43021 years ago 2 replies

Hi, after a project has grown the software crashes on the MSP430 when i use no optimisation instead of optimised size. I also found out that...

Hi, after a project has grown the software crashes on the MSP430 when i use no optimisation instead of optimised size. I also found out that the optimised software crashes when i uncomment a switch statement with only a simple char variable, define constants and breaks (and with the default break). It seems that the IAR compiler has a bug or is stability a general problem if the code (witho


Re: BitFields

Started by Paul Curtis in MSP43019 years ago 6 replies

Hi, > I am a 8051-core programmer,recently shifted to MSP430. > Kindly tell me how to use bit fields in MSP430... as I have a > habit of...

Hi, > I am a 8051-core programmer,recently shifted to MSP430. > Kindly tell me how to use bit fields in MSP430... as I have a > habit of frequent bit usage.(If possible give some code examples) No MSP430 compiler that I know of supports the "bit" type as you'd find in an 8051 compiler. (I might be wrong here, I surveyed MSP430 compilers quite a while ago and haven't


V3.30A of IAR Embedded Workbench has been released

Started by Anders Lindgren in MSP43019 years ago 2 replies

Hi! As some of you probably already have noticed, we have released V3.30A of IAR Embedded Workbench for MSP430. This is a new major release...

Hi! As some of you probably already have noticed, we have released V3.30A of IAR Embedded Workbench for MSP430. This is a new major release and as such it contains a lot of new and enhanced features. The main ones are, in my opinion: * The compiler now produces about 3 to 4 percent better code than the last compiler, however your mileage may vary. Among a lot of things, the Cross Call


c++ how to put a const variable into flash memory in a class

Started by htrada2 in MSP43016 years ago 1 reply

Hi, I=B4ve been using msp430 for several years and for some months i=B4ve been experimenting in the use of c++ objects to see how the compiler...

Hi, I=B4ve been using msp430 for several years and for some months i=B4ve been experimenting in the use of c++ objects to see how the compiler deals with them. My question is: I have a class with some const variables inside which are initialized by the constructor (for example the size of a buffer). Is it posible to force the compiler to locate this variable in flash memory instead of ram?....


Re: Disable/Enable interrupts using inline assebmly?

Started by pand...@gmail.com in MSP43015 years ago

Is it possible to enable/disable interrupts in the code in this manner > inline while using the assembly syntax directly? > > #define...

Is it possible to enable/disable interrupts in the code in this manner > inline while using the assembly syntax directly? > > #define DISABLE_INTERRUPTS _asm("DINT") > #define ENABLE_INTERRUPTS _asm("EINT") > > Thanks > > Hi all, I'm working using gcc compiler and i'm using msp430f2274 and cc2480 for my application. Previously i worked with CCEv3 compiler and i have tested. Just i did Tx/R


Re: how to refer to cycles counter in a program??.

Started by Paul Curtis in MSP43021 years ago 2 replies

> I have a question. If there comes a situation in which i have to > refer to the Cycles Counter of the microcontroller, how would i do >...

> I have a question. If there comes a situation in which i have to > refer to the Cycles Counter of the microcontroller, how would i do > that..??. Is it #CYCLES. ( i have seen in one of macro application > program). But, the C compiler gives error on it. Is it the case that > #CYCLES is allowed in the mcros, but are not allowed in C > Compiler.?.. Looking for reply,


IAR C compiler in-line assemble support

Started by bcbourdon in MSP43021 years ago 79 replies

I'm new to the MSP430 and related tools, just started looking at the IAR C compiler... It appears that this complier does not support in-line...

I'm new to the MSP430 and related tools, just started looking at the IAR C compiler... It appears that this complier does not support in-line assembly (no "_ASM" directive), so asm code cannot be in the C-source file. This is unfortunate... Of course the ability to call an assembly language routine from C should provide the needed funtionality, I'll just miss the ability to


SHIFT OPERATION IN 'C' PROGRAM COMPILED BY IAR COMPILER

Started by Bharat Kumar.V in MSP43019 years ago 11 replies

Hi, I am using shift in my C program (>>24, >>16) My program is giving me warning saying that "shift count is too large". Does this IAR...

Hi, I am using shift in my C program (>>24, >>16) My program is giving me warning saying that "shift count is too large". Does this IAR compiler support that shifting? Please give some suggestion on this. Regards, B


POLL : Delphi Compiler for MSP430

Started by microbit in MSP43020 years ago 9 replies

Hi All, I have an associate who is keen on producing a Delphi compiler for MSP430. I don't know how that would really work, as opposed to...

Hi All, I have an associate who is keen on producing a Delphi compiler for MSP430. I don't know how that would really work, as opposed to Pascal, but he reckons that Delphi would be much better to work on embedded than "C" because you can't stuff up pointers etc. (Disclaimer : I'm just quoting here, I don't have a clue) POLL Question : How many would be interested in a low cost (