Forums Search for: Assembler
HEX Dump to MSP430 Assembler
inDose 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
Help needed getting-started with msp430-gcc as an assembler/linker
inI'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...
Calling Assembly Code Functions from a C Program in IAR
inHi 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...
License for IAR
inHi 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++
inHi, 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
inSpeaking 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?
Delay loop
inHi all, I try to find a way to replace my C delay loop function (in attachement at the end of this email) since it seems not reliable (and...
Hi all, I try to find a way to replace my C delay loop function (in attachement at the end of this email) since it seems not reliable (and accepted) between different compilers. I need something to wait a fixed and determined number of SMCLK clock cycles (in my case 4MHz) under every optimizators. I'm not very familiar with assembler and I wonder if it possible to be sure that it will no...
Regarding Compilation errors
inHi, I am compiling the MSP430 assembly code. I am using IAR workbench(IAR Assembler for MSP430 V3.30A/W32 (3.30.1.9)) I am using the...
Hi, I am compiling the MSP430 assembly code. I am using IAR workbench(IAR Assembler for MSP430 V3.30A/W32 (3.30.1.9)) I am using the msp430x112 controller. When i try to compile the following code ;----------------------------------------------------------------------------- ;word variables start here ;----------------------------------------------------------------------------- .bss...
tool for generating call graph from assembler
inHello all, Do you know a tool which parses the asm source code and generates a call graph? ------------------------------------
Hello all, Do you know a tool which parses the asm source code and generates a call graph? ------------------------------------
Assembler Vs C-Compiler
inI have noticed that a number of people have asked questions about 'which compiler' to go for. First thing I will say is this. Do you really...
I have noticed that a number of people have asked questions about 'which compiler' to go for. First thing I will say is this. Do you really need a C-compiler? What's wrong with Assembly? IMO all that a C-compiler does is to act as a 'vale' obtructing the programmers' view hence 'better' understanding of the microcontroller they are developing code for (programming). It also forces peo
Multiplier madness ...................... help
inI have started digging into how the multiplies are implemented in my software. MSP4301611 IAR 3.42A (should update soon) I am...
I have started digging into how the multiplies are implemented in my software. MSP4301611 IAR 3.42A (should update soon) I am multiplying two signed integers (16bit signed) When I look at the assembler listing there is some strange stuff going on that I just can't figure out ......... my results are off as well. signed long ti; signed int ar, ai; ti = ai * ar; Simple e...
Freertos running on MSP430X
inHi all, Has anybody ever tried to run a port of FreeRtos (IAR, CCE, Crossworks, GCC) into a MSP430X CPU? If yes, does change the...
Hi all, Has anybody ever tried to run a port of FreeRtos (IAR, CCE, Crossworks, GCC) into a MSP430X CPU? If yes, does change the assembler code part? I Think it not should, given that is code compatible with old CPUs (at least if 0xFFFF treshold is not surpassed). Thanks Best Regards. ------------------------------------
Re: AES source code for MSP430
OK, let's get this straight. You don't know assembler. You don't know much about encryption ... and yet you SPECIFY your requirement as...
OK, let's get this straight. You don't know assembler. You don't know much about encryption ... and yet you SPECIFY your requirement as being AES in your original post. You don't know about block or stream ciphers and yet you specify that each packet should be independently encryrpted. In view of the above I suspect that maybe you need to learn some of this stuff before you start...
assembler math
inHello I'm using MSP430F1101 and my project requires some math equations, including 32 bit multiplication and division. When i use IAR C, the...
Hello I'm using MSP430F1101 and my project requires some math equations, including 32 bit multiplication and division. When i use IAR C, the micro runs quickly out of memory. Has anybody done 32 bit math in assembly?
FreeRTOS interrupts port on IAR workbench
inHello all, I am using the FreeRTOS on a MSP430FG439 and I want to use the Uart0 but because the Free RTOS on the file portext.s43 redefine the...
Hello all, I am using the FreeRTOS on a MSP430FG439 and I want to use the Uart0 but because the Free RTOS on the file portext.s43 redefine the INTVEC I am having problems... The FreeRTOS needs the timer0 to define the "tick" of the OS. And it defines it in assembler like this: ASEG ORG 0xFFE0 + TIMERA0_VECTOR _vTickISR_: DC16 vTickISR I was having the following error: E...
beginner question: how can I access the number of clock ticks?
inHi, I am writing some C-SPY macros which use __orderInterrupts. To schedule them properly I need to know how many ticks I am into the program...
Hi, I am writing some C-SPY macros which use __orderInterrupts. To schedule them properly I need to know how many ticks I am into the program (ignoring overflow for now). Is there a way to get this information programmatically, either in C or assembler, *without* setting up a timer? I'm using IAR's embedded workbench, and then I open the CPU registers window during the debugging I see regi
Problem loading my program into a MSP430FR5729
inI have not worked with this chip before. I am using assembler and IAR Version 6.52. I have a USB-FET and a target board. In the past I...
I have not worked with this chip before. I am using assembler and IAR Version 6.52. I have a USB-FET and a target board. In the past I have programmed the FR5728 without any problems. It does not recognise the device. I select this device in the options tab. I also select the MSP430F5XX heading as there is none for the FR57XX. There is only the FR59XX but this is for C only. Has anyone expe...
Fast transcendental library?
inHi, My application needs a LOT of complex arithmetic and ultra-low power; I need a library of the usual ln(), exp(), sine(), cos(), tan()...
Hi, My application needs a LOT of complex arithmetic and ultra-low power; I need a library of the usual ln(), exp(), sine(), cos(), tan() atan () to build on. At this stage I don't really care if it's for assembler, C, Java, Pascal, etc, as the maths is what's going to take up all the MCU's time anyway. My first preference would be for a 16 bit library, but that would need to be highly
Where can I find Hardware Multiplier C code examples
inI'm now studying how to use the Hardware Multipliers in MSP430. I have only the Family user's Guide and one Application note, which are both...
I'm now studying how to use the Hardware Multipliers in MSP430. I have only the Family user's Guide and one Application note, which are both written in Assmbler, though authoritative. But I'm doing my project in C. Thus assembler is to me understandable yet not hands-on. Is there any reliable source code example for the Multipliers in C? as for other peripherals, there are always C codes availabl...
CrossWorks ASM, defining sections?
inHi all, I want to define variables in Crossworks assembler using the DS directive. But always I get an error. I did several attempts to define...
Hi all, I want to define variables in Crossworks assembler using the DS directive. But always I get an error. I did several attempts to define the sections, but none works as expected. What am i doing wrong? Please have a look at my attempts... /////////////////////////////////////////////////////////////// // this compiles & links, but i get amessage box when // trying to upload: &