Debugger code upload clear flash ?

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

    • Debugger code upload clear flash ?

      I have code that I am debugging now and it is around 8kbyte large and it sits in sector 0 (start location at 0x0000). According to the user manual each sector is 32kB.
      I have pushed some custom data to Flash at position 0x8000 (sector 1), but after toggling the power of microcontroller and re-connecting the debugger, data is gone. It is replaced with 0xff.
      Is this due to debugger clearing all sectors before downloading the code to host ? I was expecting only to clear the sector that is used by the code..
      Can I prevent this in configuration ?

      Thanks
    • New

      Hello,

      Thank you for your inquiry.
      Such an issue is not known to us.
      J-Link will usually only delete used sectors and leave everything else untouched.
      Did you verify that the application that has been downloaded at all?
      What target devices are you debugging?
      Is it on custom hardware or an eval board?
      Could you provide an example project for reproduction on an eval board?

      Best regards,
      Nino
      Please read the forum rules before posting: Forum Rules

      Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
      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 contact us per e-mail.
      Alternatively our support ticketing system can be used as well: segger.com/ticket/