gnupic: [gnupic] Bug in my sdcc code :-(


Previous by date: 31 Jul 2005 18:32:29 +0100 Re: [gnupic] more on weird resets, Peter
Next by date: 31 Jul 2005 18:32:29 +0100 Re: [gnupic] Bug in my sdcc code :-(, Chen Xiao Fan
Previous in thread:
Next in thread: 31 Jul 2005 18:32:29 +0100 Re: [gnupic] Bug in my sdcc code :-(, Chen Xiao Fan

Subject: [gnupic] Bug in my sdcc code :-(
From: Peter Onion ####@####.####
Date: 31 Jul 2005 18:32:29 +0100
Message-Id: <1122831120.6277.51.camel@HP.RoomLan>

I've just realised there is a bug in the code I've been using (and have
suggested a few others use) to set the stack up...

 #pragma stack 0x200,64

should read

 #pragma stack 0x200 64

NOTE: there is no comma !   I should have realised sooner that the
warning message "helloled.c:34: warning: setting stack to default size
64 (0x0040)" was going to be a problem .....

I found this out when I needed to use

#pragma stack 0x200,128

By the way, if you want to use the printf libraries with the USART for
output you NEED a stack bigger that 64 bytes !

I hope this saves someone wasting an afternoon like I have jsut done !

Peter


Previous by date: 31 Jul 2005 18:32:29 +0100 Re: [gnupic] more on weird resets, Peter
Next by date: 31 Jul 2005 18:32:29 +0100 Re: [gnupic] Bug in my sdcc code :-(, Chen Xiao Fan
Previous in thread:
Next in thread: 31 Jul 2005 18:32:29 +0100 Re: [gnupic] Bug in my sdcc code :-(, Chen Xiao Fan


Powered by ezmlm-browse 0.20.