Skip to main content
Associate
June 22, 2023
Question

startup_stm32l073xx.s: error: A1023E: File could not be opened: No such file or directory

  • June 22, 2023
  • 3 replies
  • 6464 views

I have selected NUCLEO-L073RZ as per our development board specification.

Similarly, I am using the manufacturer specified version below.

I am using STM32CubeMX version 6.0.1.

The Firmware Package Name and Version is STM32Cube MCU Package for STM32L0 1.11.3.

Kail version is uVision V5.29.

When I opened the project in Keil and tried to compile the new, I got following error :

startup_stm32l073xx.s: error: A1023E: File "C:/Users/<user-name>/STM32Cube/Repository/STM32Cube_FW_L0_V1.11.0//Drivers/CMSIS/Device/ST/STM32L0xx/Source/Templates/arm/startup_stm32l073xx.s" could not be opened: No such file or directory

I just verified the directory
I found that the directory was empty, hence the project couldn't compile.

Hence, I have following questions:

Why does the 'C:\Users\<user-name>\STM32Cube\Repository\STM32Cube_FW_L0_V1.11.0\Drivers\CMSIS' show empty?

This topic has been closed for replies.

3 replies

Mike_ST
Technical Moderator
June 22, 2023

Hello,

Firstly, STM32CubeMX version 6.0.1 is quite old, maybe you want to migrate to 6.8.0.

Secondly, it is strange that your project is looking for the CMSIS files in C:/Users/<user-name>/STM32Cube/Repository/STM32Cube_FW_L0_V1.11.0

when you are using STM32Cube MCU Package for STM32L0 1.11.3

it should be C:/Users/<user-name>/STM32Cube/Repository/STM32Cube_FW_L0_V1.11.3

so maybe you want to check whether this path exists as well, and make your project take the files from there.

In any case, with the latest CubeMX 6.8.0 you can still download the V1.1.13 package again if you need.

Hope that helps.

Best regards

sss_jpnAuthor
Associate
June 23, 2023

Hi, Mike_ST

Thank you for your reply.
Attached files are the project manager screen.
The firmware package version is displayed so that we can select either 1.11.0 or 1.11.3, but selecting 1.11.3 will result in an error.

Could you give me some advice on how to deal with it?

Best regards,

sss_jpn

sss_jpnAuthor
Associate
June 29, 2023

Hi, experts.

Can anyone give me advice on my problem?

Best regards

 

Mike_ST
Technical Moderator
June 30, 2023

Hello,

Sorry for late answer,

With STM32CubeMX 6.8.0 (I can't test with 6.0.1, as it is too old)

Click "Help Menu"=>"Check for updates"

Click "Help Menu"=>"Updater settings" and remember the repository folder path

Click "Help Menu"=>"Manage embedded software packages"

Select STM32L0 package version 1.11.3

click "install"

It will download some files.

In the previous repository folder, check that you have the "stm32cube_fw_l0_v1113.zip"
file and the "STM32Cube_FW_L0_V1.11.3" directory.

in the CubeMX open "Project Manager" tab

Don't select "Use latest available version"

Don't select "Use default Firmware Location"

and in "Firmware Relative Path" browse for the location of the "STM32Cube_FW_L0_V1.11.3" directory

Please don't select STM32F0 firmware directory when you are using an STM32L0 product as I see that in one of your pictures.

Hope that helps,

Best regards.