Skip to main content
MSatt.4
Associate II
Mar 28, 2023 10:32 AM UTC
Solved

Phy_802_15_4_Cli commands not working as expected on custom board

I cannot get the Phy_802_15_4_Cli example project working on our custom board (as part of certification). Seems like there is something wrong with the CM0 / CPU2 core, but I have no idea what the return codes mean.

Only things I have changed in the example project are:

  • UART parameters
    • Using LPUART1 as CLI interface instead
    • Enabled the relevant clocks
  • CFG_DEBUG_TRACE = 0
  • CFG_FULL_LOW_POWER = 0
  • CFG_LPM_SUPPORTED = 0
  • CFG_LED_SUPPORTED = 0
  • CFG_BUTTON_SUPPORTED = 0
  • Changed the various GPIO pin mappings
    • GPIO_TX_PIN
    • GPIO_HARD_FAULT_PIN
    • GPIO_MCO_PIN

I need to get this to work with CubeMonitorRF, but it is also running into the same issues.

=================================
(STM32WB55) RF 802_15_4 LLDs test
=================================
Trace is de-activated
 M0 FW Type : 802.15.4 and radio PHY validation CLI (v1.16.0) for Target WB55
 802.15.4 driver version : v2.2.0
 HW/system info : CUT 2.1 - Dev ID 0x00000495 - Package info 0x0A - UID64 0x0186C461 0x0080E126
802.15.4 valid cli > InitLLD
Execute command : InitLLD
Re-init lld on channel 15
Result:[128]
802.15.4 valid cli > RX_start
Execute command : RX_start
 !! Error during ip802154_lld_setDefaultState() in ip802154_CLI_Init() : 0x92
RX started. Waiting `RX_stop' cmd
802.15.4 valid cli >

 Could someone please help me out and get this working properly? Thanks.

This topic has been closed for replies.
MSatt.4
MSatt.4Best answer
Associate II
Mar 29, 2023 2:16 AM UTC

Well woke up this morning and reflashed everything just to try and... it's working :face_with_steam_from_nose:

I think the "Start wireless stack" was the cause of it, but I definitely did this yesterday... maybe something went wrong unnoticed.

2 replies

MSatt.4
MSatt.4Author
Associate II
Mar 28, 2023 11:09 AM UTC

There is more info available through the traces output...

ip802154_lld_radioInit() FAILED 1 : 0x62
ip802154_lld_init() FAILED 4 : 0x62

I used the debugger to inspect this as I cannot attach the UART on this board easily.

This happens before any commands are sent in the CLI.

MSatt.4
MSatt.4AuthorBest answer
Associate II
Mar 29, 2023 2:16 AM UTC

Well woke up this morning and reflashed everything just to try and... it's working :face_with_steam_from_nose:

I think the "Start wireless stack" was the cause of it, but I definitely did this yesterday... maybe something went wrong unnoticed.