Skip to main content
Visitor II
December 23, 2002
Question

ST6230 & ST C compiler

  • December 23, 2002
  • 2 replies
  • 895 views
Posted on December 23, 2002 at 19:22

ST6230 & ST C compiler

    This topic has been closed for replies.

    2 replies

    lucAuthor
    Visitor II
    December 20, 2002
    Posted on December 20, 2002 at 11:36

    Hello,

    I use the ST C compiler Rev 1.1 for a ST62x30. I can't write in E2Prom if i use more than 36 variables. Sounds familiar ? Help wanted!

    Thanks.

    Visitor II
    December 23, 2002
    Posted on December 23, 2002 at 19:13

    Hello,

    ST has stopped promotting this C compiler because it has too many limitations.

    One of them being: no support of the paged RAM/EEPROM.

    The memory bus of the ST6 being only 8 bits, a paging mechanism is used in order to access more than 80h bytes (the other 80h being used by the peripherals and the ROM access window).

    On those 80 bytes, 40h are placed in a banked area that that need to be switched back and forth between the different RAM and EEPROM pages.

    As the C compiler does not support this banking system it will not manage correctly your RAM if your usage go above the 64bytes of RAM.

    As the compiler itself use few bytes (arround 20) I think this is the problem you are seing right now.

    My best advice would be to try the Raisonace compiler.