Skip to main content
Topic: Trouble building firmware: .udata_StackTsk.o (Read 5453 times) previous topic - next topic

Trouble building firmware: .udata_StackTsk.o

I'm trying to build the original firmware (v0e) for the #twatch before I start modifying it.  I cannot get a build.

I get these errors.  I've redacted some banner and informational messages:

[code]MPLAB C18 v3.40 (evaluation)
[...]
C:Microchip Solutions v2011-10-18MicrochipTCPIP StackTCP.c:1454:Warning [2066] type qualifier mismatch in assignment
C:Microchip Solutions v2011-10-18MicrochipTCPIP StackTCP.c:4606:Warning [2066] type qualifier mismatch in assignment
C:Microchip Solutions v2011-10-18MicrochipTCPIP StackTCP.c:4619:Warning [2066] type qualifier mismatch in assignment
[...]
C:UsersdavidmoisanDocumentsdevtwatch-v0emain.c:72:Warning [2066] type qualifier mismatch in assignment
C:UsersdavidmoisanDocumentsdevtwatch-v0emain.c:80:Warning [2066] type qualifier mismatch in assignment
C:UsersdavidmoisanDocumentsdevtwatch-v0emain.c:181:Warning [2066] type qualifier mismatch in assignment
C:UsersdavidmoisanDocumentsdevtwatch-v0emain.c:191:Warning [2066] type qualifier mismatch in assignment
C:UsersdavidmoisanDocumentsdevtwatch-v0emain.c:201:Warning [2066] type qualifier mismatch in assignment
C:UsersdavidmoisanDocumentsdevtwatch-v0emain.c:211:Warning [2066] type qualifier mismatch in assignment
[...]
C:UsersdavidmoisanDocumentsdevtwatch-v0etwatchv1.c:283:Warning [2066] type qualifier mismatch in assignment
C:UsersdavidmoisanDocumentsdevtwatch-v0etwatchv1.c:287:Warning [2066] type qualifier mismatch in assignment
C:UsersdavidmoisanDocumentsdevtwatch-v0etwatchv1.c:530:Warning [2066] type qualifier mismatch in assignment
C:UsersdavidmoisanDocumentsdevtwatch-v0etwatchv1.c:533:Warning [2066] type qualifier mismatch in assignment
C:UsersdavidmoisanDocumentsdevtwatch-v0etwatchv1.c:536:Warning [2066] type qualifier mismatch in assignment
C:UsersdavidmoisanDocumentsdevtwatch-v0etwatchv1.c:538:Warning [2066] type qualifier mismatch in assignment
C:UsersdavidmoisanDocumentsdevtwatch-v0etwatchv1.c:549:Warning [2066] type qualifier mismatch in assignment
[...]
MPLINK 4.40, Linker
Device Database Version 1.3
Copyright (c) 1998-2011 Microchip Technology Inc.
Error - section '.udata_StackTsk.o' can not fit the section. Section '.udata_StackTsk.o' length=0x0000000b
Errors    : 1

Link step failed.

Here is the partial map:

MPLINK 4.40, Linker
Linker Error Map File - Created Sun Nov 13 23:22:21 2011

*Warning* - This is only a partial map file due to a link time error.
  Only sections which were allocated prior to the error are shown below.

CODEPAGES:
    Memory      Start        End              Section    Address Size(Bytes)
 ---------  ---------  ---------            ---------  ---------  ---------
      page    0x0000    0xdbbf          _entry_scn    0x0000    0x0006
                                          highVector    0x0008    0x0006
                                            lowVector    0x0018    0x0006
                                              .cinit    0x001e    0x00c2
                                          .code_TCP.o    0x00e0    0x6016
                                          .code_UDP.o    0x60f6    0x152a
                                    .code_twatchv1.o    0x7620    0x13e4
                                      .code_Helpers.o    0x8a04    0x0fa0
                                        .code_DHCP.o    0x99a4    0x0dec
                                    .code_ETH97J60.o    0xa790    0x0d98
                                          .code_DNS.o    0xb528    0x0d5e
                                        .code_TFTPc.o    0xc286    0x0d34
                                      .code_AutoIP.o    0xcfba    0x0942
                                          .code_ARP.o    0xd8fc    0x0696
                                      .code_HD44780.o    0xdf92    0x0616
                                          BIGINT_CODE    0xe5a8    0x05bc
                                        .code_ICMP.o    0xeb64    0x0546
                                        .code_main.o    0xf0aa    0x04ba
                                          .code_IP.o    0xf564    0x03fc
                                .code_LCDTCPServer.o    0xf960    0x0380
                                    .code_StackTsk.o    0xfce0    0x02c8
                                    .code_Announce.o    0xffa8    0x02be
                                              STRING    0x0266    0x0160
                                        .code_Tick.o    0x03c6    0x0144
                                        .stringtable    0x050a    0x0114
                                          _cinit_scn    0x061e    0x009e
                                      .code_fxm3232.o    0x06bc    0x0070
                                    .code_fxd3232u.o    0x072c    0x0048
                                  .romdata_twatchv1.o    0x0774    0x0041
                                                PROG    0x07b6    0x003c
                                    .code_fxd1616u.o    0x07f2    0x002c
                                                .code    0x081e    0x002c
                                  .romdata_HD44780.o    0x084a    0x0020
                                        _startup_scn    0x086a    0x001c
                                    .code_fxd0808u.o    0x0886    0x001c
                                      .romdata_TCP.o    0x08a2    0x000c

    config    0xfff8    0xfffd .config_1fff8_main.o    0xfff8    0x0001
                                .config_1fffa_main.o    0xfffa    0x0001
                                .config_1fffb_main.o    0xfffb    0x0001
                                .config_1fffd_main.o    0xfffd    0x0001

    devid    0xfffe    0xffff                                         


