cancel
Showing results for 
Search instead for 
Did you mean: 

how to configurate PB7 and PB6 as RX and TX to see debug message in SubGHz_Phy_PingPong example?

TLi.4
Associate II

Hi,

  I am using demo board "NUCLEO-WL55JC1" to run SubGHz_Phy_PingPong example.

  if I did not change anything, I can see the message, the default usart RX and TX is PA3 and PA2.

123s023:Rx start

125s023:OnRxTimeout

125s025:Master Tx start

125s216:OnTxDone

125s219:Rx start

127s219:OnRxTimeout

127s221:Master Tx start

127s413:OnTxDone

127s416:Rx start

129s416:OnRxTimeout

129s417:Master Tx start

 now I want to configurate PB7 and PB6 to see the message, how do I  do ?

Could you give me some advice , please?

1 ACCEPTED SOLUTION

Accepted Solutions
Mike_ST
ST Employee

Hello,

Please look into usart.c and usart_if.c files and update them to use usart1 instead of usart2.

Change stm32wlxx_it.c as well to add USART 1 IRQ.

View solution in original post

8 REPLIES 8
Mike_ST
ST Employee

Hello,

Please look into usart.c and usart_if.c files and update them to use usart1 instead of usart2.

Change stm32wlxx_it.c as well to add USART 1 IRQ.

TLi.4
Associate II

Hi Mike,

Thanks for your reply.

Is there any manual about how interrupt function is called in stm32wlxx_it.c?

TLi.4
Associate II

Hi Mike,

  I can see the message after configurate PB7 and PB6 now, thanks.

  I have other question:

  I am using demo board "NUCLEO-WL55JC1" to run SubGHz_Phy_PingPong example, I can see some message.

  Can I run this example with a board designed by the STM32WLE5JB MCU?

   I tried, but I can not see any message, I don't know why? (my board is using PB7 and PB6 as RX and TX too.)

   but when I use “..\Examples\DMA\DMA_MUXSYNC\MDK-ARM�? example to run on my board , I can see message, so I am sure the hardware is good.

Messagge as follow:

This example shows how to use the DMA with the DMAMUX to synchronize a transfer with LPTIM1 output signal.

The USART1 is used in DMA synchronized mode to send a countdown from 10 to 00 with a period of 2sec 

Start countdown :

10

09

08

07

06

05

04

03

02

01

00

Example Finished

My board is using PB7 and PB6 as RX and TX too. so I modified PB7 and PB6 as RX and TX in SubGHz_Phy_PingPong example, and I can see

message when I flash firmware to demo board "NUCLEO-WL55JC1",

why do I not see any message when I run SubGHz_Phy_PingPong example on my board ?

Could you give me some advice, please?

Mike_ST
ST Employee

Hello,

Hard to tell.

Check with debugger whether the software is hanging somewhere.

TLi.4
Associate II

Hi Mike,

So the SubGHz_Phy_PingPong single core example can compatible with STM32WLE5JB MCU, right?

I am using the source code from en.stm32cubewl.zip for STM32WLE5JB MCU, is it right?

"Check with debugger whether the software is hanging somewhere."

====Could you tell me how to use debugger, please? any manual?

====Do I need to modify some macro in source code?

On the other hand, I found that:

If I select stm32wle5jb mcu in SubGHz_Phy_PingPong single core example and compile ,then flash fw to NUCLEO-WL55JC1 demo board , it keeps going round and round in follow source code line 1821. Do you know why?

 0693W00000BbEpVQAV.jpg

TLi.4
Associate II

Hi Mike,

My board is working well with SubGHz_Phy_PingPong single core example, I change RCC_RTCCLKSOURCE_LSE to RCC_RTCCLKSOURCE_LSI since my board has no LSE clk.

Thank you all the same.

but I met other problem. when I am using two board(demo board and my board) to test , I always see the messae "OnRxError".

could you give me some advice ,please?

debug message:

1s541:Rx start

RBI_ConfigRFSwitch config = 1

1s617:PRE OK

1s634:HDR OK

1s728:OnRxDone

1s728:RssiValue=-76 dBm, SnrValue=2

RBI_ConfigRFSwitch config = 0

1s730:OnRxError

RBI_ConfigRFSwitch config = 0

PingPong_Process state = 3

1s734:Master Tx start

RBI_ConfigRFSwitch config = 3

1s911:OnTxDone

RBI_ConfigRFSwitch config = 0

PingPong_Process state = 4

1s914:Rx start

RBI_ConfigRFSwitch config = 1

1s991:PRE OK

2s008:HDR OK

2s102:OnRxDone

2s102:RssiValue=-76 dBm, SnrValue=1

RBI_ConfigRFSwitch config = 0

2s104:OnRxError

RBI_ConfigRFSwitch config = 0

PingPong_Process state = 3

2s108:Master Tx start

RBI_ConfigRFSwitch config = 3

2s285:OnTxDone

RBI_ConfigRFSwitch config = 0

PingPong_Process state = 4

2s288:Rx start

RBI_ConfigRFSwitch config = 1

2s365:PRE OK

2s382:HDR OK

2s476:OnRxDone

2s476:RssiValue=-76 dBm, SnrValue=2

RBI_ConfigRFSwitch config = 0

2s478:OnRxError

RBI_ConfigRFSwitch config = 0

Mike_ST
ST Employee

Hello,

please read the readme.txt for the SubGHz_Phy_PingPong project, I understand you need 2 boards to make it work.

Hello Mike,

I know I need two boards to test.

I test SubGHz_Phy_PingPong project between Two demo board(NUCLEO-WL55JC1), working well.

but when I test SubGHz_Phy_PingPong project between demo board(NUCLEO-WL55JC1) and my board, my board displays message as follow:

1s541:Rx start

RBI_ConfigRFSwitch config = 1

1s617:PRE OK

1s634:HDR OK

1s728:OnRxDone

1s728:RssiValue=-76 dBm, SnrValue=2

RBI_ConfigRFSwitch config = 0

1s730:OnRxError

RBI_ConfigRFSwitch config = 0

PingPong_Process state = 3

1s734:Master Tx start

RBI_ConfigRFSwitch config = 3

1s911:OnTxDone

RBI_ConfigRFSwitch config = 0

PingPong_Process state = 4

1s914:Rx start

RBI_ConfigRFSwitch config = 1

1s991:PRE OK

2s008:HDR OK

2s102:OnRxDone

2s102:RssiValue=-76 dBm, SnrValue=1

RBI_ConfigRFSwitch config = 0

2s104:OnRxError

RBI_ConfigRFSwitch config = 0

PingPong_Process state = 3

2s108:Master Tx start

RBI_ConfigRFSwitch config = 3

2s285:OnTxDone

RBI_ConfigRFSwitch config = 0

PingPong_Process state = 4

2s288:Rx start

RBI_ConfigRFSwitch config = 1

2s365:PRE OK

2s382:HDR OK

2s476:OnRxDone

2s476:RssiValue=-76 dBm, SnrValue=2

RBI_ConfigRFSwitch config = 0

2s478:OnRxError

RBI_ConfigRFSwitch config = 0