<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi, perhaps I am overseeing a simple solution for my problem:<br>
    <br>
    On the pic32 there are two flash areas, one at 0x9d000000 for the
    main program and another at 0xbfc00000 that is called Boot Flash. On
    reset the program starts in the boot flash at the first address.<br>
    <br>
    I have written the startup code for the chips now but I need to
    distribute some procedures between the two memory areas, for obvious
    reasons I must have some code at address 0xbfc00000 or the chip will
    not boot correctly ;-).<br>
    <br>
    My thought was now to tweak the linker script in the same way the
    original linker scripts of pic32 work:<br>
    <br>
    MEMORY<br>
    {<br>
      kseg0_program_mem    (rx)  : ORIGIN = 0x9D000000, LENGTH = 0x80000<br>
      kseg1_boot_mem             : ORIGIN = 0xBFC00000, LENGTH = 0x490<br>
    }<br>
    <br>
    SECTIONS<br>
    {<br>
      .reset _RESET_ADDR :<br>
      {<br>
        KEEP(*(.reset))<br>
        KEEP(*(.reset.startup))<br>
      } > kseg1_boot_mem<br>
    }<br>
    <br>
    In assembler I can then simply write:        <br>
     .section .reset,code and<br>
     .section .reset.startup,code<br>
    <br>
    and then the code, this will automagically end up in the
    kseg1_boot_mem, but this does not work with the inline assembler.
    Any ideas on how to do this the correct way? Is there something more
    intelligent than to write a plain assembler file?<br>
    <br>
    TnX,<br>
    <br>
    Michael<br>
    <br>
    <br>
    <br>
    <meta http-equiv="Content-Type" content="text/html;
      charset=ISO-8859-15">
    <title>PIC32MX FRM - Section 3. Memory Organization</title>
    <meta http-equiv="Content-Type" content="text/html;
      charset=ISO-8859-15">
    <title>PIC32MX FRM - Section 3. Memory Organization</title>
  </body>
</html>