cancel
Showing results for 
Search instead for 
Did you mean: 

NUCLEO-F743ZI FreeRTOS LWIp Problem

Michele G
Associate
Posted on April 19, 2018 at 17:12

I'm using CubeMx 4.25.0 to generate the basic configuration for NUCLEO-F743ZI board.

STM32 MCU Package for STM32H7 1.20 installed. 

Default settings are used, FREERTOS and LWIP flags are enabled sys timebase source set to TIM1

as suggested by CubeMx. 

Project files are generated for SW4STM32 IDE.

When project is built and debugger is started the default application ends inside 'Default_Handler infinte Loop' after SCB_CleanInvalidateDCache inside LWIp initialization.

MX_LWIP_Init() ---- netif_add() ----low_level_init() which create the ethernetif_input() thread that uses ethernetif_input() ---- low_level_input() ---- SCB_CleanInvalidateDCache() 

which causes the unexpected interrupt.

setting __DCACHE_PRESENT in ''stm32h743xx.h' to 0 renders the 

SCB_CleanInvalidateDCache() call ineffective but 

the HAL_ETH_transmit()  funciton now return a HAL_ETH_ERROR_DMA when checking if((heth->Instance->DMACSR & ETH_DMACSR_FBE) != (uint32_t)RESET)

I've attached the generated project code to replicate the problem

Anyone has the same issue? 

#stm32h7 #lwip #nucleo-f743zi
3 REPLIES 3
Joerg Wagner
Senior III
Posted on April 28, 2018 at 23:35

Hi.

Please change the RAM section in your linker script file.

You are using DTCMRAM, which will not work.

There are a bunch of answered questions with this topic.

Please search for NUCLEO-H743, the H7 is a new family

and different to F7 devices.

Joerg Wagner
Senior III
Posted on May 01, 2018 at 11:18

 
ranran
Senior II

Hello,

Please note that latest examples in stm32cubeh7 still contains this bug.

I hope it is planned to be fixed soon.

Thanks