Skip to main content
Visitor II
April 15, 2005
Question

st10f276 bootstrap

  • April 15, 2005
  • 4 replies
  • 1070 views
Posted on April 15, 2005 at 15:52

st10f276 bootstrap

    This topic has been closed for replies.

    4 replies

    Visitor II
    April 13, 2005
    Posted on April 13, 2005 at 15:37

    hi - i'm developing an st10 programmer and am trying to enter BSL mode. i can get the st10 to echo the ACK byte (0xD5) but the 32-bytes of code I upload does not seem to work. I'm actually uploading just 10 bytes to have the st10 write to the RX buffer.

    is there something more i need to do to have it run the bootcode?

    Visitor II
    April 14, 2005
    Posted on April 15, 2005 at 00:10

    thanks! that did the trick...

    now once it's loaded and running does my 32-byte boot loader have access to IRAM and XRAM?

    Visitor II
    April 15, 2005
    Posted on April 15, 2005 at 06:03

    Hello,

    In Bootstrap mode, the XPERCON is configured to 0x042D which means that: XRAM1, XRAM2, CAN1, XMISC and XFLash are enabled.

    So yes you have access to all the DPRAM and XRAMs.

    Take care that:

    - your 32 bytes or in the range 0xFA40-0xFA5F

    - the register bank starts at 0xFA00

    - the Stack pointer is at 0xFA40

    to not corrupt those locations.

    Normally your 32 bytes will load more code, your complete code maybe. I suggest to put it in the 2kBytes of XRAM1 that is common to all the ST10F27x derivatives.

    Regards,

    Kenshin

    Visitor II
    April 15, 2005
    Posted on April 15, 2005 at 15:52

    thanks! that's what i thought, but it appears that when i try and write to the XRAM i get a cpu exception. i'll double check my bsl code!