embassy icon indicating copy to clipboard operation
embassy copied to clipboard

STM32WB5x wpan examples don't seem to work

Open DeppLearning opened this issue 11 months ago • 2 comments

I'm trying to run the stm32wb mac_ffd example on my NUCLEO-WB55RG board but get stuck here. I followed the instructions in the comments and was able to "Start Wireless Stack" eventually in Stm32 Cube Programmer. I am missing the teleprobe tool, so I used the commented line above, maybe that is an issue?

This is the log output

0.000000 TRACE BDCR ok: 00008113
└─ embassy_stm32::rcc::bd::{impl#3}::init @ /home/me/git/embassy/embassy-stm32/src/fmt.rs:117
0.000000 DEBUG rcc: Clocks { hclk1: Some(Hertz(64000000)), hclk3: Some(Hertz(64000000)), hse: Some(Hertz(32000000)), hsi: None, hsi48: Some(Hertz(48000000)), lse: None, lsi: None, msi: None, pclk1: Some(Hertz(64000000)), pclk1_tim: Some(Hertz(64000000)), pclk2: Some(Hertz(64000000)), pclk2_tim: Some(Hertz(64000000)), pll1_p: Some(Hertz(64000000)), pll1_q: Some(Hertz(48000000)), pllsai1_p: None, pllsai1_q: None, pllsai1_r: None, rtc: Some(Hertz(32768)), sai1_extclk: None, sys: Some(Hertz(64000000)) }
└─ embassy_stm32::rcc::set_freqs @ /home/me/git/embassy/embassy-stm32/src/fmt.rs:130
0.000000 INFO  Hello World!
└─ mac_ffd::____embassy_main_task::{async_fn#0} @ src/bin/mac_ffd.rs:55
0.000122 TRACE ipcc: ch 1: wait for rx occupied
└─ embassy_stm32::ipcc::{impl#2}::receive::{async_fn#0} @ /home/me/git/embassy/embassy-stm32/src/fmt.rs:117
0.003387 TRACE ipcc: ch 1: read data
└─ embassy_stm32::ipcc::{impl#2}::receive::{async_fn#0} @ /home/me/git/embassy/embassy-stm32/src/fmt.rs:117
0.003417 INFO  sys event: [0, 146, 0]
└─ mac_ffd::____embassy_main_task::{async_fn#0} @ src/bin/mac_ffd.rs:63
0.003479 TRACE ipcc: ch 1: send data
└─ embassy_stm32::ipcc::{impl#2}::send::{async_fn#0} @ /home/me/git/embassy/embassy-stm32/src/fmt.rs:117
0.003540 TRACE ipcc: ch 1: wait for tx free
└─ embassy_stm32::ipcc::{impl#2}::flush::{async_fn#0} @ /home/me/git/embassy/embassy-stm32/src/fmt.rs:117
0.003601 TRACE ipcc: ch 3: send data
└─ embassy_stm32::ipcc::{impl#2}::send::{async_fn#0} @ /home/me/git/embassy/embassy-stm32/src/fmt.rs:117

This is my memory.x file:

/* Change this as required for your MCU */

MEMORY
{
  /* NOTE 1 K = 1 KiBi = 1024 bytes */
  FLASH : ORIGIN = 0x08000000, LENGTH = 256K 
  RAM : ORIGIN = 0x20000000, LENGTH = 64K
}

I guess instead of LENGTH = 256K, I should use 226K but changing that didn't get me any other results.

I get similar results from running the other examples. Of the radio ones, only the tl_mbox example finishes successfully. I also tried following the flashing procedure described in the release-notes file mentioned in the comments (which is slightly different) of the embassy examples, but got the same results. Any ideas what I'm doing wrong? I am new to IEEE 802.15.4 and STM32 so I might have missed sth very obvious.

Edit: I tried an older commit (8b36a32ed5d834b23e970d5b723dd7df1f1c94a2), from around the time these examples where last updated and that seems to do the trick

DeppLearning avatar Mar 11 '24 12:03 DeppLearning