EmbeddedRelated.com
The 2024 Embedded Online Conference

#pragma vector=TIMERA0_VECTOR - error in ez430 free compiler/assembler

Started by brian in MSP43015 years ago 3 replies

Hello All, A bit of a rookie question: The examples show interrupt vector set up using the #pragma vector=TIMERA0_VECTOR compiler...

Hello All, A bit of a rookie question: The examples show interrupt vector set up using the #pragma vector=TIMERA0_VECTOR compiler pragma. This does not seem to work with the compiler in the environment shipped with the ez450 RF2500 kit. Is there a similar call in this environment ? Am I missing something ? Regards, Brian ------------------------------------


Low-pass filter code? Fir, sinc, etc

Started by gulick_steve in MSP43021 years ago 1 reply

Hello I'm new to the MSP430 and have been searching for example code for implementing low-pass filters, assemebler or C, (assembler...

Hello I'm new to the MSP430 and have been searching for example code for implementing low-pass filters, assemebler or C, (assembler preferred). I need to lowpass filter incomming data and would like to have a noch at the line frequency. Sampling frequency now is 157Hz but could be changed. Any pointers to sources of info would be greatly appreciated. Thanks Steve Gulick


Error[e16]:

Started by wevosie in MSP43018 years ago 3 replies
LED

I took a simple assembler code from TI home page and got the following message (LED flashing with ez430). The C-version of this LED flasher...

I took a simple assembler code from TI home page and got the following message (LED flashing with ez430). The C-version of this LED flasher works correctly. Does anybody know about this? Thanks Error[e16]: Segment RESET (size: 0x2 align: 0x1) is too long for segment definition. At least 0x2 more bytes needed. The problem occurred while processing the segment placement command "-


Watchdog Question

Started by matthewbuza1 in MSP43017 years ago 3 replies

Hey, I'm using a 1612 and i code in assembler. I'm trying to use the watchdog in watchdog mode. I run solar cells for power, and if my gps...

Hey, I'm using a 1612 and i code in assembler. I'm trying to use the watchdog in watchdog mode. I run solar cells for power, and if my gps does not have enough power it will get locked up in my code. I'm trying to set the watchdog for a 1000ms delay using the ACKL(32k). A one second delay will give me enough time to run through a routine. I'm hoping to set the watchdog throughout the ...


rotate in C

Started by hal_lex_1 in MSP43017 years ago 8 replies

hi, the msp430 has assembler commands for rotating registers: RLA(.B)? dst Rotate left arithmetically * * * * RLC(.B)? dst Rotate left...

hi, the msp430 has assembler commands for rotating registers: RLA(.B)? dst Rotate left arithmetically * * * * RLC(.B)? dst Rotate left through C * * * * RRA(.B) dst Rotate right arithmetically 0 * * * RRC(.B) dst Rotate right through C * * * * but how do i access those commands in C ?? (crossworks!) shift is still easy with operators > > and <


IAR Assembler Problem

Started by Nafa3 in MSP43016 years ago 2 replies
IAR

