Re: LCD Example Segmentation Faults

"Scott Dattalo" <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.gnupic
Message-ID <[email protected]>
On Sun, 2005-08-28 at 18:42 -0400, Malcolm Coyne wrote:
> I have been interested in getting the LCD module working but when I run
> the example code using "gpsim -c lcd_mod.asm" I get a segmentation
> fault. It consistently occurs on the first time simulation of line 151
> of the "lcd.asm" code, i.e.,

<snip>

Malcolm

gpsim should not be segfaulting, but you're doing this all wrong. Look at
the README file in the lcd examples subdirectory. It basically says:

  gpasm lcd_mod.asm
  gpsim -c lcd_mod.stc

gpasm is the assembler. It'll convert all of the assembly source into
'.cod' files that can be loaded by gpsim. gpsim does not load the assembly
source directly; instead gpsim loads the .cod files

The file lcd_mod.stc is a startup configuration script. If you look at the
contents of this file, you can see all of the gpsim commands that are
needed to configure the simulation environment and load the .cod file.

I hope this helps.

Scott
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.