Skip to content

EMBO code version not work #26

Open

Description

@mail87523

I try to compile with stm32cubeide v1.19.0 newest and it compile but when i move comm_data_t* comm_ptr; to comm.c file
and change to extern comm_data_t* comm_ptr; in comm.h file.
After bluepill board is not recognized in EMBO pc software.
When i flash the bluepill with prepared firmware all work fine.

What the issue with code or with compiler ???
Is it code on embo main branch the same with precompiled version Firmware 0.2.4 ???

Activity

  1. msalat commented on Sep 22, 2025

    @msalat

    see #25 (comment) . You need to set -fcommon for the gcc compiler.

  2. mail87523 commented on Sep 22, 2025

    @mail87523
    Author

    where exactly must add -fcommon
    I have add to : Properties → C/C++ Build → Settings → Tool Settings tab → MCU GCC Compiler → Miscellaneous
    but it not help . Compiling wihout error but EMBO softvare show warning popup with msg. serial port opening fail.
    PC has recognized st virtual com port.

  3. changed the title [-]Self compiled version not vork[/-] [+]EMBO code version not work[/+] on Sep 22, 2025
  4. msalat commented on Sep 22, 2025

    @msalat

    just a guess... read somewhere that ram usage is "on upper limit" - perhaps rtos or other does require a few bytes more ... will test with my stm32f303.

  5. msalat commented on Sep 22, 2025

    @msalat

    have the same problem.

    Wrong guess... modified src/firmware/src/cfg/cfg_303re.h from
    #define EM_DAQ_MAX_MEM 44000 to #define EM_DAQ_MAX_MEM 40000 - but that did not help.

    Release build config does not work. Has less include paths than Debug. Tried with Debug build config, but with "debug level: none" - does not help.

    PS: there is also a "debug level" @ MCU GCC Assembler

  6. msalat commented on Sep 22, 2025

    @msalat

    EMBO_F303RE.hex from EMBO_firmware-0.2.4.zip has 70 kB ; self compiled has 173 kB (!).

    Should have cleaned my glasses:

    EMBO_firmware
    -rw-rw-r-- 1 xxx xxx  63628 Okt 19  2021 EMBO_F303RE.bin
    -rw-rw-r-- 1 xxx xxx 179002 Okt 19  2021 EMBO_F303RE.hex
    
  7. mail87523 commented on Sep 23, 2025

    @mail87523
    Author

    Where we can to download exact the same source code and project files of released EMBO_firmware-0.2.4.zip.
    This firmware work with no problem.

  8. mail87523 commented on Sep 23, 2025

    @mail87523
    Author

    I have compared my builded .bin file and EMBO_F103C8.bin from released EMBO_firmware-0.2.4.zip and is significantly different firmwares

  9. msalat commented on Sep 23, 2025

    @msalat
    xxx@nuc:~/EMBO-sw0.1.5/src/firmware/board $ grep -i stm32cube */*.ioc |fgrep 1.
    STM32F103C8/EMBO_F103C8.ioc:ProjectManager.FirmwarePackage=STM32Cube FW_F1 V1.8.3
    STM32F103RE/EMBO_F103RE.ioc:ProjectManager.FirmwarePackage=STM32Cube FW_F1 V1.8.3
    STM32F303RE/EMBO_F303RE.ioc:ProjectManager.FirmwarePackage=STM32Cube FW_F3 V1.11.2
    STM32F401CC/EMBO_F401CC.ioc:ProjectManager.FirmwarePackage=STM32Cube FW_F4 V1.25.2
    STM32G031J6/EMBO_G031J6.ioc:ProjectManager.FirmwarePackage=STM32Cube FW_G0 V1.3.0
    STM32G031K8/EMBO_G031K8.ioc:ProjectManager.FirmwarePackage=STM32Cube FW_G0 V1.3.0
    STM32G431KB/EMBO_G431KB.ioc:ProjectManager.FirmwarePackage=STM32Cube FW_G4 V1.3.0
    STM32L412KB/EMBO_L412KB.ioc:ProjectManager.FirmwarePackage=STM32Cube FW_L4 V1.16.0
    

    Let's try V1.11.2 for STM32F303RE ...

  10. msalat commented on Sep 23, 2025

    @msalat

    STM32CubeIDE v1.11.2 works, but needs -fcommon, too. "Debug" build configuration. Tested connection & oscilloscope with the embo gui (windows). Not exactly the same hex file size as in .zip .

  11. msalat commented on Sep 24, 2025

    @msalat

    STMCubeIDE v1.15.1 does not work. Let's debug...

  12. msalat commented on Sep 24, 2025

    @msalat

    Tried again with v1.19.0.

    Captured while trying to connect:

    Image

    It seems trying to parse SCPI commands.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions