printf streams

Started by Darren Logan in MSP43012 years ago 1 reply

'ello, i've use printf on UART0 on an F149 what's the easiest way to switch between say two (or more) ports using printf (e.g. switch between...

'ello, i've use printf on UART0 on an F149 what's the easiest way to switch between say two (or more) ports using printf (e.g. switch between UART0 and UART1)? with some PIC C compilers i've used, you put the stream name within the printf arguments and the compiler routes the printf to that stream duzzent look like it's as easy wiv IAR C, or am i wrong? Vbr, Darren


printf() causes lockup

Started by oliver at mettrix in MSP43010 years ago 6 replies

Hello, Thanks to all who have provided help with our questions recently. Here's a new one that is giving fits: To get some information...

Hello, Thanks to all who have provided help with our questions recently. Here's a new one that is giving fits: To get some information out of the IAR we use a printf statement. Without the printf(), the program runs. With it, the program locks up after some variable number of printf() statement executions. Here's main: All it has to do is print the value of i every 100 times through t...


Speaking of printf...

Started by Peter Johansson in MSP4306 years ago 8 replies

While reading the printf thread I got to wondering... I generally recommend against printf for debugging for non uC programming, but I am...

While reading the printf thread I got to wondering... I generally recommend against printf for debugging for non uC programming, but I am finding less of a case against it in the uC world. So, if you are going to use printf this way, rather than do the data formatting on the micro, why not spit the formatting string and the raw data over the serial connection, and whip up a simple app on...


printf behavior

Started by in MSP43011 years ago 8 replies

Hi, I'm having trouble using the printf function to send a string of chars using a custom __putchar function. That is, this...

