[SOLVED] Cannot Loadbin in a particular address on BlueNRG-2

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

  • [SOLVED] Cannot Loadbin in a particular address on BlueNRG-2

    Hi,

    I've tried to load a binary file on a particular address in the flash but it doesn't work.
    I used this command " loadbin C:\fw\new.bin,0x10077400 ".
    but always got this "Halting CPU for downloading file.
    Downloading file [C:\fw\new.bin]...
    J-Link: Flash download: Bank 0 @ 0x10040000: 1 range affected (4096 bytes)
    J-Link: Flash download: Total: 0.417s (Prepare: 0.207s, Compare: 0.085s, Erase: 0.063s, Program & Verify: 0.054s, Restore: 0.006s)
    J-Link: Flash download: Program & Verify speed: 73 KB/s
    O.K."
    the size of the binary file is 2024 bytes.
    I know this address 0x10040000 is the address of flash begging but why it keeps loading the file on it :wacko: ??!!
    Regards,
    Khalil Azouz
  • Hi,
    Thank you for your inquiry.

    Could you please send us a J-Link log file? How to enable:
    wiki.segger.com/J-Link_DLL#Enable_J-Link_Log_File
    Does it work when using a hex file instead of a bin file + loadfile command?

    Best regards,
    Fabian
    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.
  • Thank you for your reply,

    I knew what the issue was.

    It because the "loadbin" is an (and) operation.
    And I was trying to load the bin file into my code location, So it not replaced but anded with my code.
    Regards,
    Khalil Azouz
  • Hi Khalil,
    Good to hear that you are up and running again.

    EDIT:
    loadbin should also erase the affected area. Loadbin does: sector erase, download and verify.

    Best regards,
    Fabian
    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.