IAR generates very long "switch" assembler

Started by htrada2 in MSP43012 years ago 7 replies
IAR

Hi, I=B4m programming in C with IAR and I=B4ve found that some switch=20 statements generate really long assembler code, and they even call...

Hi, I=B4m programming in C with IAR and I=B4ve found that some switch=20 statements generate really long assembler code, and they even call a=20 subrutine called switchkey8. here is an example of the switch statement switch(menu_param[i][COL_TIPO]) to calculate the jump needed for every case, it take more than=20 200bytes of asm code. Has anyone analized this problem?? thanks Hernan ...


Create Assembler List file with mspgcc and eclipse

Started by steven_wetzel in MSP43012 years ago 5 replies

Hi, how can I create an assembler list file with mspgcc and eclipse? Everything I do creates an error. Manipulating the makefile...

Hi, how can I create an assembler list file with mspgcc and eclipse? Everything I do creates an error. Manipulating the makefile is impossible because it's always new created.


F149 assembler question

Started by marquisdehappe in MSP43015 years ago 2 replies

Hi. I'm working with a pre-existing MSP430F149 assembler program. I've added some code of my own in one of the modules and changed the...

Hi. I'm working with a pre-existing MSP430F149 assembler program. I've added some code of my own in one of the modules and changed the existing code to jmp to it at one point. The problem is, my code is out of range of the jmp instruction. I've got the code working for now by jumping to in intermediate label, but feel that's sloppy. In other assemblers I've programmed in, there was


HEX Dump to MSP430 Assembler

Started by qdsirodney in MSP43015 years ago 2 replies

Dose any one know of a tool to convert a hex dump to MSP430 assembler, or will one of the simulators read a HEX dump file? Thanks

Dose any one know of a tool to convert a hex dump to MSP430 assembler, or will one of the simulators read a HEX dump file? Thanks


Assembler Query

Started by souvagya_suva in MSP43014 years ago 3 replies
IAR

Dear I want to use MSP430F425 & I want to write code in Assembly Language .I came to know that there is upto 4k Complier is freely...

Dear I want to use MSP430F425 & I want to write code in Assembly Language .I came to know that there is upto 4k Complier is freely available in IAR System .Please suggest me if i use assembly Language is there any Limitation ? Please let me know the freely availble Complier & assembler which support upto 16K program memory . Thanks Souvagya


assembler debug output, mspgcc

Started by Dan Bloomquist in MSP43011 years ago
GCC

I can't seem to post to mspgcc-users so I'll ask here. I have gotten mspgcc working in eclipse and can debug the c part of my program fine....

I can't seem to post to mspgcc-users so I'll ask here. I have gotten mspgcc working in eclipse and can debug the c part of my program fine. But I can't figure how to set the flags so the assembly part shows up. I have: msp430-gcc -mmcu=msp430x2013 -v -x assembler-with-cpp -IC:/cpp/mspgcc/msp430/include -o "USI_I2CSlave.o" "../USI_I2CSlave.s" -g -O0 -D_GNU_ASSEMBLER_ -nostdlib -Wa,-...


Re: RESET Vector

Started by Paul Curtis in MSP43014 years ago

END is an assembler directive that tells the assembler not to translate any more code--it does NOT assemble to any binary code. The easiest...

END is an assembler directive that tells the assembler not to translate any more code--it does NOT assemble to any binary code. The easiest way to reset the processor is to write an invalid key to the watchdog control register. One of the easiest ways to busy-idle the processor is a jump to iteself: L0: JMP L0 -- Paul Curtis, Rowley Associates Ltd http


IAR Assembler & top bit set strings

Started by singingwing in MSP43012 years ago 1 reply

I have decided to encode a large table of menu strings held in flash by setting the top bit of the last character of each string. I was hoping...

I have decided to encode a large table of menu strings held in flash by setting the top bit of the last character of each string. I was hoping to create macros for the assembler used something like this:- MENUSTR 'Menu Item' MENUSTR 'Another Menu Item' NEWMENU So far I haven't figured out a way to do this using IAR directives except by calling an external script via the...


Parallel port Programming adaptor MSP-PRG430C software

Started by oklose in MSP43010 years ago
IAR

Hello, I have to renew an old design, based on the EPROM Device MSP430E325FZ. I know, very very old !!! I have converted the TI Assembler code...

Hello, I have to renew an old design, based on the EPROM Device MSP430E325FZ. I know, very very old !!! I have converted the TI Assembler code into IAR Assembler. Now I want to burn some code motification into the MSP430E325FZ. It is a long time ago that I have worked with these old members of the MSP430 family. But i found my old Parallel port Programming adaptor MSP-PRG430C. But not the s...


Re: elliptic curve assembler code

Started by Paul Curtis in MSP43013 years ago

Hi, > I am searching elliptic curve routines implementation (for > example , elliptic curve point multiplication) in MSP430 > assembler...

Hi, > I am searching elliptic curve routines implementation (for > example , elliptic curve point multiplication) in MSP430 > assembler code Where can I find it ? I don't think you'll have much luck. For as start, is this point multiplication over GF(2) or GF(p)? Sort of makes a difference. Are you using fixed curves and fixed lengths or do you need arbitrary curves and leng


