[ANSWERED / SOLVED]Can not download binary file to Flash - AT91SAM7S256

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

  • [ANSWERED / SOLVED]Can not download binary file to Flash - AT91SAM7S256

    Dear you,

    i use loadbin command to download binary to flash, the downloading have no error message but when check again the flash memory, and then the binary data hasn't written to flash. if i use J-Flash ARM, all things work nice.

    [IMG]http://ca9.upanh.com/19.0.23727075.Dz10/jlink.jpg[/IMG]

    Has the J-Link commander need a license for activating ?

    Thanks you.
    Trung Thang
  • Hello Trung,

    Did you select the device before using the loadbin command?
    Otherwise J-Link does not know which device shall be programmed.

    Your seuquence in J-Link commander should look like as follows:
    exec device = AT91SAM7S256
    h
    loadbin C:\flash.bin, 0x100000
    mem 100000,100


    Best regards
    Alex
    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.
  • thanks Alex,

    i don't know that there need to have command: exec device = AT91SAM7S256.
    After add the exec device = AT91SAM7S256 then all is OK.
    I have a confuse that if i want to load the bin file to RAM (0x200000)then i don't need to add the command exec device = AT91SAM7S256 ?

    BTW, thanks for your support.
  • Hi thavali,

    of course for downloading a bin file into RAM you do not need to specify the device because RAM
    can be written directly by memory write accesses.
    In order to program flash, you need to perform a flash-specifc alogrithm which differs (for internal flash)
    from device to device. So the address were you want to download the bin file to is not sufficient
    for J-Link to know:
    which device you are working with,
    if this address is RAM or flash
    and if it is flash which algorithm is needed.


    Best regards
    Alex
    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.