gnupic: Thread: Re: [gnupic] error building gpsim extra graphic_lcd module


[<<] [<] Page 2 of 2 [>] [>>]
Subject: Re: [gnupic] error building gpsim extra graphic_lcd module
From: "Xiaofan Chen" ####@####.####
Date: 30 May 2006 13:44:43 +0100
Message-Id: <a276da400605300544o4d6bcfdeq1bf4a51e13dfff82@mail.gmail.com>

On 5/30/06, Xiaofan Chen ####@####.#### wrote:
> On 5/26/06, Scott Dattalo ####@####.#### wrote:
> >
> > I could duplicate this on one system. However, I'm away that computer now
> > and unable to debug the problem (and I won't be able to get back to it for
> > a few days). However, I did find some data members that were not getting
> > initialized and this may be the cause. Also, there may've been a race
> > condition between when GTK initialized a graphical element and the point
> > where gpsim assumed it was initialized. I added a check for that. The code
> > is in SVN.

Now I can build the extra modules under Windows and it seems to
work at the first glance.

Regards,
Xiaofan

The running log under Windows:

gpsim - the GNUPIC simulator
version: Release 0.21.12-pre


type help for help
**gpsim> SimulationMode:52
Warning SSP Module is not implemented
FIXME: 16bit processor is assuming that PLL is on - should check config bits
Setting config word 0x300000 = 0xdeff
Setting config word 0x300002 = 0xffff
Setting config word 0x300004 = 0xfffb
Setting config word 0x300006 = 0xfffb
Setting config word 0x300008 = 0xbffc
Setting config word 0x30000a = 0xffff
Setting config word 0x30000c = 0xffff
FIXME:  HLL files are not supported at the moment
SSPCON1 is not implemented
SSPCON2 is not implemented
SSPSTAT is not implemented
SSPADD is not implemented
Program_Counter16::put_value 0x0
Enabling WDT  timeout = 0.018 seconds
pullup resistor or generic voltage source
 Attributes:
 .resistance - pullup resistance
 .voltage - pullup or drive voltage
 .capacitance - pin capacitance

pullup resistor or generic voltage source
 Attributes:
 .resistance - pullup resistance
 .voltage - pullup or drive voltage
 .capacitance - pin capacitance

0: p18f452 Execution at done(0x298)
    Message:*** PASSED LCD test
1: p18f452 Execution at 0x29c
    Message:*** FAILED LCD test

**gpsim> Widths 37 0 0 0
module_x 0, module widget size 316, 126
Widths 30 0 0 0
Widths 30 0 0 0
Widths 31 0 31 0
LCD update
FIXME: CLRWDT for 16 bit processors
0x000000000243D57E p18f452 0x01E6 0x6E8A movwf  latb
0x000000000243D57F p18f452 0x01E8 0xD809 rcall  $+0x14  ;(0x001fc)
0x00000000039386FE p18f452 0x022E 0xDFD9 rcall  $-0xfb4 ;(0x001e2)
0x00000000039386FF p18f452 0x01E2 0x948D bcf    late,2,0
  Read: 0x0000 from late(0x0F8D)
  Wrote: 0x0000 to late(0x0F8D) was 0x0000
SSPCON1 is not implemented
SSPCON2 is not implemented
SSPSTAT is not implemented
SSPADD is not implemented
TMR2 BUG!! value = 0 which is greater than 0xff
Program_Counter16::put_value 0x100
Enabling WDT  timeout = 0.018 seconds
SSPCON1 is not implemented
SSPCON2 is not implemented
SSPSTAT is not implemented
SSPADD is not implemented
TMR2 BUG!! value = 0 which is greater than 0xff
Program_Counter16::put_value 0x0
Enabling WDT  timeout = 0.018 seconds
0x0000000003938700 p18f452 0x0000 0xD11A bra    $+0x236 ;(0x00236)
0x0000000003938701 p18f452 0x0000 0xD11A bra    $+0x236 ;(0x00236)
  Wrote: 0x0000 to pclath(0x0FFA) was 0x0000
  Wrote: 0x0000 to pclatu(0x0FFB) was 0x0000
  Wrote: 0x0000 to stkptr(0x0FFC) was 0x0000
  Wrote: 0x0000 to tosl(0x0FFD) was 0x0030
  Wrote: 0x0000 to tosh(0x0FFE) was 0x0002
  Wrote: 0x0000 to tosu(0x0FFF) was 0x0000
  Wrote: 0x0010 to status(0x0FD8) was 0x0000
  Wrote: 0x0018 to status(0x0FD8) was 0x0010
