Skip to main content
Vlaty.1
Associate III
May 28, 2021
Question

How to fix error 2?

  • May 28, 2021
  • 16 replies
  • 4617 views

Good afternoon. I made a working project on CubeIDE for a railway timetable (LWIP, FreeRTOS, DSI, HDMI). The project was created in the repository. But the management has a requirement to add a symbolic part (JPG or bmp image). There was a problem when docking the JPEG part to the project (Error 2). How do I remove the problem? With respect. Alexander

0693W00000AQ923QAD.png

This topic has been closed for replies.

16 replies

TDK
May 28, 2021

Switch to the Console tab to find out more information about the error.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Vlaty.1
Vlaty.1Author
Associate III
May 28, 2021
OK пт, 28 ма�? 2021 г. в 15:50, ST Community :
Vlaty.1
Vlaty.1Author
Associate III
May 28, 2021

ok0693W00000BZW3zQAH.png

Andrew Neil
Super User
June 3, 2021

Have you tried doing a 'Clean' first before 'Build' ?

Please copy & paste the Console output as text - so we can see it all

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Houda GHABRI
ST Employee
May 31, 2021

Hi @Vlaty.1​ ,

Can you please give more details :

  • Which CubeIDE version are you using? Do you have the same issue with STM32CubeMX standalone?
  • You start the project from the board ,right? When you load STM32F769I-DISC1 board you select to initialize all peripherals or you configure it manually?
  • If possible , can you please send me the ioc?

Houda

Vlaty.1
Vlaty.1Author
Associate III
June 1, 2021
Good afternoon, Houda I found a problem in LWIP. Cubeide searches for lwip/apps/fs.h". There is no such file in the apps directory. But when compiling, CubeIDE finds it. But if the project is in the repository. If the project is rendered as an example of this file, CubeIDE does not find it. He's not there. :grinning_face: With respect, Alexander. пн, 31 ма�? 2021 г. в 13:53, ST Community :
Vlaty.1
Vlaty.1Author
Associate III
May 31, 2021

Good afternoon, Houda. No, unfortunately, this project only exists in the repository. I haven't been able to put it together separately yet. When I try to build this project separately, I have problems. I'm using CubeIDE version 1.6, 1. I only initialize the necessary interfaces. The working version of the project in the attachment. This is an example of Lwip_HTTP_Server_Netconn_RTOS from STM32F769 Discovery. I'm working with external DSI-HDMI board. Sincerely, Alexander.

Houda GHABRI
ST Employee
June 2, 2021

Hi Alexander,

Let me be sure that we test the same scenario, I test two scenario :

  • I load the LwIP_HTTP_Server8netconn_RTOS example in STM32F769I_Discovery from STM32CubeIDE
  • I load STM32F769I_Discovery board with initialized peripherals then activate LWIP from STM32CubeIDE

For both case I didn't find a compilation error

arm-none-eabi-gcc "C:/Users/xx/STM32CubeIDE/workspace_***/LwIP_HTTP_Server_Netconn_RTOS/SW4STM32/syscalls.c" 

arm-none-eabi-gcc -o "STM32F769I_DISCOVERY.elf" @"objects.list"  -mcpu=cortex-m7 -T"../STM32F769NIHx_FLASH.ld"

text   data   bss   dec   hex filename

136324   188  82980 219492  35964 STM32F769I_DISCOVERY.elf

Finished building: default.size.stdout

Finished building: STM32F769I_DISCOVERY.bin

Finished building: STM32F769I_DISCOVERY.list

11:12:46 Build Finished. 0 errors, 0 warnings. (took 22s.798ms)

Can you please tell me if your use case is different?

Houda

Vlaty.1
Vlaty.1Author
Associate III
June 3, 2021

Good afternoon, Houda. The problem occurs when attaching a jpg part to the project. This situation can be replicated with CubeMX. If you add a JPEG part to the FreeRTOS and LWIP project(http available!!!), respectfully. Alexander.

Vlaty.1
Vlaty.1Author
Associate III
June 3, 2021

Good afternoon. I created an empty project in CubeMX. LWIP, FreeRtos. After that, I added http. I send you the result with the project.0693W00000BZzLdQAL.png

Andrew Neil
Super User
June 7, 2021

So which part of "Please copy & paste the Console output as text" did you not understand?

So now I have to break out the image editor, and go through the forum's image upload palaver ...

0693W00000BaFczQAF.pngIt's telling you that it can't find any file called 'fsdata_custom.c'

So the obvious first question is: do you actually have an 'fsdata_custom.c' file anywhere in your project?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Vlaty.1
Vlaty.1Author
Associate III
June 3, 2021

Good afternoon. I created an empty project in CubeMX. LWIP, FreeRtos. After that, I added http. I send you the result with the project.

Vlaty.1
Vlaty.1Author
Associate III
June 7, 2021

Good afternoon. I ran CubeMX version 6.0.1. I activated JPEG, FREERTOS, LIBJPEG,LWIP.

I started the code generation. Then I ran the compiler from CubeIDE. After that, there are no errors in the project.

Next, I activated the LWIP HTTP option in CubeMX. Then I started generating the code. Then I ran the

compiler again from CubeIDE. After that, I got error 2. Sincerely, Alexander.0693W00000BaERHQA3.png

Vlaty.1
Vlaty.1Author
Associate III
June 7, 2021

The 'fsdata_custom. c' file is present in the project.0693W00000BaFnsQAF.png