Skip to main content
Associate
August 22, 2025
Solved

cannot import and build STSW-IOM001

  • August 22, 2025
  • 4 replies
  • 573 views

Hello,

I bought a NUCLEO-F401RE and the STEVAL-IOM001V1 evaluation board to experiment with the IO-Link protocol. I’m having trouble importing STSW-IOM001 into my project. According to the documentation, it’s supposed to be opened in SW4STM32, which is an older tool. I’ve followed all the instructions I could find for importing it into STM32CubeIDE, but nothing has worked. Do you have any suggestions?

Best answer by KDJEM.1

Hello @MOTREN ,

 

To solve this issue, I suggest that you add this instruction under main.c:

__attribute__((weak)) void _close(void){} 
__attribute__((weak)) void _lseek(void){} 
__attribute__((weak)) void _read(void){} 
__attribute__((weak)) void _write(void){}

 

Please let me know if the issue is solved or not?

Thank you.

Kaouthar

4 replies

AScha.3
Super User
August 22, 2025

Hi,

did you try the P-NUCLEO-IOM01M1 ? 

"If you feel a post has answered your question, please click ""Accept as Solution""."
MOTRENAuthor
Associate
August 22, 2025

I haven’t tried it, but it seems to run with the NUCLEO-F446RE board

 

AScha.3
Super User
August 22, 2025

And what about the ->

AScha3_0-1755884307074.png

You tried to use it ?

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
KDJEM.1
Technical Moderator
August 27, 2025

Hello @MOTREN and welcome to the community;

 

Thank you for bringing this issue to our attention.

I reported internally.

Could you try using an older version of STM32CubeIDE such as 1.11.0 or 1.16.0?

KDJEM1_0-1756284645296.png

Internal ticket number: 216360 (This is an internal tracking number and is not accessible or usable by customers).

 

Thank you.

Kaouthar 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
KDJEM.1
KDJEM.1Best answer
Technical Moderator
August 28, 2025

Hello @MOTREN ,

 

To solve this issue, I suggest that you add this instruction under main.c:

__attribute__((weak)) void _close(void){} 
__attribute__((weak)) void _lseek(void){} 
__attribute__((weak)) void _read(void){} 
__attribute__((weak)) void _write(void){}

 

Please let me know if the issue is solved or not?

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
KDJEM.1
Technical Moderator
September 12, 2025

Hello @MOTREN ;

 

Is your issue solved?

If yes, please click on Accept as Solution on the reply which solved your issue.

 

Thank you.

Kaouthar 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.