Skip to content

Problem with compilation on STM32CUBEIDE #1

Description

@nahuelfb

Hello, nice project. I'm working on something similar with the BG95. I'm trying to compile your code on stm32cubeide, but I'm getting some errors. The first error is the following, the compiler cannot find the BS_Encrypt.exe file:

        arm-none-eabi-size  stm32-aws-iot.elf 
        arm-none-eabi-objdump -h -S stm32-aws-iot.elf  > "stm32-aws-iot.list"
        arm-none-eabi-objcopy  -O binary stm32-aws-iot.elf  "stm32-aws-iot.bin"
           text	   data	    bss	    dec	    hex	filename
         112736	    944	  75864	 189544	  2e468	stm32-aws-iot.elf
        Finished building: default.size.stdout
         
        Finished building: stm32-aws-iot.bin
         
        Finished building: stm32-aws-iot.list
         
        /BS_Encrypt.exe stm32-aws-iot
        make[1]: /BS_Encrypt.exe: No such file or directory
        make[1]: *** [makefile:97: post-build] Error 127
        make: *** [makefile:65: all] Error 2
        "make -j8 all" terminated with exit code 2. Build might be incomplete.

I updated the path in the .cproject file, the compiler found the BS_Explorer.exe file and this is the result:

        arm-none-eabi-size  stm32-aws-iot.elf 
        arm-none-eabi-objdump -h -S stm32-aws-iot.elf  > "stm32-aws-iot.list"
           text	   data	    bss	    dec	    hex	filename
         112736	    944	  75864	 189544	  2e468	stm32-aws-iot.elf
        arm-none-eabi-objcopy  -O binary stm32-aws-iot.elf  "stm32-aws-iot.bin"
        Finished building: default.size.stdout
         
        Finished building: stm32-aws-iot.bin
         
        Finished building: stm32-aws-iot.list
         
        ../BS_Encrypt.exe stm32-aws-iot
        ../BS_Encrypt.exe: 1: MZ������@������: not found
        ../BS_Encrypt.exe: 1: P: not found
        ../BS_Encrypt.exe: 1: �.rdata�������@: not found
        ../BS_Encrypt.exe: 2: �
        �l�f�����������0������@@�����P���R��: not found
        ../BS_Encrypt.exe: 1: =������D$���$��8*�����H�����獴: not found
        ../BS_Encrypt.exe: 1: =��tI=�����=��u��D$���$���: not found
        ../BS_Encrypt.exe: 1: 1���������: not found
        ../BS_Encrypt.exe: 3: ��@0@.bssp���0�.idata�������@0�.CRT������@0�.tls: not found
        ../BS_Encrypt.exe: 5: Syntax error: ")" unexpected
        make[1]: *** [makefile:97: post-build] Error 2
        make: *** [makefile:65: all] Error 2
        "make -j8 all" terminated with exit code 2. Build might be incomplete.

How can i compile the code? What did I overlook?
And, what is the file BS_Encrypt.exe file?
Thank you!

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