Skip to content

STM32 EMAC: Ethernet driver initialisation fails in DISCO_F769NI  #12577

@artokin

Description

@artokin

Description of defect

STM ethernet driver initialisation fails in DISCO_F769NI and therefore the driver can't be used.

The error happens when fix #12567 is placed on top of Mbed OS master. The driver was working before PR #12464 was merged.

The error log "HAL_ETH_Init issue" inficates the problem in the trace output:

[DBG ][core]: Allocate Root Tasklet
[DBG ][6lo ]: P.Init
[DBG ][core]: NS Root task Init
[DBG ][sck ]: Socket Tasklet Generated
[DBG ][mlme]: SW-MAC driver support rf extension 250000 symbol/seconds 4 us symbol time length
[INFO][brro]: NET_IPV6_BOOTSTRAP_AUTONOMOUS
[INFO][app ]: Using EMAC backhaul driver...
[INFO][STE1]: power_up
[INFO][STE1]: PHY Addr 0 AutoNegotiation 1
[DBG ][STE1]: MAC Addr 00:80:e1:2d:00:3e
[INFO][STE1]: ETH buffers : 4 Rx 4 Tx
[ERR ][STE1]: HAL_ETH_Init issue
[ERR ][app ]: Backhaul driver init failed, retval = -3012
[DBG ][brro]: Create Mesh Interface

Target(s) affected by this defect ?

DISCO_F769NI

Toolchain(s) (name and version) displaying this defect ?

GCC_ARM, ARM, IAR

What version of Mbed-os are you using (tag or sha) ?

e71ab0d

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

mbed-cli 1.10.2

How is this defect reproduced ?

  • Clone [email protected]:ARMmbed/nanostack-border-router.git
  • Change Mbed OS to master
  • Cherry-pick PR STM32 EMAC : increase thread size when mbed-trace is enabled #12567 on top of Mbed OS
  • Build nanostack-border-router application for DISCO_F769NI using S2868A1 radio using command: mbed compile -t GCC_ARM -m DISCO_F769NI -j 0 --app-config ./configs/Wisun_Stm_s2lp_RF.json --profile debug
  • Start tracing the application
  • Observe the trace output, the log indicates error in the EMAC driver initialization

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions