J-Link loadbin errors - totally at a loss!

  • J-Link loadbin errors - totally at a loss!

    Warning - I'm just starting to work with the cortex-m3 (using a STM32F103VC) and am going crazy! I've been trying to download files from a Yagarto environment into a STM32 Development board with no success. I am able to compile and run the code on the board via the GDB and the J-Link EDU device. The next step was downloading code - no go. I decided to take a step back and see if I could even read/write memory. I used a "savebin foo 0x0, 0x3ffff" command (the entire 256k Flash memory) and that worked fine. I tried writing a main.bin file to the device and that's where the problems started:

    -1-
    Sometimes the J-Link device hangs (com problems, can't allocate memory - yes I reloaded the software and USB driver - no help)

    -2-
    I then read about the J-Linkstm32 Software and gave it a try - I was sort of able to upload data using J-Link afterwards. "Sort of" since the binary data in the main.bin isn't what I see in the processor memory. It has changed though. The J-Link device hangs again from time to time though.

    -3-
    I tried using J-Flash, thinking that I should use that to write the internal Flash. No-go: no Flashable memory found! Is it looking for external memory?

    Am I just missing a major concept regarding the STM32 and/or J-Link??? Do I have a defective device? I'm totally lost Help, please!

    Best Regards,

    confused in Mannheim
  • Hi,

    >>-1-
    >>Sometimes the J-Link device hangs (com problems, can't allocate memory - yes I reloaded the software and USB driver - no help)
    Could you please specify this a bit more? We have never seen such a behavior in J-Link Commander when using the "loadbin" command

    >>-3-
    >>I tried using J-Flash, thinking that I should use that to write the internal Flash. No-go: no Flashable memory found! Is it looking for external memory?
    You used the Default.jflash J-Flash project, correct?
    When setting up a new J-Flash project, by default it searches for external CFI compliant flash memory.
    But J-Flash comes with a pre-configured Project for the STM32F103RB + internal flash which can easily ported to the STM32F103VC.
    Simply Click "File->Open project", by default it is already pointing to the folder where the
    sample projects are located (If not, you can always find them at $J_FLASH_INST_DIR$\Samples\JFlash\ProjectFiles).
    Open STM32F103RB.jflash and select the STM32F103VC instead of the RB.

    Regarding 1 & 2: What exactly are you trying to do? In your explanation you switched between Eclipse/GDB,
    J-Link commander and J-Flash, so I am not sure what exactly you are trying to do.


    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.