cancel
Showing results for 
Search instead for 
Did you mean: 

How to fix error 2?

Vlaty.1
Senior

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

16 REPLIES 16
TDK
Guru

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".
OK пт, 28 ма�? 2021 г. в 15:50, ST Community :
Vlaty.1
Senior

ok0693W00000BZW3zQAH.png

Houda GHABRI
ST Employee

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
Senior

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.

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 :
Houda GHABRI
ST Employee

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
Senior

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.

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

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