Hi, I'm having trouble using the printf function to send a string of chars using a custom __putchar function. That is, this works: __putchar('h'); ..while this doesn't: printf("hello"); The printf function even seems to halt the execution of the program (it hangs somewhere in the following code, hard to say where. This is a bit puzzling, especially as it worked a few days ago,


printf() through Spy-Bi-Wire hangs [MSP430, CCStudio]

Started by Nick Alexeev in MSP4305 years ago 3 replies

Colleagues, I can't seem to make the printf() to work through Spy-Bi-Wire (SBW) in CCStudio. The program execution just hangs, when it gets...

Colleagues, I can't seem to make the printf() to work through Spy-Bi-Wire (SBW) in CCStudio. The program execution just hangs, when it gets to printf(). My setup consists of: * MSP430FR5739 * MSP-FET430UIF * Code Composer Studio 5.3.0.00090 To try to enable the printf(), I've changed these settings in Project-> Properties: * Console I/O (CIO) enabled * Stack si


Printf() function problem

Started by Erdi in MSP4308 years ago

Hi,I am using msp430f248 and trying to implement printf() function on my em= bedded system. I have my own functions that can successfully send or...

Hi,I am using msp430f248 and trying to implement printf() function on my em= bedded system. I have my own functions that can successfully send or receiv= e data from UART0. But i can not use printf() function so I have done a few= things which i searched from the forum of TI, e2e community, and those thi= ngs are below. By the way, i am using CCE 3.1. 1. Extract the .zip file =E2=80=9C/tools...


Printf and PutChar

Started by gusgl2001 in MSP43010 years ago 2 replies

I am trying to use printf to make the msp430 connected to my parallel port using TI's Parallel FET print something to the eclipse I/O...

I am trying to use printf to make the msp430 connected to my parallel port using TI's Parallel FET print something to the eclipse I/O output window(if it has one), but to no avail. As I understand, a user has himself to declare the putchar function that printf uses. Does anyone know if there is anywhere where I can get this function? I wonder why something like this wouldn't be included in a...


printf function

Started by Martijn Broens in MSP43014 years ago 6 replies

Hi All, I've been experimenting with the printf function and the usage of va_list but I'm not sure if I understand it right. int...

Hi All, I've been experimenting with the printf function and the usage of va_list but I'm not sure if I understand it right. int printf(const char *format, ...) /* Our main entry */ { va_list ap; int nr_of_chars; va_start(ap, format); /* Variable argument begin */ nr_of_chars = _formatted_write(format, put_one_char, (void *) 0, ap); va_end(ap);


run placement fails for object ".cio"

Started by jedi_erdi in MSP4307 years ago

Hi, I am using MSP430F248 and CCE V3.1. I am getting the error "run placement fails for object ".cio" ". As i googled it is a problem related...

Hi, I am using MSP430F248 and CCE V3.1. I am getting the error "run placement fails for object ".cio" ". As i googled it is a problem related with printf, till now i used to use printf correctly. When i change the size of the arrays i used in my code it sometimes compiles without error. For example, i want to write on the consloe by printf("Monitor") but it writes "Motr", it loses some characters...


printf to UART - Revisited - CCSv4

Started by Jim in MSP4306 years ago 22 replies

I have spent a lot of time trying to get printf() linked to my low-level output-to-uart routines, and failed at several different methods...

I have spent a lot of time trying to get printf() linked to my low-level output-to-uart routines, and failed at several different methods touted on this and other forums/user groups. I finally arrived at a working solution using sprintf() and MyPuts() (my low-level output routine). Porting a rather large program from IAR (where I had replaced the write() routine to get printf to uart) ...


IAR Printf() usage.

Started by bharat in MSP43012 years ago 2 replies

Dear IAR people, I am using IAR embedded workbench for MSP430 Ver3.3. I am using printf() function to debug my MSP430 code. But I was unable...

Dear IAR people, I am using IAR embedded workbench for MSP430 Ver3.3. I am using printf() function to debug my MSP430 code. But I was unable to see the output on any of debug windows like, Log..etc. Does IAR workbench supports printf function ? or there any alternate method to see the debug messages ?. Regards, Bharat.


printf question

Started by Micah Stevens in MSP43012 years ago 2 replies

Hi, I'm trying to output a signed int with printf() in crossworks so that I can get some feedback in the debug window. It's working, but...

Hi, I'm trying to output a signed int with printf() in crossworks so that I can get some feedback in the debug window. It's working, but it's not displaying negative numbers properly, it's giving the two's compliment instead, i.e. 65534 instead of -1.. Is there a format string switch that I can use to force it to be in signed mode? I looked on the net, and in the crossworks docs, and


Simple printf() example?

Started by Douglas in MSP4308 years ago 7 replies

I am a long time PIC user but a 430 newbie. For some quick debugging I want to use printf(). The IAR Kickstart compiler takes my code without...

I am a long time PIC user but a 430 newbie. For some quick debugging I want to use printf(). The IAR Kickstart compiler takes my code without errors or warnings but there is no output. I can put bytes in UCA0TXBUF and they get transmitted fine. I think I need to tell the compiler which serial interface to use for STDOUT, but how? I am using a MSP430F2274. Can someone point me to a simple e...


Printf 'long' format specifications

Started by lewis in MSP43011 years ago 17 replies

Hi, My problem is pretty basic , still am stuck. I am trying to use sprintf() to format a long value to the destination string.I tried using %d...

Hi, My problem is pretty basic , still am stuck. I am trying to use sprintf() to format a long value to the destination string.I tried using %d , %l etc but dint get he expected results. I went thru th ecrosstudio documentation for printf format specifications but ended more confused dan before. Please advice Thanks in advance. Regards, Lewis


Shrinking printf() code?

Started by "Robert J. Wilson" in MSP43011 years ago 2 replies

Hi folks, I have four terminal output lines that I'm using with my ez430-F2013 system to report the data. But I would like to further reduce...

Hi folks, I have four terminal output lines that I'm using with my ez430-F2013 system to report the data. But I would like to further reduce the code size and was wondering: Does it make sense to minimize my use of "stdio.h" and "printf()" to the minimum code foot-print? Today, I am using "CLIB" and sized Library options "Small." But I'm only using a "%d" format string for char, int and ...


Fatal error when i use printf()

Started by bharat in MSP43012 years ago 4 replies

hi, i am using printf() statement in my code. for this i have included stdio.h and CLIB library. i am getting following error. *Fatal...

hi, i am using printf() statement in my code. for this i have included stdio.h and CLIB library. i am getting following error. *Fatal Error[e89]: Too much object code produced (more than 0x1000 bytes) for this package* what should be the problem ? how can i correct this? i am using IAR workbench 3.25. regards, bharat


HELP!!! CCEssentials, Eclipse debug output using printf

Started by owaiscareer in MSP43011 years ago 2 replies

Hi All, I'm using the CCEssentials PRO version that is based off of Eclipse. Apparently, it is possible to send debug statements out to stdout...

Hi All, I'm using the CCEssentials PRO version that is based off of Eclipse. Apparently, it is possible to send debug statements out to stdout by using printf statements. I have done so, but I cannot see the print out. Can you please tell me where this is being displayed? Thanks, Owais


IAR Library (Formatted write-Large) problem

Started by Gerhard Wilsnach in MSP43014 years ago 1 reply

Hi All, I am using this compiler option on a MSP430F135 (only 512 bytes of RAM). The sprintf (same as printf, but just to a string buffer)...

Hi All, I am using this compiler option on a MSP430F135 (only 512 bytes of RAM). The sprintf (same as printf, but just to a string buffer) works well for floats and the conversion works as documented (I convert only 1 float at a time to a string). The problem lies at the way the printf is allocating RAM memory to perform its function. 1) I cannot figure from the MAP file where it (RAM all


Static int declaration and initialization

Started by Mirko Viviani in MSP4309 years ago 9 replies

Using IAR on a MSP430F1611 (MSP430 family) this piece of code does not work (printf will print something else than 23) I cannot split the...

Using IAR on a MSP430F1611 (MSP430 family) this piece of code does not work (printf will print something else than 23) I cannot split the inizialization from declaration (source code cannot be modified): any idea? static int i#; void main() { printf("%d",i); } Obviously splitting initialization from declaration works. -- -- Mirko Viviani --


scanf with CCE 3.2

Started by aes430 in MSP4309 years ago

Hi Anyone have tried to use the scanf function with CCE 3.2?. The printf function works fine after enable the CIO function use and specify...

Hi Anyone have tried to use the scanf function with CCE 3.2?. The printf function works fine after enable the CIO function use and specify the heap size to 400. The level of printf support was chosen as full. With IAR the IO console have two different spaces: one for output; the other for input. In CCE the input and output share the same space (with different colours). The scanf functio...