NXP LPC21XX serial loader

Comments

3 comments

  • Avatar
    Jon Elliott

    Hi William,

    Yes.

    Open or create an LPC2000 project and then do the following:

    • Set the Linker Options > Additional Output Format property to hex on your project node in order to make CrossStudio generate a .hex file.
    • Add STARTUP_FROM_RESET to the Preprocessor Options > Preprocessor Definitions property on the Philips_LPC210X_Startup.s/Philips_LPC230X_Startup.s node in order to make the program startup when you reset the target (see the comment in the startup code for more information about STARTUP_FROM_RESET, especially if you plan to do JTAG debugging as well).

    Regards,

    Jon Elliott

    0
    Comment actions Permalink
  • Avatar
    William Basser

    I have already done that and can load from a console.   My question is can I had the loader be one of the targets in the target window, like segger j-link or amontec jtagkey?

    In addition is there a way to display the sizes of the code and data space after build?

     

    0
    Comment actions Permalink
  • Avatar
    Jon Elliott

    Hi William,

    No, there isn't currently a way of doing this in the target window.

    I guess you could achieve roughly what you're after using the User Build Steps > Post Link Command property to download your program after each successful build.

    Regarding code and data size - you can see this information in the Memory Usage, Project Explorer and Symbol Browser windows. Additionally, if you are using V2 it is displayed in the build log on completion of build.

    Regards,

    Jon Elliott

    0
    Comment actions Permalink

Please sign in to leave a comment.