... too large to fit in FLASH memory segment

Comments

5 comments

  • Avatar
    Jon Elliott

    Gordon,

    Turn off the error check by setting Linker Options > Check For Memory Segment Overflow project property to No, rebuild the program and use the symbols browser or memory usage window to look for the cause of the overflow.

    Regards,

    Jon

    0
    Comment actions Permalink
  • Avatar
    Gordon Scott

    Hi Jon,

    It still fails exactly the same way.  This is a modest size application and it's in a 207GZ, I don't believe there is really an overflow in the chip. I think the setup I have is wrongly interpreting what memory is available.With 30 such errors, I get the impression the loader thinks the chip has no memory at all.

    Gordon.

    0
    Comment actions Permalink
  • Avatar
    Jon Elliott

    If changing the Check For Memory Segment Overflow and rebuilding has made no difference then that probably indicates that you are using your own linker script rather than letting CrossWorks generate one from the memory map/section placement file, is that the case? If so, make sure the segment sizes in your linker script are correct for the device you are using.

    Jon

    0
    Comment actions Permalink
  • Avatar
    Michael Johnson

    Or you've lost the target processor property somehow.

    0
    Comment actions Permalink
  • Avatar
    Gordon Scott

    Ah, OK, it looks like that memory.x file is the linker script.

    That will originally have been for an STM32F103 and is definitely smaller than for the 207, though it looks like it should be OK for the application.....

    (noises off .. sounds of hammering and sawing)

    Yep, that's what it is. I copied to a new F2xx specific linker script and increased the values. Now it builds fine.

    I have to own up and say I looked at the segment sizes in the file, but did some wrong mental arithmetic and decided they were sane.  They weren't   :-(

    BTW, this is the OpenBLT boot-loader, which I've concluded I'll need as well as ST's built-in loader, so I'll be sending the code back to feaser.com when it appears working.

    Thanks Jon, thanks Michael.

    0
    Comment actions Permalink

Please sign in to leave a comment.