[SOLVED] Pre/Post Load Steps

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Pre/Post Load Steps

    Is it possible to do pre/post loading steps similar to the pre/post build steps? The chips I'm loading have MAC addresses that get erased due to the memory layout so it would be nice to be able to read it in and write it back out automatically instead of manually loading it afterwards.
  • Hello,

    Thank you for your inquiry.
    Pre/Post load steps are not available in Embedded Studio. We suggest moving the MAC address if possible to a memory sector where no other code is, because J-Link will only erase sectors that are part of your downloaded image and are different from the current memory content.
    That way your MAC address would survive new programming attempts.

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Hello,

    Depending on how you have placed your mac address you could try the following: wiki.segger.com/Read-Modify-Write_Flash
    Would that work in your case?

    cwerther wrote:

    Is there anywhere I can put in a feature request for future versions?
    Are you looking to just programm the device or do you want to debug it?
    If you want to debug it then such a feature will not be implemented to Embedded Studio as we have to make sure that the application you are building actually is programmed. If there is additional data that is not part of the application image and you try to debug it there are several follow up errors that might appear.
    If you are looking for simply Flashing the device with the mac after building you could use the post build command and call J-Flash via CL options to merge your Mac to the application image and Flash that.

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.