Help needed getting-started with msp430-gcc as an assembler/linker

Started by David Feldman in MSP43010 years ago 2 replies
GCC

I'm struggling to get started with msp430-gcc (on a Ubuntu 9.04 machine) as a cross-assembler/linker with target of msp430. I do not intend to use...

I'm struggling to get started with msp430-gcc (on a Ubuntu 9.04 machine) as a cross-assembler/linker with target of msp430. I do not intend to use an IDE (no eclipse can be used as access to my development system is solely via ssh/telnet), so all is happening at command line. Source code is MSP430 assembly language (my target is MSP430F1232) and expected output from assembly/link is intel hex form...


View Variables in Watch Window with new IAR Assembler

Started by Bill in MSP43015 years ago 2 replies
IAR

Hi, I find that I can not view my variables in the watch window as I did in an older version of the IAR assembler. I have created my...

Hi, I find that I can not view my variables in the watch window as I did in an older version of the IAR assembler. I have created my variables as globals in an h file as follows #define name_ (hex address) sfrw name = name_ I dont get any errors when compiling and I see the memory locations change correctly using the memory window, but the watch window says


Calling Assembly Code Functions from a C Program in IAR

Started by Nafa3 in MSP43011 years ago 2 replies
IAR

Hi all This C function is calling an assembler function get_cpsr unsigned long get_cpsr(void); static inline unsigned...

Hi all This C function is calling an assembler function get_cpsr unsigned long get_cpsr(void); static inline unsigned asm_get_cpsr(void) { unsigned long retval; retval=get_cpsr(); return retval; } The assembler function is in separate .S file it looks as follows PUBLIC get_cpsr RSEG CODE:CODE:NOROOT(2) get_cpsr: mrs r0, cpsr /* get CPSR */ bx lr /* return to...


Help for NEW

Started by Emil Smike in MSP43015 years ago 3 replies
IAR

Hello to everyone! I am NEW, my query is not so interesting, like e.g. the dispute Al with Kris, unfortunately. IAR EWBench (SLAC034c)...

Hello to everyone! I am NEW, my query is not so interesting, like e.g. the dispute Al with Kris, unfortunately. IAR EWBench (SLAC034c) was my first. To better combination of assembler and C, I loaded QVArch430Tools_4k. What can you advise me? Do you know some good HELP? Function + is not able work with ?long?; I did it myself. What about ?overloaded function?, are they here


Re: TimerB Interrupts

Started by ones...@bigpond.net.au in MSP43011 years ago

In assembler the neatest, easiest way to do this is :- ADD &TBIV,PC RETI JMP ...

In assembler the neatest, easiest way to do this is :- ADD &TBIV,PC RETI JMP TIMER1_ISR JMP TIMER2_ISR ETC In C this is usually done with a switch statement Al ---- JeanLee wrote: > Thank you for your answers, > > I only have one ISR in which I distinguish between the different


License for IAR

Started by Peter Grey in MSP4306 years ago 1 reply
IAR

Hi I have downloaded the latest software from TI for the FET. It says I need a license key. What gives? I am using assembler only and this has...

Hi I have downloaded the latest software from TI for the FET. It says I need a license key. What gives? I am using assembler only and this has been completely free in the past. Do I need to do anything special or should I use an older version? Thanks Peter [Non-text portions of this message have been removed] ------------------------------------


How to get a function address in c++

Started by crandel_z in MSP4309 years ago 5 replies

Hi, I new with MSP430. I want to get the address of one of my program function. In assembler I can do: MOV #MyFunctionName,R4 in c++...

Hi, I new with MSP430. I want to get the address of one of my program function. In assembler I can do: MOV #MyFunctionName,R4 in c++ ? thx Crandel ------------------------------------


RE:Solution] IAR Unable to download release version via jtag

Started by "bla...@yahoo.com [msp430]" in MSP4305 years ago 2 replies
IAR

Speaking of IAR, I run their MSP430 assembler. But it is an older version that does not support the 20 bit addresses. Any suggestions were I can...

Speaking of IAR, I run their MSP430 assembler. But it is an older version that does not support the 20 bit addresses. Any suggestions were I can get an update on this?


Assembler Tips Part 2

Started by Nico Bollen in MSP43013 years ago 2 replies

Hi, Thanks to your answers I was able to split my files in to some smaller files and connect it all. Sow thank you very much for that but now...

Hi, Thanks to your answers I was able to split my files in to some smaller files and connect it all. Sow thank you very much for that but now I got another question: Is there a way to do something like this? cmp.b Var1,Var2 jne PC+4 .... .... (if not equal jump to this place) Thanks,


R3 as a destination register

Started by Jonathan Kirwan in MSP43015 years ago 8 replies
IAR

I'd like to use R3 as the destination in a two-operand instruction, in order to get the side effects on the source without using a scratch...

I'd like to use R3 as the destination in a two-operand instruction, in order to get the side effects on the source without using a scratch register in the process. For example, something like: mov @(SP)+, R3 The IAR assembler, without surprise, complains here. However, I'd still like to do it. What I'd like to know is... does anyone know exactly what actually takes place in the CPU,