0x0000000003938701 p18f452 0x0000 0xD11A bra    $+0x236 ;(0x00236)
0x0000000003938703 p18f452 0x0236 0xDFC4 rcall  $-0xf8a ;(0x001c0)
0x0000000003938704 p18f452 0x01C0 0x9292 bcf    trisa,1,0
LCD update
LCD update
LCD update
LCD update
LCD update
LCD update
LCD update
LCD update
LCD update
LCD update
LCD update
LCD update
LCD update
LCD update
LCD update
LCD update
...

Regards,
Xiaofan
Subject: Re: [gnupic] error building gpsim extra graphic_lcd module
From: Scott Dattalo ####@####.####
Date: 30 May 2006 19:51:52 +0100
Message-Id: <447C9443.3020103@dattalo.com>

Xiaofan Chen wrote:

> With the latest SVN version of gpsim, the graphic_lcd module can be built
> under Linux without any changes. However the segfault problem remains.

Hi Xiaofan,

The good news (or bad news depending on your perspective), is that I can 
still duplicate the segv on my other system (my non-development system). 
  I'll take a look at the problem on this system.

Scott

Subject: Re: [gnupic] error building gpsim extra graphic_lcd module
From: "Xiaofan Chen" ####@####.####
Date: 2 Jun 2006 14:06:36 +0100
Message-Id: <a276da400606020606j2dd666c2q299581556dd6052@mail.gmail.com>

On 5/31/06, Scott Dattalo ####@####.#### wrote:
> Hi Xiaofan,
>
> The good news (or bad news depending on your perspective), is that I can
> still duplicate the segv on my other system (my non-development system).
>   I'll take a look at the problem on this system.
>

The same problem happens under FC5.

[mcuee@localhost examples]$ uname -a
Linux localhost.localdomain 2.6.15-1.2054_FC5 #1 Tue Mar 14 15:48:33
EST 2006 i686 athlon i386 GNU/Linux

[mcuee@localhost examples]$ gpsim -s glcd_test.cod

gpsim - the GNUPIC simulator
version: Release 0.21.12-pre


type help for help
**gpsim> SimulationMode:52
Warning SSP Module is not implemented
FIXME: 16bit processor is assuming that PLL is on - should check config bits
Setting config word 0x300000 = 0xdeff
Setting config word 0x300002 = 0xffff
Setting config word 0x300004 = 0xfffb
Setting config word 0x300006 = 0xfffb
Setting config word 0x300008 = 0xbffc
Setting config word 0x30000a = 0xffff
Setting config word 0x30000c = 0xffff
FIXME:  HLL files are not supported at the moment
SSPCON1 is not implemented
SSPCON2 is not implemented
SSPSTAT is not implemented
SSPADD is not implemented
Program_Counter16::put_value 0x0
pullup resistor or generic voltage source
 Attributes:
 .resistance - pullup resistance
 .voltage - pullup or drive voltage
 .capacitance - pin capacitance

pullup resistor or generic voltage source
 Attributes:
 .resistance - pullup resistance
 .voltage - pullup or drive voltage
 .capacitance - pin capacitance

0: p18f452 Execution at done(0x298)
    Message:*** PASSED LCD test
1: p18f452 Execution at 0x29c
    Message:*** FAILED LCD test
**gpsim> Widths 36 0 0 0
module_x 0, module widget size 316, 127
Widths 36 0 0 0
Widths 36 0 0 0
Widths 36 0 36 0
LCD update
Segmentation fault


Regards,
Xiaofan
Subject: Re: [gnupic] error building gpsim extra graphic_lcd module
From: Scott Dattalo ####@####.####
Date: 2 Jun 2006 22:20:47 +0100
Message-Id: <4480ABA8.5050005@dattalo.com>

Xiaofan Chen wrote:
> On 5/31/06, Scott Dattalo ####@####.#### wrote:
> 
>> Hi Xiaofan,
>>
>> The good news (or bad news depending on your perspective), is that I can
>> still duplicate the segv on my other system (my non-development system).
>>   I'll take a look at the problem on this system.
>>
> 
> The same problem happens under FC5.

