Skip to content

Could not upload the code #165

Open
Open

Description

@Foad5757

Determine FLASH area

Due to its file extension (or lack thereof), ".pio\build\stm8sblue\firmware.hex" is considered as INTEL HEX format!
8104 bytes at 0x8000... Tries exceeded
*** [upload] Error 4294967295
While uploading get this error

Activity

  1. Murugesh-Hobbyist commented on Nov 9, 2024

    @Murugesh-Hobbyist

    Determine FLASH area
    Due to its file extension (or lack thereof), "C:\Users\murug\AppData\Local\Temp\arduino_build_715628/Blink.ino.hex" is considered as INTEL HEX format!
    1823 bytes at 0x8000... Tries exceeded
    An error occurred while uploading the sketch

  2. prosper00 commented on Nov 9, 2024

    @prosper00

    what board? what programmer? (you know the usb port on the 'blue' doesnt actually do anything other than power?)

  3. Murugesh-Hobbyist commented on Nov 10, 2024

    @Murugesh-Hobbyist

    Im using stm8s103f3p6 with ST-LINK V2 please have my settings. tried both V2 and V2.1 in programmer.
    Trying to upload exmaple blink code

    usb
    35
    Screenshot - 10-11-2024 , 07_52_53

  4. prosper00 commented on Nov 10, 2024

    @prosper00

    hmm, looks right to me. Only thing I can think of is that the stlink may be a dud. I've had a few of those knockoff units fail to work with stm8. No idea why, but the quality and consistency is poor. Some have clone chips, some have stm32 variants that don't even (officially) even have USB (STM32F100, iirc).

  5. Murugesh-Hobbyist commented on Nov 10, 2024

    @Murugesh-Hobbyist

    I've encountered an issue while trying to program my STM32 board using an ST-LINK V2. Here’s what I observed:

    Successful Upload but No Execution on STM32:
    The program uploads successfully, and I receive a success message, as shown in the screenshot below. However, the STM32 board doesn’t appear to be running the program after upload (the LED does not blink as expected).

    Screenshot - 10-11-2024 , 09_20_25

    ST-LINK Utility Verification:
    I tested the ST-LINK hardware using the ST-LINK Utility following guidance from tutorials. In this utility, the connection to the STM32 board works well, as shown here:

    Screenshot - 10-11-2024 , 08_51_18

    The ST-LINK Utility is able to erase the flash and verify the program. Additionally, I noticed that when the STM32 board is connected via the utility, uploading through the IDE is blocked, which I assume is expected behavior.

    Multiple Devices Tested:
    I have two ST-LINK V2 devices, an STM32, and two STM8S103F3P6 boards. None of the STM8 boards is uploading, and the STM32 board doesn't run the program even though it’s uploaded.

    Could you please help me troubleshoot why the STM32 isn’t running the uploaded program and offer any insights on what might be preventing it from executing?

  6. prosper00 commented on Nov 10, 2024

    @prosper00

    Theres a lot of possibilities, from missing or bad decoupling or a missing voltage on one of the supply pins. maybe an issue with nRst, or the boot0/boot1 pins... or a firmware issue like a misconfigured clock tree or maybe problems with an interrupt vector, or any of a number of things. all i can really suggest is to look up an stm32cubeide tutorial, maybe a blinkie or something, and follow it closely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions