Skip to main content
Visitor II
December 3, 2006
Question

GCC Vectors in RAM

  • December 3, 2006
  • 3 replies
  • 791 views
Posted on December 03, 2006 at 18:57

GCC Vectors in RAM

    This topic has been closed for replies.

    3 replies

    Visitor II
    December 1, 2006
    Posted on December 01, 2006 at 05:26

    Hi,

    first of all I'm a newbie so be patient with me. My problem is the following:

    I'm using a STR710-EVAL board and I'm trying to port the Freertos to it. I have loaded my program in ram 0x20000000 and I have remapped the memory to Ram. whenever I get a SWI the next I see in my GDB is that the pc = 0x08 and everything crashes. I recognize that this is the address of my Exception handler for SWI but the address should be 0x200000018 where the code is located??????

    What is happenning.

    Visitor II
    December 1, 2006
    Posted on December 01, 2006 at 10:37

    Hi gea,

    Program a simple jump table to RAM at address 0. Program this into Flash. When your interrupts fire, they will be redirected to your code in RAM.

    Visitor II
    December 3, 2006
    Posted on December 03, 2006 at 18:57

    This is based on an older version (v3.20) - not got round to updating yet (busy with str9). But is quite simple todo.

    It uses the Anglia IDEaliST toolchain (gcc based).

    Regards

    sjo

    ________________

    Attachments :

    FreeRTOS.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HtEn&d=%2Fa%2F0X0000000aKd%2FTsNxxtZj68SJcuO21yGHUWRdCNyLc_bdlJEEXtchroU&asPdf=false