As far as I can tell now, the issue appears to lie with the way I'm 
using GTK. As you may know, gpsim's HD44780 module renders the LCD in 
it's own stand alone window. However, gpsim's SED1520 module renders the 
LCD in the Bread Board window. There appears to be some weird issue with 
constructing the gui stuff outside of gpsim's normal environment and 
then using it within gpsim's environment.

I'll try to pin point if this is the problem by creating a special 
version of the SED1520 module that renders the display in a separate window.

Scott
Subject: Re: [gnupic] error building gpsim extra graphic_lcd module
From: "Xiaofan Chen" ####@####.####
Date: 4 Jun 2006 11:23:02 +0100
Message-Id: <a276da400606040322w57bcb6d1xf9d7c701f8ab191e@mail.gmail.com>

> > On 5/31/06, Scott Dattalo ####@####.#### wrote:

> >> The good news (or bad news depending on your perspective), is that I can
> >> still duplicate the segv on my other system (my non-development system).
> >>   I'll take a look at the problem on this system.
> >>
> >
> > The same problem happens under FC5.
>

Under my newly installed Ubuntu 6.06 AMD64 64-bit, the graphic
LCD module is working.

mcuee@ubuntu64:~$ uname -a
Linux ubuntu64 2.6.15-23-amd64-generic #1 SMP PREEMPT Tue May 23
13:45:47 UTC 2006 x86_64 GNU/Linux


mcuee@ubuntu64:~/Desktop/build/gpsim/gpsim/extras/graphic_lcd/examples$
gpsim -s glcd_test.cod

gpsim - the GNUPIC simulator
version: Release 0.21.12-pre


type help for help
**gpsim> SimulationMode:52
Warning SSP Module is not implemented
FIXME: 16bit processor is assuming that PLL is on - should check config bits
Setting config word 0x300000 = 0xdeff
Setting config word 0x300002 = 0xffff
Setting config word 0x300004 = 0xfffb
Setting config word 0x300006 = 0xfffb
Setting config word 0x300008 = 0xbffc
Setting config word 0x30000a = 0xffff
Setting config word 0x30000c = 0xffff
FIXME:  HLL files are not supported at the moment
SSPCON1 is not implemented
SSPCON2 is not implemented
SSPSTAT is not implemented
SSPADD is not implemented
Program_Counter16::put_value 0x0
pullup resistor or generic voltage source
 Attributes:
 .resistance - pullup resistance
 .voltage - pullup or drive voltage
 .capacitance - pin capacitance

pullup resistor or generic voltage source
 Attributes:
 .resistance - pullup resistance
 .voltage - pullup or drive voltage
 .capacitance - pin capacitance

0: p18f452 Execution at done(0x298)
    Message:*** PASSED LCD test
1: p18f452 Execution at 0x29c
    Message:*** FAILED LCD test
**gpsim> Widths 36 0 0 0
module_x 0, module widget size 316, 127
Widths 36 0 0 0
Widths 36 0 0 0
Widths 36 0 36 0
LCD update
LCD update
The WDT is not enabled - clrwdt has no effect!
FIXME: CLRWDT for 16 bit processors
0x000000000112A87E p18f452 0x01E4 0xD80B rcall  $+0x18  ;(0x001fc)
0x000000000112A87F p18f452 0x01FC 0xD800 rcall  $+0x2   ;(0x001fe)
LCD update
LCD update
0x0000000001AB3EFF p18f452 0x01E6 0x6E8A movwf  latb
0x0000000001AB3F00 p18f452 0x01E8 0xD809 rcall  $+0x14  ;(0x001fc)
LCD update
LCD update
LCD update
LCD update
0x000000000501BCFE p18f452 0x01E8 0xD809 rcall  $+0x14  ;(0x001fc)
0x000000000501BCFF p18f452 0x01FC 0xD800 rcall  $+0x2   ;(0x001fe)
SSPCON1 is not implemented
SSPCON2 is not implemented
SSPSTAT is not implemented
SSPADD is not implemented
TMR2 BUG!! value = 0 which is greater than 0xff
Program_Counter16::put_value 0x100
[<<] [<] Page 2 of 2 [>] [>>]


Powered by ezmlm-browse 0.20.