Mbed os cellular example in bluepill

I am testing mbed os cellular example with bluepill and a simcom sim7000e modem. Bluepill flash is 64Kb, 20Kb RAM.
I get lot of errors
> Error: L6406E: No space in execution regions with .ANY selector matching BUILD/NUCLEO_F103RB/ARMC6/mbed-os/rtos/source/TARGET_CORTEX/rtx5/RTX/Source/rtx_thread.o(.text.osRtxMutexObject).
>
> Error: L6406E: No space in execution regions with .ANY selector matching BUILD/NUCLEO_F103RB/ARMC6/mbed-os/rtos/source/TARGET_CORTEX/rtx5/RTX/Source/rtx_thread.o(.text.osRtxThreadId).
>
> Error: L6406E: No space in execution regions with .ANY selector matching BUILD/NUCLEO_F103RB/ARMC6/mbed-os/rtos/source/TARGET_CORTEX/rtx5/RTX/Source/rtx_timer.o(.text.osRtxMessageQueueId).
>
> Error: L6406E: No space in execution regions with .ANY selector matching BUILD/NUCLEO_F103RB/ARMC6/mbed-os/targets/TARGET_STM/TARGET_STM32F1/STM32Cube_FW/STM32F1xx_HAL_Driver/stm32f1xx_hal.o(.text.HAL_MspInit).
>
> Error: L6406E: No space in execution regions with .ANY selector matching BUILD/NUCLEO_F103RB/ARMC6/mbed-os/targets/TARGET_STM/TARGET_STM32F1/STM32Cube_FW/STM32F1xx_HAL_Driver/stm32f1xx_hal_tim.o(.text.HAL_TIM_Base_MspInit).
>
> Error: L6406E: No space in execution regions with .ANY selector matching BUILD/NUCLEO_F103RB/ARMC6/mbed-os/targets/TARGET_STM/TARGET_STM32F1/STM32Cube_FW/STM32F1xx_HAL_Driver/stm32f1xx_hal_uart.o(.text.HAL_UART_MspInit).
>
> Error: L6406E: No space in execution regions with .ANY selector matching BUILD/NUCLEO_F103RB/ARMC6/mbed-os/targets/TARGET_STM/mbed_overrides.o(.text.TargetBSP_Init).
>
> Error: L6406E: No space in execution regions with .ANY selector matching BUILD/NUCLEO_F103RB/ARMC6/mbed-os/features/cellular/framework/AT/AT_CellularInformation.o(.rodata.str1.1).
>
> Error: L6406E: No space in execution regions with .ANY selector matching BUILD/NUCLEO_F103RB/ARMC6/mbed-os/features/cellular/framework/AT/AT_ControlPlane_netif.o(.rodata.str1.1).
>
> Error: L6406E: No space in execution regions with .ANY selector matching BUILD/NUCLEO_F103RB/ARMC6/mbed-os/features/lwipstack/lwip/src/api/lwip_api_msg.o(.rodata.netconn_aborted).
>
> Error: L6406E: No space in execution regions with .ANY selector matching BUILD/NUCLEO_F103RB/ARMC6/mbed-os/features/lwipstack/lwip/src/api/lwip_api_msg.o(.rodata.netconn_reset).
>
> Error: L6406E: No space in execution regions with .ANY selector matching BUILD/NUCLEO_F103RB/ARMC6/mbed-os/features/lwipstack/lwip/src/api/lwip_api_msg.o(.rodata.netconn_closed).
>
> Error: L6406E: No space in execution regions with .ANY selector matching c:\ProgramData\Mbed Studio\mbed-studio-tools\ac6\bin..\lib\libcxx\libcpp_w.l(new.cpp.o)(.rodata._ZSt7nothrow).
>
> Error: L6407E: Sections of aggregate size 0xae1c bytes could not fit into .ANY selector(s).
>
> Not enough information to list the image map.
>
> Finished: 1 information, 1 warning and 1736 error messages.

How to reduce the memory usage.

Hi Hasitha,

Do you need RTOS? One way for greatly reducing memory is by switching to Mbed OS bare metal profile. More information about it can be found here: https://os.mbed.com/docs/mbed-os/v6.1/bare-metal/index.html
I recommend also posting this question in the Mbed OS category on this forum.

Thanks,
Arek - Mbed Studio team

Hi Arek,
In the link you provided it says that cellular is not supported in bare metal profile under connectivity. Can we still use the cellular example with the bare metal profile?