Mbed OS 2 download

Hello, I try to install Mbed-cli with Mbed 2 but it is not possible to create a new program because Mbed OS 2 is not possible to download. That error appears.
mbed] ERROR: Unknown Error: (128, ‘Download failed!\nPlease try again later.’) Please, what problem is there ?

Looks like the issue has been reported.

Ahoj,

I think that is an old issue
https://os.mbed.com/questions/87257/Is-mbed-OS-2-still-alive/

BR, Jan

Ahoj,

it is pity, because i have a project based on NUCLEO_L011K4 and online compiler does not work good with that board because compiled code is big. I read something about to use .mbedignore but it works only with Mbed-cli.
BR
Peter

Ahoj,
for the online compiler you can try method from this post, I hope it still works.

Edit: Now I am at home, I tried that and without successful. Probably not working.

BR, Jan

Hi Jan,

maybe I do not understand how to do it. I created .mbedignore file on my laptop with

mbed-os/rtos/*
mbed-os/features/cellular/
mbed-os/features/FEATURE_UVISOR/*
mbed-os/features/frameworks/greentea-client/*
mbed-os/features/frameworks/mbed-client-randlib/*
mbed-os/features/frameworks/mbed-coap/*
mbed-os/features/frameworks/unity/*
mbed-os/features/frameworks/utest/*
mbed-os/features/nanostack/*
mbed-os/features/netsocket/*
mbed-os/features/nvstore/*
mbed-os/features/storage/*
mbed-os/features/device_key/*

then i dragged that file to online compiler but it does not work.
Snímka obrazovky 2019-12-30 o 12.50.18

Hi Peter,
Thank you for reporting this!
I believe this issue is related to the fact that also trying to manually download the library from https://os.mbed.com/users/mbed_official/code/mbed/ also results in a 404 error.
We are looking into this, however due to the holidays it might take longer than usual.
Regards,
Mbed Support
Ron

Hi Ron,

thanks a lot for your reply. I am waiting for fix.
BR
Peter

Hello Peter,

You can still “download” the mbed library sources, although only for the selected target board:

  • In the online compiler create a new mbed program by selecting a “mbed” template (for example blinky) rather than a mbed-os one. When asked give it a name you like.

  • Select your target board. For example NUCLEO-L011K4.

  • Export your new program (right-click and select “Export Program”) for “Make-GCC-ARM” and save it to your PC.

  • Extract the zip file and navigate to the program’s folder.

  • Open a command window there and issue the following command:

    mbed new .
    

Then compile as usual:

mbed compile -m NUCLEO_L011K4

Hello Zoltan,

I am not sure if I understand well how to do it. I tried that but there missing some dependencies and tools and those is not possible to download.

I’m sorry, I have tested the suggested procedure only with a NUCLEO_F103RB and it worked. However, for a NUCLEO_L011K4 the online compiler offers exporting only to a “ZIP Archive” (Make-GCC-ARM is not available). Although the mbed os 2 source files are included the target is supported only by the commercial ARM MICRO toolchain. So we cannot use ARM GCC free tools for offline compilation :frowning:

D:\src\arm\app\mbed-cli\Nucleo_blink_led_L011K4>mbed compile -m NUCLEO_L011K4
[mbed] Working path "D:\src\arm\app\mbed-cli\Nucleo_blink_led_L011K4" (program)

Could not compile for NUCLEO_L011K4: Target NUCLEO_L011K4 is not supported by toolchain GCC_ARM

I tried the procedure with LPC1768, unfortunately it didn’t work either.

PS D:\mbed-dev\temp\os-2-test> mbed new .
[mbed] Working path "D:\mbed-dev\temp\os-2-test" (program)
[mbed] ERROR: A program with name "os-2-test" already exists.
---
PS D:\mbed-dev\temp\os-2-test> mbed compile -m LPC1768
[mbed] Working path "D:\mbed-dev\temp\os-2-test" (program)
[mbed] ERROR: The mbed tools were not found in "D:\mbed-dev\temp\os-2-test".
       You can run "mbed deploy" to install dependencies and tools.

Hi @bibibo
I believe we have fixed the issue of downloading Mbed-os2 using mbed-cli
Please confirm
Regards,
Mbed OS support
Ron

Hi Ron,

thanks. Now download of Mbed-OS2 works without problem.
but i have a second problem because i cannot what kind of toolchain to use for NUCLEO-L011K4. GCC_ARM does not support that NUCLEO.

Hi Peter,
As you can see here the only supported toolchain is uARM ( ARM micro )
Regards

Hi Ron,

i am not sure if i understand well. That Nucleo supports uARM. Does it mean a micro ARM compiler (executable bin file) is needed ?

Hi Ron,
now i use ARM Compiler 5 and it seems to be okay but i found out that Mbed-OS2 was not downloaded completely . E.g. missing file mbed.h and missing folders drivers, platform, hal and some target.

Hi Ron,

I do not know what problem there is. I added missing folders, files but there are still lot of errors during compilation.

C:\Users\peto\STM>mbed compile -v
[mbed] Working path “C:\Users\peto\STM” (program)
[mbed] Exec “C:\Python27\python.exe -u C:\Users\peto\STM.temp\tools\make.py -t ARM -m NUCLEO_L011K4 --source . --build .\BUILD\NUCLEO_L011K4\ARM -v” in “C:\Users\peto\STM”
Using targets from C:\Users\peto\STM\mbed\65be27845400\targets.json
Building project STM (NUCLEO_L011K4, ARM)
Scan: STM
Macros: -DDEVICE_I2C_ASYNCH=1 -D__MBED__=1 -DDEVICE_I2CSLAVE=1 -DTOOLCHAIN_ARM_MICRO -DDEVICE_PORTOUT=1 -DDEVICE_PORTINOUT=1 -D__MBED_CMSIS_RTOS_CM -DDEVICE_RTC=1 -D__CMSIS_RTOS -DMBED_BUILD_TIMESTAMP=1578513894.08 -DDEVICE_USTICKER=1 -DDEVICE_CRC=1 -DTARGET_CORTEX_M -DTARGET_M0P -DTARGET_STM32L0 -D__CORTEX_M0PLUS -DARM_MATH_CM0PLUS -DDEVICE_SPI_ASYNCH=1 -DDEVICE_LPTICKER=1 -DDEVICE_SERIAL=1 -DDEVICE_INTERRUPTIN=1 -DTARGET_CORTEX -DDEVICE_I2C=1 -DTRANSACTION_QUEUE_SIZE_SPI=2 -DTARGET_NUCLEO_L011K4 -DDEVICE_STDIO_MESSAGES=1 -DTARGET_FAMILY_STM32 -DTARGET_FF_ARDUINO -DTARGET_RELEASE -DTARGET_STM -DDEVICE_SERIAL_FC=1 -DTARGET_LIKE_MBED -DDEVICE_PORTIN=1 -DDEVICE_SLEEP=1 -DDEVICE_SPI=1 -DDEVICE_SPISLAVE=1 -DDEVICE_ANALOGIN=1 -DDEVICE_PWMOUT=1 -DDEVICE_FLASH=1 -DTARGET_STM32L011K4 -DTOOLCHAIN_ARM -DTARGET_LIKE_CORTEX_M0
Compile [100.0%]: main.c
Compile: C:\Keil_v5\ARM\ARMCC\bin\armcc -c --gnu -Otime --split_sections --apcs=interwork --brief_diagnostics --restrict --multibyte_chars -O3 -DMBED_RTOS_SINGLE_THREAD -D__MICROLIB --library_type=microlib --cpu=Cortex-M0 --md --no_depend_system_headers --c99 -D__ASSERT_MSG -DDEVICE_I2C_ASYNCH=1 -D__MBED__=1 -DDEVICE_I2CSLAVE=1 -DTOOLCHAIN_ARM_MICRO -DDEVICE_PORTOUT=1 -DDEVICE_PORTINOUT=1 -D__MBED_CMSIS_RTOS_CM -DDEVICE_RTC=1 -D__CMSIS_RTOS -DMBED_BUILD_TIMESTAMP=1578513894.08 -DDEVICE_USTICKER=1 -DDEVICE_CRC=1 -DTARGET_CORTEX_M -DTARGET_M0P -DTARGET_STM32L0 -D__CORTEX_M0PLUS -DARM_MATH_CM0PLUS -DDEVICE_SPI_ASYNCH=1 -DDEVICE_LPTICKER=1 -DDEVICE_SERIAL=1 -DDEVICE_INTERRUPTIN=1 -DTARGET_CORTEX -DDEVICE_I2C=1 -DTRANSACTION_QUEUE_SIZE_SPI=2 -DTARGET_NUCLEO_L011K4 -DDEVICE_STDIO_MESSAGES=1 -DTARGET_FAMILY_STM32 -DTARGET_FF_ARDUINO -DTARGET_RELEASE -DTARGET_STM -DDEVICE_SERIAL_FC=1 -DTARGET_LIKE_MBED -DDEVICE_PORTIN=1 -DDEVICE_SLEEP=1 -DDEVICE_SPI=1 -DDEVICE_SPISLAVE=1 -DDEVICE_ANALOGIN=1 -DDEVICE_PWMOUT=1 -DDEVICE_FLASH=1 -DTARGET_STM32L011K4 -DTOOLCHAIN_ARM -DTARGET_LIKE_CORTEX_M0 --preinclude=.\BUILD\NUCLEO_L011K4\ARM\mbed_config.h --via .\BUILD\NUCLEO_L011K4\ARM.includes_b70a1fa953bb34cafac05ceb2bc48527.txt --depend BUILD\NUCLEO_L011K4\ARM\main.d -o BUILD\NUCLEO_L011K4\ARM\main.o .\main.c
[Error] DigitalIn.h@24,0: #20: identifier “namespace” is undefined
[Error] DigitalIn.h@24,0: #65: expected a “;”
[Warning] DigitalIn.h@72,0: #12-D: parsing restarts here after previous syntax error
[Error] DigitalIn.h@73,0: #169: expected a declaration
[Warning] DigitalIn.h@119,0: #12-D: parsing restarts here after previous syntax error
[Error] DigitalIn.h@120,0: #169: expected a declaration
[Error] DigitalIn.h@122,0: #169: expected a declaration
[Warning] DigitalOut.h@67,0: #12-D: parsing restarts here after previous syntax error
[Error] DigitalOut.h@68,0: #169: expected a declaration
[Warning] DigitalOut.h@136,0: #12-D: parsing restarts here after previous syntax error
[Error] DigitalOut.h@137,0: #169: expected a declaration
[Error] DigitalOut.h@139,0: #169: expected a declaration
[Warning] DigitalInOut.h@153,0: #12-D: parsing restarts here after previous syntax error
[Error] DigitalInOut.h@154,0: #169: expected a declaration
[Error] DigitalInOut.h@156,0: #169: expected a declaration
[Warning] NonCopyable.h@207,0: #12-D: parsing restarts here after previous syntax error
[Error] NonCopyable.h@209,0: #169: expected a declaration
[Warning] PlatformMutex.h@55,0: #12-D: parsing restarts here after previous syntax error
[Error] BusIn.h@24,0: #20: identifier “namespace” is undefined
[Error] BusIn.h@24,0: #65: expected a “;”
[Warning] BusIn.h@63,0: #12-D: parsing restarts here after previous syntax error
[Warning] BusIn.h@70,0: #77-D: this declaration has no storage class or type specifier
[Warning] BusIn.h@72,0: #77-D: this declaration has no storage class or type specifier
[Error] BusIn.h@72,0: #65: expected a “;”
[Warning] BusIn.h@79,0: #1295-D: Deprecated declaration read - give arg types
[Error] BusIn.h@96,0: #20: identifier “nc_mask" is undefined
[Warning] BusIn.h@102,0: #77-D: this declaration has no storage class or type specifier
[Error] BusIn.h@102,0: #65: expected a “;”
[Warning] BusIn.h@107,0: #77-D: this declaration has no storage class or type specifier
[Error] BusIn.h@107,0: #65: expected a “;”
[Warning] BusIn.h@109,0: #77-D: this declaration has no storage class or type specifier
[Error] BusIn.h@109,0: #65: expected a “;”
[Error] BusIn.h@118,0: #20: identifier “PlatformMutex” is undefined
[Warning] BusIn.h@120,0: #77-D: this declaration has no storage class or type specifier
[Error] BusIn.h@120,0: #65: expected a “;”
[Warning] BusIn.h@122,0: #77-D: this declaration has no storage class or type specifier
[Error] BusIn.h@122,0: #65: expected a “;”
[Error] BusIn.h@123,0: #169: expected a declaration
[Error] BusIn.h@125,0: #169: expected a declaration
[Warning] BusOut.h@61,0: #12-D: parsing restarts here after previous syntax error
[Warning] BusOut.h@67,0: #77-D: this declaration has no storage class or type specifier
[Warning] BusOut.h@69,0: #77-D: this declaration has no storage class or type specifier
[Error] BusOut.h@69,0: #65: expected a “;”
[Error] BusOut.h@75,0: #147: declaration is incompatible with “ssize_t write(int, const void *, size_t)” (declared at line 523 of “./mbed/65be27845400/platform/mbed_retarget.h”)
[Warning] BusOut.h@82,0: #1295-D: Deprecated declaration read - give arg types
[Error] BusOut.h@90,0: #247: function “mask” has already been defined
[Warning] BusOut.h@99,0: #77-D: this declaration has no storage class or type specifier
[Error] BusOut.h@99,0: #147: declaration is incompatible with “int BusOut(PinName *)” (declared at line 67)
[Error] BusOut.h@99,0: #65: expected a “;”
[Warning] BusOut.h@100,0: #77-D: this declaration has no storage class or type specifier
[Error] BusOut.h@100,0: #65: expected a “;”
[Warning] BusOut.h@105,0: #77-D: this declaration has no storage class or type specifier
[Error] BusOut.h@105,0: #65: expected a “;”
[DEBUG] Return: 1
[DEBUG] Output: “./mbed/65be27845400/drivers/DigitalIn.h”, line 24: Error: #20: identifier “namespace” is undefined
[DEBUG] Output: “./mbed/65be27845400/drivers/DigitalIn.h”, line 24: Error: #65: expected a “;”
[DEBUG] Output: “./mbed/65be27845400/drivers/DigitalIn.h”, line 72: Warning: #12-D: parsing restarts here after previous syntax error
[DEBUG] Output: “./mbed/65be27845400/drivers/DigitalIn.h”, line 73: Error: #169: expected a declaration
[DEBUG] Output: “./mbed/65be27845400/drivers/DigitalIn.h”, line 119: Warning: #12-D: parsing restarts here after previous syntax error
[DEBUG] Output: “./mbed/65be27845400/drivers/DigitalIn.h”, line 120: Error: #169: expected a declaration
[DEBUG] Output: “./mbed/65be27845400/drivers/DigitalIn.h”, line 122: Error: #169: expected a declaration
[DEBUG] Output: “./mbed/65be27845400/drivers/DigitalOut.h”, line 67: Warning: #12-D: parsing restarts here after previous syntax error
[DEBUG] Output: “./mbed/65be27845400/drivers/DigitalOut.h”, line 68: Error: #169: expected a declaration
[DEBUG] Output: “./mbed/65be27845400/drivers/DigitalOut.h”, line 136: Warning: #12-D: parsing restarts here after previous syntax error
[DEBUG] Output: “./mbed/65be27845400/drivers/DigitalOut.h”, line 137: Error: #169: expected a declaration
[DEBUG] Output: “./mbed/65be27845400/drivers/DigitalOut.h”, line 139: Error: #169: expected a declaration
[DEBUG] Output: “./mbed/65be27845400/drivers/DigitalInOut.h”, line 153: Warning: #12-D: parsing restarts here after previous syntax error
[DEBUG] Output: “./mbed/65be27845400/drivers/DigitalInOut.h”, line 154: Error: #169: expected a declaration
[DEBUG] Output: “./mbed/65be27845400/drivers/DigitalInOut.h”, line 156: Error: #169: expected a declaration
[DEBUG] Output: “./mbed/65be27845400/platform/NonCopyable.h”, line 207: Warning: #12-D: parsing restarts here after previous syntax error
[DEBUG] Output: “./mbed/65be27845400/platform/NonCopyable.h”, line 209: Error: #169: expected a declaration
[DEBUG] Output: “./mbed/65be27845400/platform/PlatformMutex.h”, line 55: Warning: #12-D: parsing restarts here after previous syntax error
[DEBUG] Output: “./mbed/65be27845400/drivers/BusIn.h”, line 24: Error: #20: identifier “namespace” is undefined
[DEBUG] Output: “./mbed/65be27845400/drivers/BusIn.h”, line 24: Error: #65: expected a “;”
[DEBUG] Output: “./mbed/65be27845400/drivers/BusIn.h”, line 63: Warning: #12-D: parsing restarts here after previous syntax error
[DEBUG] Output: “./mbed/65be27845400/drivers/BusIn.h”, line 70: Warning: #77-D: this declaration has no storage class or type specifier
[DEBUG] Output: “./mbed/65be27845400/drivers/BusIn.h”, line 72: Warning: #77-D: this declaration has no storage class or type specifier
[DEBUG] Output: “./mbed/65be27845400/drivers/BusIn.h”, line 72: Error: #65: expected a “;”
[DEBUG] Output: “./mbed/65be27845400/drivers/BusIn.h”, line 79: Warning: #1295-D: Deprecated declaration read - give arg types
[DEBUG] Output: “./mbed/65be27845400/drivers/BusIn.h”, line 96: Error: #20: identifier “nc_mask" is undefined
[DEBUG] Output: “./mbed/65be27845400/drivers/BusIn.h”, line 102: Warning: #77-D: this declaration has no storage class or type specifier
[DEBUG] Output: “./mbed/65be27845400/drivers/BusIn.h”, line 102: Error: #65: expected a “;”
[DEBUG] Output: “./mbed/65be27845400/drivers/BusIn.h”, line 107: Warning: #77-D: this declaration has no storage class or type specifier
[DEBUG] Output: “./mbed/65be27845400/drivers/BusIn.h”, line 107: Error: #65: expected a “;”
[DEBUG] Output: “./mbed/65be27845400/drivers/BusIn.h”, line 109: Warning: #77-D: this declaration has no storage class or type specifier
[DEBUG] Output: “./mbed/65be27845400/drivers/BusIn.h”, line 109: Error: #65: expected a “;”
[DEBUG] Output: “./mbed/65be27845400/drivers/BusIn.h”, line 118: Error: #20: identifier “PlatformMutex” is undefined
[DEBUG] Output: “./mbed/65be27845400/drivers/BusIn.h”, line 120: Warning: #77-D: this declaration has no storage class or type specifier
[DEBUG] Output: “./mbed/65be27845400/drivers/BusIn.h”, line 120: Error: #65: expected a “;”
[DEBUG] Output: “./mbed/65be27845400/drivers/BusIn.h”, line 122: Warning: #77-D: this declaration has no storage class or type specifier
[DEBUG] Output: “./mbed/65be27845400/drivers/BusIn.h”, line 122: Error: #65: expected a “;”
[DEBUG] Output: “./mbed/65be27845400/drivers/BusIn.h”, line 123: Error: #169: expected a declaration
[DEBUG] Output: “./mbed/65be27845400/drivers/BusIn.h”, line 125: Error: #169: expected a declaration
[DEBUG] Output: “./mbed/65be27845400/drivers/BusOut.h”, line 61: Warning: #12-D: parsing restarts here after previous syntax error
[DEBUG] Output: “./mbed/65be27845400/drivers/BusOut.h”, line 67: Warning: #77-D: this declaration has no storage class or type specifier
[DEBUG] Output: “./mbed/65be27845400/drivers/BusOut.h”, line 69: Warning: #77-D: this declaration has no storage class or type specifier
[DEBUG] Output: “./mbed/65be27845400/drivers/BusOut.h”, line 69: Error: #65: expected a “;”
[DEBUG] Output: “./mbed/65be27845400/drivers/BusOut.h”, line 75: Error: #147: declaration is incompatible with “ssize_t write(int, const void *, size_t)” (declared at line 523 of “./mbed/65be27845400/platform/mbed_retarget.h”)
[DEBUG] Output: “./mbed/65be27845400/drivers/BusOut.h”, line 82: Warning: #1295-D: Deprecated declaration read - give arg types
[DEBUG] Output: “./mbed/65be27845400/drivers/BusOut.h”, line 90: Error: #247: function “mask” has already been defined
[DEBUG] Output: “./mbed/65be27845400/drivers/BusOut.h”, line 99: Warning: #77-D: this declaration has no storage class or type specifier
[DEBUG] Output: “./mbed/65be27845400/drivers/BusOut.h”, line 99: Error: #147: declaration is incompatible with “int BusOut(PinName *)” (declared at line 67)
[DEBUG] Output: “./mbed/65be27845400/drivers/BusOut.h”, line 99: Error: #65: expected a “;”
[DEBUG] Output: “./mbed/65be27845400/drivers/BusOut.h”, line 100: Warning: #77-D: this declaration has no storage class or type specifier
[DEBUG] Output: “./mbed/65be27845400/drivers/BusOut.h”, line 100: Error: #65: expected a “;”
[DEBUG] Output: “./mbed/65be27845400/drivers/BusOut.h”, line 105: Warning: #77-D: this declaration has no storage class or type specifier
[DEBUG] Output: “./mbed/65be27845400/drivers/BusOut.h”, line 105: Error: #65: expected a “;”
[DEBUG] Output: .\main.c: 23 warnings, 30 errors
Traceback (most recent call last):
File “C:\Users\peto\STM.temp\tools\make.py”, line 293, in
ignore=options.ignore
File “C:\Users\peto\STM.temp\tools\build_api.py”, line 575, in build_project
objects = toolchain.compile_sources(resources, sorted(resources.get_file_paths(FileType.INC_DIR)))
File "C:\Users\peto\STM.temp\tools\toolchains_init
.py”, line 413, in compile_sources
return self.compile_seq(queue, objects)
File "C:\Users\peto\STM.temp\tools\toolchains_init
.py”, line 427, in compile_seq
res[‘command’]
File “C:\Users\peto\STM.temp\tools\toolchains_init_.py”, line 583, in compile_output
raise ToolException(_stderr)
ToolException: “./mbed/65be27845400/drivers/DigitalIn.h”, line 24: Error: #20: identifier “namespace” is undefined
“./mbed/65be27845400/drivers/DigitalIn.h”, line 24: Error: #65: expected a “;”
“./mbed/65be27845400/drivers/DigitalIn.h”, line 72: Warning: #12-D: parsing restarts here after previous syntax error
“./mbed/65be27845400/drivers/DigitalIn.h”, line 73: Error: #169: expected a declaration
“./mbed/65be27845400/drivers/DigitalIn.h”, line 119: Warning: #12-D: parsing restarts here after previous syntax error
“./mbed/65be27845400/drivers/DigitalIn.h”, line 120: Error: #169: expected a declaration
“./mbed/65be27845400/drivers/DigitalIn.h”, line 122: Error: #169: expected a declaration
“./mbed/65be27845400/drivers/DigitalOut.h”, line 67: Warning: #12-D: parsing restarts here after previous syntax error
“./mbed/65be27845400/drivers/DigitalOut.h”, line 68: Error: #169: expected a declaration
“./mbed/65be27845400/drivers/DigitalOut.h”, line 136: Warning: #12-D: parsing restarts here after previous syntax error
“./mbed/65be27845400/drivers/DigitalOut.h”, line 137: Error: #169: expected a declaration
“./mbed/65be27845400/drivers/DigitalOut.h”, line 139: Error: #169: expected a declaration
“./mbed/65be27845400/drivers/DigitalInOut.h”, line 153: Warning: #12-D: parsing restarts here after previous syntax error
“./mbed/65be27845400/drivers/DigitalInOut.h”, line 154: Error: #169: expected a declaration
“./mbed/65be27845400/drivers/DigitalInOut.h”, line 156: Error: #169: expected a declaration
“./mbed/65be27845400/platform/NonCopyable.h”, line 207: Warning: #12-D: parsing restarts here after previous syntax error
“./mbed/65be27845400/platform/NonCopyable.h”, line 209: Error: #169: expected a declaration
“./mbed/65be27845400/platform/PlatformMutex.h”, line 55: Warning: #12-D: parsing restarts here after previous syntax error
“./mbed/65be27845400/drivers/BusIn.h”, line 24: Error: #20: identifier “namespace” is undefined
“./mbed/65be27845400/drivers/BusIn.h”, line 24: Error: #65: expected a “;”
“./mbed/65be27845400/drivers/BusIn.h”, line 63: Warning: #12-D: parsing restarts here after previous syntax error
“./mbed/65be27845400/drivers/BusIn.h”, line 70: Warning: #77-D: this declaration has no storage class or type specifier
“./mbed/65be27845400/drivers/BusIn.h”, line 72: Warning: #77-D: this declaration has no storage class or type specifier
“./mbed/65be27845400/drivers/BusIn.h”, line 72: Error: #65: expected a “;”
“./mbed/65be27845400/drivers/BusIn.h”, line 79: Warning: #1295-D: Deprecated declaration read - give arg types
“./mbed/65be27845400/drivers/BusIn.h”, line 96: Error: #20: identifier “_nc_mask” is undefined
“./mbed/65be27845400/drivers/BusIn.h”, line 102: Warning: #77-D: this declaration has no storage class or type specifier
“./mbed/65be27845400/drivers/BusIn.h”, line 102: Error: #65: expected a “;”
“./mbed/65be27845400/drivers/BusIn.h”, line 107: Warning: #77-D: this declaration has no storage class or type specifier
“./mbed/65be27845400/drivers/BusIn.h”, line 107: Error: #65: expected a “;”
“./mbed/65be27845400/drivers/BusIn.h”, line 109: Warning: #77-D: this declaration has no storage class or type specifier
“./mbed/65be27845400/drivers/BusIn.h”, line 109: Error: #65: expected a “;”
“./mbed/65be27845400/drivers/BusIn.h”, line 118: Error: #20: identifier “PlatformMutex” is undefined
“./mbed/65be27845400/drivers/BusIn.h”, line 120: Warning: #77-D: this declaration has no storage class or type specifier
“./mbed/65be27845400/drivers/BusIn.h”, line 120: Error: #65: expected a “;”
“./mbed/65be27845400/drivers/BusIn.h”, line 122: Warning: #77-D: this declaration has no storage class or type specifier
“./mbed/65be27845400/drivers/BusIn.h”, line 122: Error: #65: expected a “;”
“./mbed/65be27845400/drivers/BusIn.h”, line 123: Error: #169: expected a declaration
“./mbed/65be27845400/drivers/BusIn.h”, line 125: Error: #169: expected a declaration
“./mbed/65be27845400/drivers/BusOut.h”, line 61: Warning: #12-D: parsing restarts here after previous syntax error
“./mbed/65be27845400/drivers/BusOut.h”, line 67: Warning: #77-D: this declaration has no storage class or type specifier
“./mbed/65be27845400/drivers/BusOut.h”, line 69: Warning: #77-D: this declaration has no storage class or type specifier
“./mbed/65be27845400/drivers/BusOut.h”, line 69: Error: #65: expected a “;”
“./mbed/65be27845400/drivers/BusOut.h”, line 75: Error: #147: declaration is incompatible with “ssize_t write(int, const void *, size_t)” (declared at line 523 of “./mbed/65be27845400/platform/mbed_retarget.h”)
“./mbed/65be27845400/drivers/BusOut.h”, line 82: Warning: #1295-D: Deprecated declaration read - give arg types
“./mbed/65be27845400/drivers/BusOut.h”, line 90: Error: #247: function “mask” has already been defined
“./mbed/65be27845400/drivers/BusOut.h”, line 99: Warning: #77-D: this declaration has no storage class or type specifier
“./mbed/65be27845400/drivers/BusOut.h”, line 99: Error: #147: declaration is incompatible with “int BusOut(PinName *)” (declared at line 67)
“./mbed/65be27845400/drivers/BusOut.h”, line 99: Error: #65: expected a “;”
“./mbed/65be27845400/drivers/BusOut.h”, line 100: Warning: #77-D: this declaration has no storage class or type specifier
“./mbed/65be27845400/drivers/BusOut.h”, line 100: Error: #65: expected a “;”
“./mbed/65be27845400/drivers/BusOut.h”, line 105: Warning: #77-D: this declaration has no storage class or type specifier
“./mbed/65be27845400/drivers/BusOut.h”, line 105: Error: #65: expected a “;”

I renamed main.c to main.cpp and I got the other different errors.

C:\Users\peto\STM>mbed compile -v
[mbed] Working path “C:\Users\peto\STM” (program)
[mbed] Exec “C:\Python27\python.exe -u C:\Users\peto\STM.temp\tools\make.py -t ARM -m NUCLEO_L011K4 --source . --build .\BUILD\NUCLEO_L011K4\ARM -v” in “C:\Users\peto\STM”
Using targets from C:\Users\peto\STM\mbed\65be27845400\targets.json
Building project STM (NUCLEO_L011K4, ARM)
Scan: STM
Macros: -DDEVICE_I2C_ASYNCH=1 -D__MBED__=1 -DDEVICE_I2CSLAVE=1 -DTOOLCHAIN_ARM_MICRO -DDEVICE_PORTOUT=1 -DDEVICE_PORTINOUT=1 -D__MBED_CMSIS_RTOS_CM -DMBED_BUILD_TIMESTAMP=1578517326.08 -D__CMSIS_RTOS -D__CORTEX_M0PLUS -DDEVICE_USTICKER=1 -DDEVICE_CRC=1 -DTARGET_CORTEX_M -DTARGET_M0P -DTARGET_STM32L0 -DARM_MATH_CM0PLUS -DDEVICE_SPI_ASYNCH=1 -DDEVICE_LPTICKER=1 -DDEVICE_SERIAL=1 -DDEVICE_INTERRUPTIN=1 -DTARGET_CORTEX -DDEVICE_I2C=1 -DTRANSACTION_QUEUE_SIZE_SPI=2 -DTARGET_NUCLEO_L011K4 -DDEVICE_STDIO_MESSAGES=1 -DTARGET_FAMILY_STM32 -DTARGET_FF_ARDUINO -DTARGET_RELEASE -DTARGET_STM -DDEVICE_SERIAL_FC=1 -DDEVICE_FLASH=1 -DTARGET_LIKE_MBED -DDEVICE_PORTIN=1 -DDEVICE_SLEEP=1 -DDEVICE_SPI=1 -DDEVICE_SPISLAVE=1 -DDEVICE_ANALOGIN=1 -DDEVICE_PWMOUT=1 -DDEVICE_RTC=1 -DTARGET_STM32L011K4 -DTOOLCHAIN_ARM -DTARGET_LIKE_CORTEX_M0
Link: STM
Link: C:\Keil_v5\ARM\ARMCC\bin\armlink --via .\BUILD\NUCLEO_L011K4\ARM.link_options.txt
[DEBUG] Return: 1
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/serial_device.o(i.serial_putc).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching BUILD/NUCLEO_L011K4/ARM/main.o(i.main).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_gpio.o)(i.gpio_init_out).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mf_p.l(cdrcmple.o)(.text).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(llsshr.o)(.text).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_retarget.o(i._ZN12DirectSerial5writeEPKvj).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/stm32l0xx_hal_tim.o(i.HAL_TIM_OC_Start).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/us_ticker.o(i.us_ticker_fire_interrupt).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_critical.o)(i.core_util_critical_section_exit).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(memcpya.o)(.text).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(memseta.o)(.text).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_ticker_api.o)(i.ticker_read_us).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(llushr.o)(.text).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/gpio_api.o(i.gpio_dir).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_overrides.o(i.mbed_sdk_init).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/stm32l0xx_hal.o(i.HAL_Init).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/stm32l0xx_hal_rcc.o(i.HAL_RCC_GetPCLK1Freq).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/stm32l0xx_hal_rcc.o(i.HAL_RCC_GetPCLK2Freq).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/us_ticker.o(i.us_ticker_set_interrupt).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching BUILD/NUCLEO_L011K4/ARM/main.o(i.__sti___8_main_cpp_myled).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_us_ticker_api.o)(.constdata).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(FilePath.o)(i._ZN4mbed8FilePath10fileSystemEv).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(FilePath.o)(i._ZN4mbed8FilePath4fileEv).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_assert.o)(i.mbed_assert_internal).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_critical_section_api.o)(i.hal_critical_section_enter).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(initio_oe.o)(.text).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(llshl.o)(.text).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(strspn.o)(.text).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(printfa.o)(i._printf_post_padding).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(cpp_init.o)(.text).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_board.o(i.mbed_error_puts).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_ticker_api.o)(i.ticker_read).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_wait_api_no_rtos.o)(i.wait_us).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_sdk_boot.o(i.mbed_copy_nvic).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/serial_api.o(i.debug).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/serial_api.o(i.serial_writable).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/startup_stm32l011xx.o(.text).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/us_ticker.o(i.us_ticker_free).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/us_ticker.o(i.us_ticker_init).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(strcmp.o)(.text).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(memcmp.o)(.text).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/system_stm32l0xx.o(.constdata).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/stm32l0xx_hal_tim.o(i.HAL_TIM_Base_Start).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_us_ticker_api.o)(i.us_ticker_irq_handler).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(FilePath.o)(i._ZN4mbed8FilePath6isFileEv).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(fflush_f.o)(i._fflush$full).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(printfa.o)(i.__0vfprintf).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_board.o(i.__ARM_common_memcpy1_5).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(printfa.o)(i._snputc).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_retarget.o(.constdata__ZZNK12SingletonPtrI13PlatformMutexE3getEvEs).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/us_ticker.o(i.us_ticker_disable_interrupt).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/us_ticker.o(i.us_ticker_clear_interrupt).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/gpio_api.o(i.gpio_mode).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(strlen.o)(.text).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_sdk_boot.o(i.$Sub$$main).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/us_ticker.o(i.us_ticker_read).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_critical.o)(i.core_util_are_interrupts_enabled).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_critical.o)(i.core_util_is_isr_active).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/hal_tick_overrides.o(i.HAL_InitTick).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(FilePath.o)(i._ZN4mbed8FilePath6existsEv).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/system_stm32l0xx.o(.constdata).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/us_ticker.o(i.us_ticker_get_info).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/us_ticker.o(.constdata).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_us_ticker_api.o)(i.get_us_ticker_data).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_us_ticker_api.o)(.constdata).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(errno.o)(i.__aeabi_errno_addr).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_retarget.o(i._ZN12DirectSerial4seekEli).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_board.o(.constdata).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_fault_handler.o(.constdata).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_retarget.o(i._ZN4mbed21mbed_override_consoleEi).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_retarget.o(i._ZN4mbed28mbed_target_override_consoleEi).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_retarget.o(i.__aeabi_atexit).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_retarget.o(i._ZN4mbed10FileHandle4syncEv).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching BUILD/NUCLEO_L011K4/ARM/main.o(.init_array).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(FilePath.o)(i._ZN4mbed8FilePath8fileNameEv).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(FileBase.o)(i.ZN4mbed8FileBase11getPathTypeEv).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_retarget.o(i.ZN12DirectSerialD1Ev).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_sdk_boot.o(i.mbed_main).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/stm32l0xx_hal.o(i.HAL_MspInit).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/stm32l0xx_hal_tim.o(i.HAL_TIM_Base_MspInit).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/stm32l0xx_hal_uart.o(i.HAL_UART_MspInit).
[DEBUG] Errors: Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(iusefp.o)(.text).
[DEBUG] Errors: Error: L6407E: Sections of aggregate size 0x720 bytes could not fit into .ANY selector(s).
[DEBUG] Errors: Not enough information to list the image map.
[DEBUG] Errors: Finished: 1 information, 0 warning and 83 error messages.
Traceback (most recent call last):
File “C:\Users\peto\STM.temp\tools\make.py”, line 293, in
ignore=options.ignore
File “C:\Users\peto\STM.temp\tools\build_api.py”, line 600, in build_project
res, _ = toolchain.link_program(resources, build_path, name)
File "C:\Users\peto\STM.temp\tools\toolchains_init
.py", line 633, in link_program
self.link(elf, objects, libraries, lib_dirs, linker_script)
File “C:\Users\peto\STM.temp\tools\hooks.py”, line 34, in wrapper
res = function(t_self, *args, **kwargs)
File “C:\Users\peto\STM.temp\tools\toolchains\arm.py”, line 294, in link
self.default_cmd(cmd)
File "C:\Users\peto\STM.temp\tools\toolchains_init
.py", line 662, in default_cmd
raise ToolException(_stderr)
ToolException: Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/serial_device.o(i.serial_putc).
Error: L6406E: No space in execution regions with .ANY selector matching BUILD/NUCLEO_L011K4/ARM/main.o(i.main).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_gpio.o)(i.gpio_init_out).
Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mf_p.l(cdrcmple.o)(.text).
Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(llsshr.o)(.text).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_retarget.o(i._ZN12DirectSerial5writeEPKvj).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/stm32l0xx_hal_tim.o(i.HAL_TIM_OC_Start).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/us_ticker.o(i.us_ticker_fire_interrupt).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_critical.o)(i.core_util_critical_section_exit).
Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(memcpya.o)(.text).
Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(memseta.o)(.text).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_ticker_api.o)(i.ticker_read_us).
Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(llushr.o)(.text).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/gpio_api.o(i.gpio_dir).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_overrides.o(i.mbed_sdk_init).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/stm32l0xx_hal.o(i.HAL_Init).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/stm32l0xx_hal_rcc.o(i.HAL_RCC_GetPCLK1Freq).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/stm32l0xx_hal_rcc.o(i.HAL_RCC_GetPCLK2Freq).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/us_ticker.o(i.us_ticker_set_interrupt).
Error: L6406E: No space in execution regions with .ANY selector matching BUILD/NUCLEO_L011K4/ARM/main.o(i.__sti___8_main_cpp_myled).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_us_ticker_api.o)(.constdata).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(FilePath.o)(i._ZN4mbed8FilePath10fileSystemEv).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(FilePath.o)(i._ZN4mbed8FilePath4fileEv).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_assert.o)(i.mbed_assert_internal).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_critical_section_api.o)(i.hal_critical_section_enter).
Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(initio_oe.o)(.text).
Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(llshl.o)(.text).
Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(strspn.o)(.text).
Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(printfa.o)(i._printf_post_padding).
Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(cpp_init.o)(.text).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_board.o(i.mbed_error_puts).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_ticker_api.o)(i.ticker_read).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_wait_api_no_rtos.o)(i.wait_us).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_sdk_boot.o(i.mbed_copy_nvic).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/serial_api.o(i.debug).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/serial_api.o(i.serial_writable).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/startup_stm32l011xx.o(.text).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/us_ticker.o(i.us_ticker_free).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/us_ticker.o(i.us_ticker_init).
Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(strcmp.o)(.text).
Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(memcmp.o)(.text).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/system_stm32l0xx.o(.constdata).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/stm32l0xx_hal_tim.o(i.HAL_TIM_Base_Start).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_us_ticker_api.o)(i.us_ticker_irq_handler).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(FilePath.o)(i._ZN4mbed8FilePath6isFileEv).
Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(fflush_f.o)(i._fflush$full).
Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(printfa.o)(i.__0vfprintf).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_board.o(i.__ARM_common_memcpy1_5).
Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(printfa.o)(i._snputc).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_retarget.o(.constdata__ZZNK12SingletonPtrI13PlatformMutexE3getEvEs).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/us_ticker.o(i.us_ticker_disable_interrupt).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/us_ticker.o(i.us_ticker_clear_interrupt).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/gpio_api.o(i.gpio_mode).
Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(strlen.o)(.text).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_sdk_boot.o(i.$Sub$$main).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/us_ticker.o(i.us_ticker_read).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_critical.o)(i.core_util_are_interrupts_enabled).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_critical.o)(i.core_util_is_isr_active).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/hal_tick_overrides.o(i.HAL_InitTick).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(FilePath.o)(i._ZN4mbed8FilePath6existsEv).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/system_stm32l0xx.o(.constdata).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/us_ticker.o(i.us_ticker_get_info).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/us_ticker.o(.constdata).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_us_ticker_api.o)(i.get_us_ticker_data).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(mbed_us_ticker_api.o)(.constdata).
Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(errno.o)(i.__aeabi_errno_addr).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_retarget.o(i._ZN12DirectSerial4seekEli).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_board.o(.constdata).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_fault_handler.o(.constdata).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_retarget.o(i._ZN4mbed21mbed_override_consoleEi).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_retarget.o(i._ZN4mbed28mbed_target_override_consoleEi).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_retarget.o(i.__aeabi_atexit).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_retarget.o(i._ZN4mbed10FileHandle4syncEv).
Error: L6406E: No space in execution regions with .ANY selector matching BUILD/NUCLEO_L011K4/ARM/main.o(.init_array).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(FilePath.o)(i._ZN4mbed8FilePath8fileNameEv).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed.ar(FileBase.o)(i._ZN4mbed8FileBase11getPathTypeEv).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_retarget.o(i._ZN12DirectSerialD1Ev).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/mbed_sdk_boot.o(i.mbed_main).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/stm32l0xx_hal.o(i.HAL_MspInit).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/stm32l0xx_hal_tim.o(i.HAL_TIM_Base_MspInit).
Error: L6406E: No space in execution regions with .ANY selector matching ./mbed/65be27845400/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/stm32l0xx_hal_uart.o(i.HAL_UART_MspInit).
Error: L6406E: No space in execution regions with .ANY selector matching C:\Keil_v5\ARM\ARMCC\bin..\lib\armlib\mc_p.l(iusefp.o)(.text).
Error: L6407E: Sections of aggregate size 0x720 bytes could not fit into .ANY selector(s).
Not enough information to list the image map.
Finished: 1 information, 0 warning and 83 error messages.

[mbed] ERROR: “C:\Python27\python.exe” returned error.
Code: 1
Path: “C:\Users\peto\STM”
Command: “C:\Python27\python.exe -u C:\Users\peto\STM.temp\tools\make.py -t ARM -m NUCLEO_L011K4 --source . --build .\BUILD\NUCLEO_L011K4\ARM -v”
Tip: You could retry the last command with “-v” flag for verbose output

The downloading issue seems fixed. I was able to use revision e95d10626187 to create and compile a new arch_max based project.

However, revision #65be27845400 is missing mbed.h file therefore throws error when building by mbed-cli, and I had problems when trying to download revision #3a7713b1edbc

[mbed] Updating library "mbed" to rev #3a7713b1edbc
[mbed] Downloading library build "3a7713b1edbc" (might take a while)
[mbed] ERROR: OS Error: The process cannot access the file because it is being used by another process