2010-03-22 11:56 AM
using functions from string.h
2011-05-17 06:07 AM
Hi,
if you have the problem with several functions there's probably something wrong in your program: please post more details. However, we recently fixed a small problem with the header of memcpy (in string.h): if you use the free version you can get the latest (fixed) here: http://www.cosmicsoftware.com/download_stm8_32k.php If it's a full version, please contact us and we'll set up a private download for you. Regards, Luca (Cosmic)2011-05-17 06:07 AM
Hi Luca,
I spent some more time working on this and I had taken out every function call but one (strcat()....just appending a short string to the end of a UART buffer). During debug, I found that my program would still hang on this function call. I ended up changing my memory model to ''Long Stack (+modsl)'' and it seems to work now. Now I have many calls to strcpy() and strcat() in place with no problems. How recent was the fix made to the memcpy header? I'm using the free version....I downloaded it on 3/4/2010. Thanks!2011-05-17 06:07 AM
Are you sure that your strings are correctly terminated?