Documentation/expected behaviour of open flash-loader Verify() function

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

  • Documentation/expected behaviour of open flash-loader Verify() function

    What's the expected behaviour of the Verify function for an open flash-loader binary? The examples at the wiki don't have this function, just its signature. I tried a few different things, but I'm not having any luck. Any tips or suggestions for getting this thing working?

    Edit: I should note that erasing and flashing do appear to be working correctly, it's just that verification always fails.
  • Hi Carl,


    we will update the Template projects, thanks for pointing that out.
    This is the header of Verify():

    C Source Code

    1. /*********************************************************************
    2. *
    3. * Verify
    4. *
    5. * Function description
    6. * Compares a specified number of bytes of a provided data
    7. * buffer with the content of the device
    8. *
    9. * Parameters
    10. * Addr: Start address in memory which should be compared
    11. * NumBytes: Number of bytes to be compared
    12. * pBuff: Pointer to the data to be compared
    13. *
    14. * Return value
    15. * == (Addr + NumBytes): O.K.
    16. * != (Addr + NumBytes): *not* O.K.
    17. *
    18. */
    19. unsigned long Verify(unsigned long Addr, unsigned long NumBytes, unsigned char *pBuff)
    Display All


    Does this work for you?

    Best regards,
    Niklas
    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.
  • Hi,


    we are currently reworking the documentation of open flash loader.
    In the mean time, if you have any questions, please do not hesitate to ask vial mail or here in the forum.


    - Niklas
    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.