Why USART1 cannot act as stdio port

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
wowu_1723141
Level 2
Level 2
Welcome!

Hi, BRCM experts,

I am now trying port Wiced-3.1.1 on my STM32F407 board with BCM43341, by adding my own WICED-SDK-3.1.1/platforms/MY43341/platform.c, and would like use USART1 as stdio port, but looks like it is not works. I tracked the code, it trapped into wiced_init() and never turns back. But if I use USART6 as stdio port, it works fine, my app runs without any problem. Any suggestion?

Thanks!

0 Likes
1 Solution

Hi, jone,

I referenced to ./BCM943362WCD6/platform.c, and modified mine, it works now.

Thanks!

B. Regds

Wolfman

View solution in original post

0 Likes
7 Replies
JoYi_1844281
Level 6
Level 6
100 sign-ins 100 replies posted 50 likes received

Post your schematic and attached your platform files to forum!

0 Likes
lock attach
Attachments are accessible only for community members.

Hi, jone,

As the attached.

Thanks!

B. Regds

Wolfman

0 Likes

According your platform files.

There are missing configuration ISR and DMA ISR for usart1!

There are some EVB is used STM32F4x7 all is work well for usart1!

0 Likes

Hi, jone,

I referenced to ./BCM943362WCD6/platform.c, and modified mine, it works now.

Thanks!

B. Regds

Wolfman

0 Likes

Great!

0 Likes
Anonymous
Not applicable

Hi wolfman​ and jone

Can you just elaborate on the settings required on UART1 so as to work as STDIO using STM32f4 Discovery board.

I cannot use UART6(Port G) as there are no pinouts on the discovery board. I tried using UART2 and it works well. But I want it to work on UART1.

Kindly give hint on the appropriate settings for platform.c

Thanks in advance.

0 Likes
JoYi_1844281
Level 6
Level 6
100 sign-ins 100 replies posted 50 likes received

Which pin you used as USART1 ?

if used PA9/PA10 as tx/rx USART1 , you should do some H/W modified on the trace PA9/PA10 ! Otherwise the USART1 could not output any thing!

remove the 4.7uF capacitor on the trace PA9!