Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/03/02 20:15
Read: times


 
#22488 - RE: Confirmed compatible with Tasking
Well all I can do is tell you what I did to get to where I am now.

I took the example serial code that came with the compiler and added a little function, like this:


char numstr[10];
unsigned long num1 = 500;

void se_print2( unsigned long num )
{
sprintf( numstr, "%lu", num1 );
se_print( numstr );
}


The se_print() function expects a pointer to a string, but it gives me the error "Memory spaces do not match." I get the same error for argument #2 of the sprintf() function -- thats the "%lu" conversion specifier.

Like I said before, there may be some setting somewhere that I can't find which determines how it behaves, but I have not been able to find anything that works. I've also uninstalled and reinstalled to no avail.

Any ideas now?

I'm currently trying to get the same code to work in the Raisonance (sp?) compiler; all I have to do is replace some of the Tasking-specific terms such as _rom and whatnot.

List of 29 messages in thread
TopicAuthorDate
Memory & strings; AT89C51            01/01/70 00:00      
RE: Memory & strings; AT89C51            01/01/70 00:00      
RE: Memory & strings; AT89C51            01/01/70 00:00      
RE: Memory & strings; AT89C51            01/01/70 00:00      
RE: Memory & strings; AT89C51            01/01/70 00:00      
RE: Memory & strings; AT89C51            01/01/70 00:00      
RE: Memory & strings - Niklas            01/01/70 00:00      
ASCII or Binary?            01/01/70 00:00      
RE: ASCII or Binary?            01/01/70 00:00      
RE: ASCII or Binary?            01/01/70 00:00      
RE: ASCII or Binary?            01/01/70 00:00      
RE: ASCII or Binary?            01/01/70 00:00      
RE: ASCII or Binary?            01/01/70 00:00      
RE: Memory & strings; AT89C51            01/01/70 00:00      
RE: Memory & strings; AT89C51            01/01/70 00:00      
RE: Memory & strings; AT89C51            01/01/70 00:00      
Confirmed compatible with Tasking            01/01/70 00:00      
RE: Confirmed compatible with Tasking            01/01/70 00:00      
Typo in above post            01/01/70 00:00      
RE: Confirmed compatible with Tasking            01/01/70 00:00      
RE: Confirmed compatible with Tasking            01/01/70 00:00      
RE: Confirmed compatible with Tasking            01/01/70 00:00      
More details on memory errors            01/01/70 00:00      
RE: Memory & strings; AT89C51            01/01/70 00:00      
RE: Memory & strings; AT89C51            01/01/70 00:00      
RE: More details on memory errors            01/01/70 00:00      
RE: Memory & strings; AT89C51            01/01/70 00:00      
RE: More details on memory errors            01/01/70 00:00      
RE: More details on memory errors            01/01/70 00:00      

Back to Subject List