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.
[SOLVED] Pre/Post Load Steps
This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.
-
-
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,
NinoPlease 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. -
Thanks Nino for the quick reply. Sadly we can't move the MAC currently because we can't reserve a 4k space for our MAC. Is there anywhere I can put in a feature request for future versions?
-
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?
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,
NinoPlease 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.
-
Share
- Facebook 0
- Twitter 0
- Google Plus 0
- Reddit 0