Hi The function below return a 32 bits of strong weight : static __inline int MULSHIFT32(int x, int y) { int zlow; __asm { ...

Hi The function below return a 32 bits of strong weight : static __inline int MULSHIFT32(int x, int y) { int zlow; __asm { smull zlow,y,x,y } return y; } I compiled it on IAR But unfortunately IAR always generates errors Error[Pe020]: identifier "__asm__" is undefined Error[Og005]: Unknown symbol in inline assembly: "zlow" ... Please Help me. Thank y...


inline assembler

Started by ahmeto77 in MSP43021 years ago 15 replies

Hello everybody, I want to ask if we can use inline assembly code for a c compiler. i.e main() { a=b ; asm // inline assembly code...

Hello everybody, I want to ask if we can use inline assembly code for a c compiler. i.e main() { a=b ; asm // inline assembly code here begin mov #3,a mov #5,b mov a,b end ; b = a ; } Thank you all.


MSP430F427 Software Serial Port

Started by kenneth_kearney in MSP43019 years ago 1 reply

I asked the question last week about having an SPI and a UART port on the MSP430F427 and the answer I received was that there was only...

I asked the question last week about having an SPI and a UART port on the MSP430F427 and the answer I received was that there was only 1 hardware function to support either but not both. What I would like to do in that case is to implement a software UART port with a hardware SPI port. I found application note SLAA078A that details how to implement it using assembler but I'm wondering if an


newbie programming msp340

Started by john...@gmail.com in MSP43015 years ago 2 replies
IAR

hi i am interested in programming msp340 in assembler. I know i can buy the EZ430-F2013 from TI which uses IAR kickstart. But if i buy a...

hi i am interested in programming msp340 in assembler. I know i can buy the EZ430-F2013 from TI which uses IAR kickstart. But if i buy a simple dev board from MSP340 dev. board olimex can i also use the IAR IDE with this as well? if so is it easy to 'install' into such the IC on the board? Also the IC included with the EZ430 works from 3.6 V. This IC can be seperated from the debugging ...


[msp 430] IAR C - Error[Og010]:

Started by avram ionut in MSP43020 years ago 4 replies
IAR

does anybody know why i get : Error[Og010]: Inline assembler instruction does not have a unique size: "jmp $FC8C;" when i put in my C the...

does anybody know why i get : Error[Og010]: Inline assembler instruction does not have a unique size: "jmp $FC8C;" when i put in my C the line: asm("jmp $FC8C;") ; // jump to external code thanks, avram --------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage!


Using predefined macros names to assist with inter compiler. Upadate to file.

Started by John Heenan in MSP43019 years ago 1 reply

This information has been added to file "InterMSP430CompilerPortability.h". To assist with code portability between compilers and...

This information has been added to file "InterMSP430CompilerPortability.h". To assist with code portability between compilers and assemblers use can be made of predefined macro names. For example 1. Suppose you use Code Composer Essentials and IAR V3 tool sets 2. Suppose you have both C and assembler 3. Suppose it is important to know if an include file is being used for asse


How do i use SR in IAR C?

Started by mehmet cihangir in MSP43018 years ago 7 replies

Hello, I want to read Carry bit in Status Register. But i didn't do. I wrote Inline assembler code in IAR C codes like this; asm("RLA.B...

Hello, I want to read Carry bit in Status Register. But i didn't do. I wrote Inline assembler code in IAR C codes like this; asm("RLA.B &i2c_data"); and i want to read Carry bit after this code like this; if(SR.C) ......... or if(SR_bits.SR_C) ........ or if(C) ....... I will read Carry bit and change P1.5 pin, for example if Carry bit is set i will set P1.5, if carry bit is...


Has IAR Kickstart code size limitation changed?

Started by John Porubek in MSP43012 years ago 4 replies
IAR

I have a program written in assembler that compiles OK within IAR Kickstart to about 6700 bytes. When I go to download this into a G2553 chip, I...

I have a program written in assembler that compiles OK within IAR Kickstart to about 6700 bytes. When I go to download this into a G2553 chip, I get an error message that says: "User error: Your application is too large. This version of IAR Embedded Workbench has a code limitation of 4096 bytes." In the past, I have downloaded other versions of this program into an F169 chip and an F2274 chip...


Mixing c and asm in IAR for MSP430.

Started by Jose Maria Lorenzo in MSP43020 years ago 2 replies

I need to mix c code and assembler code in a C file with the IAR C Compiler. I need to do something like this (This program is only an...

I need to mix c code and assembler code in a C file with the IAR C Compiler. I need to do something like this (This program is only an example, I know this program is "stupid", but it is only an example of I want to do): unsigned char i; void main(void) { i=10; i=i+10; //ASM CODE IN C FILE push.w &i push.w R12 mov.w #25,&i } But I can not find h


__TIME__ unix time stamp assembly IAR current time at compile

Started by tonyp1454 in MSP43013 years ago 3 replies
IAR

How would I use __TIME__ to set my 48bit counter at time of compiling/flashing the msp430 Keep in mind I'm a assembler programmer. I'm...

How would I use __TIME__ to set my 48bit counter at time of compiling/flashing the msp430 Keep in mind I'm a assembler programmer. I'm reserving 3 registers or maybe 6bytes of RAM for my counter, as 32bit could result in the Y2K38 problem. somethink like this: mov.w (utime> > 16),R15 ; Upper Unix time 16bits mov.w (utime&FFh),R14 ; Lower Unix time 16bits -------------


sfrb on an IAR Application Note and UART init

Started by vidalastudillo in MSP43019 years ago

Hi to everyone in this post! As a novice user on the USART (and without any knowledge on Assembler) I was trying to implement an AN from IAR...

Hi to everyone in this post! As a novice user on the USART (and without any knowledge on Assembler) I was trying to implement an AN from IAR on the Workbench ( http://supp.iar.com/File sPublic/SUPPORT/000369/AppNote430-03.pdf ), which is intented to provide a "circular buffer for the serial interface"


Code Composer verse IAR

Started by quaratie in MSP43016 years ago 8 replies
IAR

Quick question for anyone familiar with CCE I am trying to migrate from IAR to CCE Does Code Composer assembler support the ASEGN Named...

Quick question for anyone familiar with CCE I am trying to migrate from IAR to CCE Does Code Composer assembler support the ASEGN Named relocatable segment directive. I cannot seem to find an equivalent to the IAR ASEGN directive in the documentation. I am converting an IAR to CCE assembly program but an stuck on converting this IAR ASEGN RESET: CODE, 0xFFFE DW Reset ...


Linking error e16 and data-code segments

Started by deldakin in MSP43021 years ago 2 replies

I get the following error when linking my assembler code. Linking... Error[e16]: Segment INTVEC (size: 0x20 align: 0x1) is too long...

I get the following error when linking my assembler code. Linking... Error[e16]: Segment INTVEC (size: 0x20 align: 0x1) is too long for segment definition. At least 0xc more bytes needed. The problem occurred while processing the segment placement command "-Z(CODE)INTVEC=FFE0-FFFF", where at the moment of placement the available memory ranges were "ffe0-fff3,fff6-fffd"



The 2024 Embedded Online Conference