Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Build fail for STM32 B-L75E sample_azure_iot_embedded_sdk #36

Description

@kae-made

I'm tring https://github.com/azure-rtos/samples/releases/download/v6.2_rel/Azure_RTOS_6.2_STM32L4+-DISCO_STM32CubeIDE_Samples_2022_11_30.zip.
I've worked according to Azure_RTOS_STM32L4+-DISCO_Azure_IoT_Embedded_SDK_For_STM32CubeIDE.pdf.
This document describe that

The sample project can also run on STM32L475-DISCO IoT Node with just a
few configurations:

  1. Right click on active sample project, select Properties > C / C++ Build

Settings. In Tool Settings tab, change the linker file to
common_hardware_code / STM32L475VGTX_FLASH.ld

The board I'm using STM32 B-L475E so I do this selection and build.
But build error occurs.

09:45:02 **** Incremental Build of configuration Debug for project sample_azure_iot_embedded_sdk ****
make -j8 all 
arm-none-eabi-gcc -o "sample_azure_iot_embedded_sdk.elf" @"objects.list"  -lnetxduo -lthreadx -lstm32l4xx_lib -mcpu=cortex-m4 -T"C:\demo\Azure_RTOS_6.2_STM32L4+-DISCO_STM32CubeIDE_Samples_2022_11_30\b-l4s5i-iot01a\stm32cubeide\common_hardware_code\STM32L475VGTX_FLASH.ld" --specs=nosys.specs -Wl,-Map="sample_azure_iot_embedded_sdk.map" -Wl,--gc-sections -static -L../../threadx/Debug -L../../netxduo/Debug -L../../stm32l4xx_lib/Debug --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
c:\st\stm32cubeide_1.12.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: sample_azure_iot_embedded_sdk.elf section `.bss' will not fit in region `RAM'
c:\st\stm32cubeide_1.12.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: region `RAM' overflowed by 22632 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:63: sample_azure_iot_embedded_sdk.elf] Error 1
"make -j8 all" terminated with exit code 2. Build might be incomplete.

09:45:05 Build Failed. 3 errors, 0 warnings. (took 3s.421ms)

When I select STM32L4SSVITX_FLASH.ld, this build success.
Please let me know how to fix this problem.

Activity

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

Metadata

Metadata

Assignees

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