Truncated Core Size Messages For 18F26K22 ?


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2012
    Location
    Türkiye
    Posts
    103

    Default Truncated Core Size Messages For 18F26K22 ?

    Hello everyone ..

    Today I've realised an interesting problem with Microcode IDE ..
    Yesterday I purchased two 18F26K22 MCUs to play with ... Until today with 16F series I've always been warned by the compiler when I excess the range of the memory with a message called "Truncated core size" .. But with this 18F26K22 , the compiler keeps compiling even though the bytes used are indicated more than 64000 bytes , I know this MCU has 64 Kbytes flash memory but it never displays such an error message .. Anyone has an idea ? or maybe my compiler is damaged somehow ?

    Thanks in advance ..
    - Ipsa scientia potestas est -

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default Re: Truncated Core Size Messages For 18F26K22 ?

    Hi,
    So how big IS MicroCodeStudio reporting that code is? I'm asking because 64KB is 65536 bytes...not 64000.

    /Henrik.

  3. #3
    Join Date
    Dec 2012
    Location
    Türkiye
    Posts
    103


    Did you find this post helpful? Yes | No

    Default Re: Truncated Core Size Messages For 18F26K22 ?

    I just copied some LCDOUT special character line over and over again in order to test the IDE .. and the code has reached to 129010 bytes .. But it still compiles succesfully even though it has exceeded the max. flash memory range ... Is such a thing possible ?
    - Ipsa scientia potestas est -

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default Re: Truncated Core Size Messages For 18F26K22 ?

    I believe that the final code size is returned by the assembler and not by the compiler.
    Since some 18F parts are capable of extending its program memory to external memory it's possible that the assembler doesn't care what the final size actually is and therefor happily assembles the program no matter what.

    Of course, I'm only speculating.

    /Henrik.

  5. #5
    Join Date
    Dec 2012
    Location
    Türkiye
    Posts
    103


    Did you find this post helpful? Yes | No

    Default Re: Truncated Core Size Messages For 18F26K22 ?

    Hmm... Sounds logical ...
    - Ipsa scientia potestas est -

  6. #6
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Truncated Core Size Messages For 18F26K22 ?

    You should be able to tell by the file size of the compiled hex,
    Or if it has inline asm you could use org to shove some program code in a location that doesn't exist on the chip.

Similar Threads

  1. 18F26K22 slow startup
    By Tobias in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 7th January 2014, 22:10
  2. Compiling for 18F26K22 - Does anyone have a solution for me?
    By Balachandar in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th August 2012, 12:49
  3. 18f26k22 - setting fuse in program
    By smsteves in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 4th October 2011, 13:09
  4. Anyone found a Bootloader for 18F26K22?
    By Dave in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 11th August 2011, 18:23
  5. 12 bit core
    By Ruben Pena in forum mel PIC BASIC
    Replies: 4
    Last Post: - 6th December 2007, 18:04

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts