EmbeddedRelated.com
Memfault Beyond the Launch

question on sscanf

Started by Miles Gazic in MSP43020 years ago 7 replies

I am using CrossWorks, and can't get sscanf to work. It returns a value that indicates that the parameters were scanned, but the values it...

I am using CrossWorks, and can't get sscanf to work. It returns a value that indicates that the parameters were scanned, but the values it puts in them appear random. For any given string it comes up with the same values, but they don't appear to be related to the string I've seen this happen before and just used strtol instead, as a work around. Doesn't look like there is an atof or strtod...


FFT Designer

Started by Nick Price in MSP43012 years ago 2 replies
IAR

Hi group. Anyone tried out the FFT Designer , if generates code for the MSP430 5xx microcontroller...

Hi group. Anyone tried out the FFT Designer , if generates code for the MSP430 5xx microcontroller . http://www.fftdesigner.com/download.php If generates code for the IAR complier, where I'm using Crossworks. Is it worth a play with? ------------------------------------


uninitialised variable

Started by Kamil in MSP43018 years ago 2 replies

Is it possible to have uninitialsed variable which after reset was not covered by 0? I see that uninicialised data is set to 0. My programm...

Is it possible to have uninitialsed variable which after reset was not covered by 0? I see that uninicialised data is set to 0. My programm from time to time must reset, but i want to have unchanged some variables after reset and i mustn't write those into flash. Is it possible to declare e.g. short int to have that possibility in crossworks? if yes how to do that? in MSP manual there i...


Defining code location in memory

Started by "faro.salvatore" in MSP43014 years ago 12 replies

First of all thanks to anyone that can shed some light to my questions... I'm writing a bootloader and have a few doubts on how to proceed in...

First of all thanks to anyone that can shed some light to my questions... I'm writing a bootloader and have a few doubts on how to proceed in some simple things: 1) What is the best way to put a jump from the bootloader to the main application using c code? Or should I embed asm code with a jmp instruction to do this?? 2) How do I instruct my compiler (Rowley Crossworks) to compile my cod...


Re: printf using terminal I/O in C-SPY FET debugger

Started by Jaromir Subcik in MSP43019 years ago 26 replies

----- Paul Curtis wrote ----- > > The trick is not to impose a burden on the micro by starting/stopping it > all the time (intrusion). Some...

----- Paul Curtis wrote ----- > > The trick is not to impose a burden on the micro by starting/stopping it > all the time (intrusion). Some vendors do this with a breakpoint and > stealing a breakpoint from a processor with only two breakpoints nukes > the usefulness somewhat. CrossWorks doesn't require a breakpoint and > nor is it intrusive. We don't publish how we ach


How to define empty const in self defined flash segment?

Started by jean_randhah in MSP43020 years ago 12 replies

Hello everyone! Somewhere in the back of my head I remember a similar discussion here on yahoo, but I could find relevant posts neither in...

Hello everyone! Somewhere in the back of my head I remember a similar discussion here on yahoo, but I could find relevant posts neither in my inbox nor in the yahoo archieve. Also Paul seems to be overworked as he has not yet found time to answer to this problem. I am using Crossworks (after having used IAR for 3 years) and am trying to declare constants in flash memory. For this I de


I2C very fundamental problem

Started by msp430pat in MSP43017 years ago 8 replies

Hello, I'm trying to interface a mini cmos camera(C3188A) to a MSP430F169 from I2C bus. However I have some problems. First of all, I...

Hello, I'm trying to interface a mini cmos camera(C3188A) to a MSP430F169 from I2C bus. However I have some problems. First of all, I have written the code below to initialize I2C bus(I'm using Crossworks 1.4): WDTCTL = WDTPW + WDTHOLD; P3SEL |= 0x0A; U0CTL |= I2C + SYNC; U0CTL &= ~I2CEN; ...


interrupt intervals with the timerB latch register

Started by balucharly in MSP43018 years ago 1 reply

Hi there, I'm new with MSP430 I try to get a function running that is automatically called every 1ms by an interrupt of the timerB. In the...

Hi there, I'm new with MSP430 I try to get a function running that is automatically called every 1ms by an interrupt of the timerB. In the TI Userguide for the MSP430x1xx Family, on page 238 picture 12- 6 is an example that the MSP loads the interval by hardware. But I dont know how to do this here is a sample of my code: (using Crossworks) // SCLK = 32768 // initialize Timer B TBCTL


A real world benchmark + a review

Started by microbit in MSP43020 years ago 16 replies

Hi All, Some of you may recall my enthusiasm for Rowley's CrossWorks for MSP430 since quite some time :-) We all know that some C tool chain...

Hi All, Some of you may recall my enthusiasm for Rowley's CrossWorks for MSP430 since quite some time :-) We all know that some C tool chain companies tend to produce *slightly* biased benchmarks on their tools, so I decided to do an actual REAL test, mainly comparing EW430 V2.10 and RAL CW430 V1.2 (I am in the process of testing on HITECH-C's HITide and compiler V9.00) I ported a project


User Experience

Started by golfnut94952 in MSP43013 years ago 1 reply
LED

I have the port complete to V2 of Crossworks for the User Experience from TI for the MSP430F5529. The board they supply for $99 is really quite...

I have the port complete to V2 of Crossworks for the User Experience from TI for the MSP430F5529. The board they supply for $99 is really quite impressive, with lots of toys on-board, so for a newbie there is much to be learnt from this project; I especially love the slide which lights LED's as you slide your finger across; this has kept be amused for hours! Perhaps the coolest feature is connec...


Building low-cost MSP-430 based units in bulk

Started by David Collier in MSP43019 years ago 22 replies