SHAREBANKS:

DATABANKS:
    Memory      Start        End              Section    Address Size(Bytes)
 ---------  ---------  ---------            ---------  ---------  ---------
      gpr0    0x0060    0x00ff        .udata_UDP.o    0x0060    0x0096

    gpr1b    0x0100    0x027f            TCB_uRAM    0x0100    0x0038

      gpr2    0x0280    0x02ff  SYN_QUEUE_RAM_SECT    0x0280    0x003c
                                        .udata_main.o    0x02bc    0x0033
                                        .udata_ICMP.o    0x02ef    0x0011

      gpr3    0x0300    0x03ff              trends    0x0300    0x00fe

    gpr10    0x0400    0x0c7f              tweets    0x0400    0x086f

    gpr12    0x0c80    0x0cff    .idata_twatchv1.o    0x0c80    0x0031
                                      .udata_AutoIP.o    0x0cb1    0x002f
                                        .udata_DNS.o    0x0ce0    0x0017

    gpr13    0x0d00    0x0dff              .stack    0x0d00    0x0100

    gpr14    0x0e00    0x0e7f      .udata_TFTPc.o    0x0e00    0x0028
                                        .udata_DHCP.o    0x0e28    0x0024
                                        .udata_ARP.o    0x0e4c    0x0014
                                          BIGINT_VARS    0x0e60    0x0013
                                .udata_LCDTCPServer.o    0x0e73    0x000c

    sfr14    0x0e80    0x0eff          SFR_BANKED0    0x0e80    0x0006
                                          SFR_BANKED1    0x0e8a    0x0001
                                          SFR_BANKED2    0x0e97    0x0003
                                          SFR_BANKED3    0x0ea0    0x0001
                                          SFR_BANKED4    0x0ea2    0x0003
                                          SFR_BANKED5    0x0ea6    0x0002
                                          SFR_BANKED6    0x0eaa    0x0002
                                          SFR_BANKED7    0x0eb2    0x0001
                                          SFR_BANKED8    0x0eb4    0x0001
                                          SFR_BANKED9    0x0eb6    0x0004
                                        SFR_BANKED10    0x0ec0    0x0012
                                        SFR_BANKED11    0x0ed4    0x0002
                                        SFR_BANKED12    0x0ed8    0x0002
                                        SFR_BANKED13    0x0ee2    0x0016
                                        SFR_BANKED14    0x0efb    0x0001
                                        SFR_BANKED15    0x0efd    0x0002

    gpr15    0x0f00    0x0f5f        .udata_TCP.o    0x0f00    0x0051
                                        .idata_main.o    0x0f51    0x000f


ACCESSBANKS:
    Memory      Start        End              Section    Address Size(Bytes)
 ---------  ---------  ---------            ---------  ---------  ---------
 accessram    0x0000    0x005f            .tmpdata    0x0000    0x0019
                                            MATH_DATA    0x0019    0x0014

 accesssfr    0x0f60    0x0fff        SFR_UNBANKED0    0x0f60    0x00a0

The text file included with the v0e source says that the stack is 5.0;  the earliest version I can get is 5.21.  This build was attempted with the latest stack (5.36).

What's happening?

Re: Trouble building firmware: .udata_StackTsk.o

Reply #1
MC changes the darn stack all the time. It is a pain to develop for, and I've stopped using it in new projects.

V5.36 stack won't work for sure. v5.21 might, but there may be some fixes needed too (it will be better than v5.36 for sure though).
Got a question? Please ask in the forum for the fastest answers.

Re: Trouble building firmware: .udata_StackTsk.o

Reply #2
5.20 and 5.20b (I'd prefer the latter) are avalable from the Microchip archived software libraries page at http://www.microchip.com/stellent/idcpl ... odeId=2896

Also be aware that the latest versions of Microchip's C compilers haved changed significantly (eg replacement standard librraries which are not as space efficient as the originals). It's always best to try to get hold of the version used to compile the firmware originally.

If you need a particular version, just ask :)

Re: Trouble building firmware: .udata_StackTsk.o

Reply #3
UPDATE:  I rolled the library back to 5.20b.  The project built.  I'd stay with this version unless someone tells me otherwise.  I have no clue why one version of the stack is "betterer" than the other;  I just want the newest one that works with this particular hardware.

BTW, How does the "Objects - TCPIP Demo App-C18" folder in my build directory get named?  I hate IDE's that seem to have some super-secret setting from which they pull the project name from.  It isn't a demo app!  It's "David Moisan's Brickware", I want to call it what I want and not have some leftover setting from who knows where?  Of course the manual's no help.

Re: Trouble building firmware: .udata_StackTsk.o

Reply #4
[quote author="dmoisan"]UPDATE:  I rolled the library back to 5.20b.  The project built.[/quote]

Excellent!

Quote
  I'd stay with this version unless someone tells me otherwise.  I have no clue why one version of the stack is "betterer" than the other;  I just want the newest one that works with this particular hardware.

"betterer" - in what way? The latest versions are better in that they include more bug fixes and possibly support something that wasn't supported before. They are not better in that each version uses more program space than the previous version (unless you can simply use a device with more flash memory or static RAM to fix that).

The "newest" one will probably work with this hardware, but someone is going to need to go to the trouble of finding out what changes need to be made.

Then there's the Compiler versions... out of interest, which C18 version are you using?

Re: Trouble building firmware: .udata_StackTsk.o

Reply #5
I use the term "betterer" facetiously, BTW. :)  I don't much care about the version of the stack as long as it builds and there are no bugs to bite me.

My compiler is 3.40.