code composer

Started by Glenn in MSP43010 years ago 10 replies

Hi Everyone, Just after anyone's experiences or opinions on Code Composer v3.1 compiler available from TI. How does it compare with products...

Hi Everyone, Just after anyone's experiences or opinions on Code Composer v3.1 compiler available from TI. How does it compare with products like crossworks ( which I havn't used ). Typically I use IAR assembler only for MSP but this next job I would prefer to use C. Any thoughts greatly appreciated Glenn ------------------------------------


CS162 course

Started by Jon Kirwan in MSP43011 years ago
ADC

For anyone interested, I wrote a simple assembler parser c++ class that you can use to assemble MSP430 (not MSP430X) instructions into binary...

For anyone interested, I wrote a simple assembler parser c++ class that you can use to assemble MSP430 (not MSP430X) instructions into binary code (from 16 to 48 bits, depending.) It's easy to use, not difficult to understand, and handles the special cases (such as recognizing @R3+, for example.) This was done mostly to check on the difficulty in asking students to write such a thing. But ...


MSP430F2417 question

Started by eeaj2002 in MSP43010 years ago 2 replies

Hi everyone, I have written a program for msp430f169 and now the code exceeds more than 60k. I like to transfer it into the msp430f2417...

Hi everyone, I have written a program for msp430f169 and now the code exceeds more than 60k. I like to transfer it into the msp430f2417 but I get error. Basically, I am not sure how to fit the program into 2417 since the flash memory address is not continuous. By the way I am using IAR assembler. Any help please. Thank you, John. ------------------------------------


Re: Documents to start with

Started by tintronic in MSP43011 years ago

Your question is everything but trivial, but I think it will greatly depend on what you already know about microcontrollers. In my opinion, all...

Your question is everything but trivial, but I think it will greatly depend on what you already know about microcontrollers. In my opinion, all microcontrollers are more or less the same. If you know how to program one, you can program any one using nothing but its datasheet and an appropiate compiler. If you want to know how a microcontroller works, start by programming it in assembler. If y...


Delay loop

Started by Frederic Beaulieu in MSP43014 years ago 3 replies

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...

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...


Absolute Newby Totally Bamfoozled

Started by weirdjim43 in MSP43013 years ago 8 replies

Please bear with me. I've been doing analog RF, uW, VHF, and audio engineering for 50 years and am looking to broaden my horizons to see if...

Please bear with me. I've been doing analog RF, uW, VHF, and audio engineering for 50 years and am looking to broaden my horizons to see if these little microcontrollers are everything they are cracked up to be. I speak absolutely no C or assembler, a bit of GeeWhiz Basic, and have not a clue where to start. Most of the Applications Notes I find seem to be written in a form of Swahili tha


reading program in IAR

Started by Peter Grey in MSP43014 years ago 2 replies
IAR

I am using IAR Kickstart and using assembler. How do I read what has been previously programmed into a part? It appears that each time I...

I am using IAR Kickstart and using assembler. How do I read what has been previously programmed into a part? It appears that each time I select debug it downloads a program. How do I get to C_Spy without downloading? Thanks Peter


Regarding Compilation errors

Started by bharat in MSP43012 years ago 6 replies
IAR

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...

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

Started by gripen_fighters in MSP4308 years ago 4 replies

Hello 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

Started by Tam in MSP43016 years ago 105 replies

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...

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


Newbie Question

Started by Timothy Faber in MSP43015 years ago 4 replies

I just got pushed into a project with the MSP430 and have no background with the chip...wondering if anyone could point me in the right...

I just got pushed into a project with the MSP430 and have no background with the chip...wondering if anyone could point me in the right direction. I have the Olimex board and have managed to make it through the assembler and CSpy...what I'm a little lost on, though, is when the chip is written to...does CSPY handle that or are there separate steps involved in doing so. I'm at a stage where


Multiplier madness ...................... help

Started by jkw_ee in MSP43010 years ago 29 replies
IAR

I 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

Started by linked82 in MSP43011 years ago 4 replies

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...

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

Started by "Richard (UK)" in MSP43011 years ago
IAR

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...


Options for Project

Started by in MSP43014 years ago 2 replies
IAR

Hello, Could anyone help me? I want to run an assembly file in IAR Workbench, but I don't know which are the correct options. I selected...

Hello, Could anyone help me? I want to run an assembly file in IAR Workbench, but I don't know which are the correct options. I selected the 'assembler only project', but now the Debugger writes ' Unable to execute: driver error.'. Thank you for your answers! Best regards, Daniel M.


assembler math

Started by khalakatevakis in MSP43016 years ago 8 replies
IAR

Hello 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?


WEIRD IAR BEHAVIOUR?

Started by Onestone in MSP4305 years ago
IAR

I am running slac050aq. Or version 5.52.1 of kickstart with 6.5.8.2682 common components. I only use the assembler, and in every previous...

I am running slac050aq. Or version 5.52.1 of kickstart with 6.5.8.2682 common components. I only use the assembler, and in every previous version part of my 'new project' procedure has been to disable stack checking. If I attempt this in the 5.52.1 version it crashes IAR, not critical, just really a pain inthe butt. Al


FreeRTOS interrupts port on IAR workbench

Started by "mario.huizar" in MSP4309 years ago 1 reply
IAR

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...

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?

Started by pollyp100 in MSP43013 years ago 2 replies
IAR

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...

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


OT : Are we maintaining the art and beauty of mathematics ? / Re: PICs - why?! (Was C vs Assembler)

Started by microbit in MSP43015 years ago

Hi John, > I see they have a hex to ASCII benchmark in there. I don't know if > they mean 0x80 -> [0x31,0x32,0x38], or 0x0e -> 0x4e for...

Hi John, > I see they have a hex to ASCII benchmark in there. I don't know if > they mean 0x80 -> [0x31,0x32,0x38], or 0x0e -> 0x4e for printing. If > it's the latter, and you have a processor with a decimal adjust after > add, you can do this in four instructions (5 if your data is unqualified). > > and a,#90h > add a,#90h > da a