I currently use an MSP430 on a design which sells for $1000, so I don't mind manually sticking in a JTAG cable and using Crossworks to program...

I currently use an MSP430 on a design which sells for $1000, so I don't mind manually sticking in a JTAG cable and using Crossworks to program each one. --------------------------------------------------- But I'm now looking at building a design which would use a very small chip ( actually I'd prefer the ATtiny25, but I'm keeping an open mind on TI too ) and a couple of transistors on


ram usage clarification

Started by Dan Muzzey in MSP43019 years ago 3 replies

Hello everyone I've got a basic question about RAM allocation on the MSP430's. I'm using CrossWorks and would like to know how the RAM...

Hello everyone I've got a basic question about RAM allocation on the MSP430's. I'm using CrossWorks and would like to know how the RAM gets allocated. I think I may have a couple of things slightly off. It looks to me like static variables get put at the bottom of the ram, followed by Global variables. Does the stack follow this? First, where do global variables go? Secon


compiling code for the MSP430F427 with gcc

Started by alan_ball007 in MSP43017 years ago 2 replies

Dear All, I've written code for the MSP430F427 in C with both the IAR compiler and Rowley Crossworks. The code of the same program, generated...

Dear All, I've written code for the MSP430F427 in C with both the IAR compiler and Rowley Crossworks. The code of the same program, generated by both compilers, fits and works similarly on both chips. I'm now trying to recompile the same code with msp430gcc. Unfortunately whenever I try to build my code, I get the following error messages: -address 0x6b8 of Flasher.elf section .bss...


Re: Boolen data type

Started by Paul Curtis in MSP43020 years ago 1 reply

> And by the way, Paul, can't I use the "bool" type in > CrossStudio? I've seen that this word is highlighted in the > text editor, so I...

> And by the way, Paul, can't I use the "bool" type in > CrossStudio? I've seen that this word is highlighted in the > text editor, so I thought it worked, but the compiler > generated error messages in the variables and functions that > I tried to declare with this type. Bool is a C++ type and CrossWorks doesn't support that (yet). The syntax highlighter


Re: Emulator for MSP430F449

Started by Paul Curtis in MSP43020 years ago 1 reply

Gerd, > Hi gentlemen, > > does anybody know a software emulator for the MSP430F449? CrossWorks has a core simulator (i.e. CPU instructions,...

Gerd, > Hi gentlemen, > > does anybody know a software emulator for the MSP430F449? CrossWorks has a core simulator (i.e. CPU instructions, memory, multiplier), but I don't believe there is any MSP430 simulator for the peripherals of the MSP430--even TI discontinued simulation support of their silicon a long while ago. -- Paul.


re-run of "which compiler are you using?" poll

Started by Nick Alexeev in MSP43013 years ago 26 replies

Folks, "Which compiler are you using?" was a poll which ran 8 years ago. Preferences may have changed, so I'd like to re-run this poll. I...

Folks, "Which compiler are you using?" was a poll which ran 8 years ago. Preferences may have changed, so I'd like to re-run this poll. I have an interest in this, because I'm retooling to MSP430s from PICs. The 2003 list of compilers includes: IAR TI Code Composer Studio (CCStudio) Imagecraft (ICC) Quadravox IDE430 MSPGCC CrossWorks Other Please let me know the compilers you'd ...


MSP430X have segmented memory

Started by Matthias Weingart in MSP43015 years ago 8 replies

Hi, I remember we had a discussion here that the MSP430X is not segmented - but in fact it is - with all drawbacks - I remember from the...

Hi, I remember we had a discussion here that the MSP430X is not segmented - but in fact it is - with all drawbacks - I remember from the x86-architecture. Depending on the philosophy of the compiler vendor you can not use the whole flash range for code or const (well ISR's have to reside in the lower range, but this is not a problem). Crossworks currently limits the CONST range to the ...


I2C Setup with MSP430

Started by Dante Buckley in MSP43014 years ago 5 replies

Hello! I'm using the MSP430F1612 and Rowley's Crossworks. I'm trying to setup an I2C device and send a byte sequence, but I am having trouble....

Hello! I'm using the MSP430F1612 and Rowley's Crossworks. I'm trying to setup an I2C device and send a byte sequence, but I am having trouble. I am referencing the fet_i2c_08.c from the TI website. Also how would one first start out trying to Bit-Bang? #include #include void delay (void); char TXData = 0; void main (void) { WDTCTL = WDTPW


Attach Debugger with no reset?

Started by Matthias Weingart in MSP43013 years ago 12 replies

I have a free running MSP430F2618 with no JTAG attached that stopped working (some kind of crash I think). I want to see where it is running now...

I have a free running MSP430F2618 with no JTAG attached that stopped working (some kind of crash I think). I want to see where it is running now - is it still in my mainloop or is it running somewhere in the memory - (not in my code). I want to connect the JTAG - attach it - and just jump into the current running code to the current PC. I tried it with Crossworks; I know this is not pos...


Problem with MSP-FET430UIF at using SVS

Started by tegger60 in MSP43015 years ago 1 reply

Hi, I am using a MSP-FET430UIF with a Rowley CrossWorks Complier / Debugger. I am using a MSP430F235 mcu. When I turn on the SVS and turn on...

Hi, I am using a MSP-FET430UIF with a Rowley CrossWorks Complier / Debugger. I am using a MSP430F235 mcu. When I turn on the SVS and turn on the PORON bit in the SVSCTL, when I lower the voltage during testing a POR is never generated, but the UIF becomes disconnected from CrossStudio leaving me "blind" to what is happening with the MSP430. To make matters worse, if I set the VLDx bits in SV...



Memfault Beyond the Launch