This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Locating Code

I wish to install a bootloader in a specific sector of the LPC2106. How can I place a section of code to start at a specific address?

Thanks

Rich

Parents
  • I am loading:

    DATA (0x40000000-0x4000FFFF),
    CODE (0x1E000-0x1EF00), CONST (0x1C000-0x1D000))

    into the User Class box in the locate tab. This works as expected. I have created a user class with this:

    #pragma userclass (code = IAP) // generates CODE_IAP class

    According to the MAP file this worked. Buuuut when I add this:

    CODE_IAP (0x5000-0x6000)

    to the user class window I get a syntax error.

    Rich

Reply
  • I am loading:

    DATA (0x40000000-0x4000FFFF),
    CODE (0x1E000-0x1EF00), CONST (0x1C000-0x1D000))

    into the User Class box in the locate tab. This works as expected. I have created a user class with this:

    #pragma userclass (code = IAP) // generates CODE_IAP class

    According to the MAP file this worked. Buuuut when I add this:

    CODE_IAP (0x5000-0x6000)

    to the user class window I get a syntax error.

    Rich

Children