Forums Search for: printf
printf streams
in'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
inHello, 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...
inWhile 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
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]
inColleagues, 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
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
inI 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
inHi 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"
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
inI 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.
inDear 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
inHi, 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?
inI 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
inHi, 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?
inHi 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()
inhi, 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
Static int declaration and initialization
inUsing 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 --
printf function with JTAG interface in Emulator mode
inWe have used MSP-FET430UIF debug interface. When the code is executed in emulator debugger mode, the data is put on terminal I/O window...
We have used MSP-FET430UIF debug interface. When the code is executed in emulator debugger mode, the data is put on terminal I/O window with printf. It was observed that target get stopped before printing all the data. for example, code is written to print 200 array data but it prints only 20 or 30 data & no. of data gets printed is not fixed. Could you suggest what should be the proj...
Using I/O Function(printf/File function) in MSP430f449
inHi, i am a beginner to embedded. i have little(2 weeks) experiance in MSP. when i goes through the system header file i saw a lot of...
Hi, i am a beginner to embedded. i have little(2 weeks) experiance in MSP. when i goes through the system header file i saw a lot of functions. i have some questions. 1. what is the usage of i/o function. Ex. printf 2.what is the usage of file functions. pls. anyone answer my questions. thanks. by singh
printf format specifer
inHi, I am using IAR 3.2. To output some simple data:- unsigned int dcount,counter,adc,timer; .... ...
Hi, I am using IAR 3.2. To output some simple data:- unsigned int dcount,counter,adc,timer; .... printf("%d,%d,%d,%d\n",dcount,timer,counter,adc); The format specifer screws up the output, eg: if timer= 0xFFFF; I dont get 65535 on the console. I read thru the docs for setting CLIB/DLIB etc, as well as tried other specifiers, no luck.