Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Wio 3G] PB_7 (RXD) cannot be used for Serial #9026

Closed
toyowata opened this Issue Dec 10, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@toyowata
Copy link
Contributor

toyowata commented Dec 10, 2018

Description

The code blow crashed at runtime on Seeed Wio 3G target.

#include "mbed.h"

DigitalOut GrovePower(PB_10, 1); // Grove VDD power enable
Serial device(TXD, RXD, 115200);

int main(void) {
    while (1) {
        wait(0.5);
    }
}

The crash log:

++ MbedOS Error Info ++
Error Status: 0x80010130 Code: 304 Module: 1
Error Message: pinmap not found for peripheral
Location: 0x8000891
Error Value: 0xFFFFFFFF
Current Thread: Id: 0x2000179C Entry: 0x8001EDF StackSize: 0x1000 StackMem: 0x200017E0 SP: 0x200026D8 
For more info, visit: https://armmbed.github.io/mbedos-error/?error=0x80010130
-- MbedOS Error Info --

The TXD and RXD are defined here:

And there is a PB_6 in PinMap_UART_TX structure, but a PB_7 in PinMap_UART_RX is commented out:

{PB_6, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)},

// {PB_7, UART_1, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF7_USART1)}, // (pin used by LED2)

Issue request type

[ ] Question
[ ] Enhancement
[x] Bug

cc @ARMmbed/team-seeed

@ciarmcom

This comment has been minimized.

Copy link
Member

ciarmcom commented Dec 10, 2018

@ciarmcom ciarmcom added the mirrored label Dec 10, 2018

This was referenced Jan 30, 2019

@0xc0170 0xc0170 closed this in a2f1e9c Feb 4, 2019

ytsuboi added a commit to SeeedJP/mbed-os that referenced this issue Feb 4, 2019

[Wio BG96] Modified pin map
* Remove unused Peripheral Pins definitions and add UART_1 TXD/RXD pins (fix ARMmbed#9026)  for the Wio BG96 board
* Remove/Fix unused PinName definitions for the Wio BG96 board from the PinNames enum

adbridge added a commit that referenced this issue Feb 8, 2019

Modified pin map
* Remove unused Peripheral Pins definitions and add UART_1 TXD/RXD pins (fix #9026)  for the Wio 3G board
* Remove/Fix unused PinName definitions for the Wio 3G board from the PinNames enum

adbridge added a commit that referenced this issue Feb 8, 2019

Modified pin map
* Remove unused Peripheral Pins definitions and add UART_1 TXD/RXD pins (fix #9026)  for the Wio BG96 board
* Remove/Fix unused PinName definitions for the Wio BG96 board from the PinNames enum

rajkan01 added a commit to rajkan01/mbed-os that referenced this issue Mar 7, 2019

[Wio 3G] Modified pin map
* Remove unused Peripheral Pins definitions and add UART_1 TXD/RXD pins (fix ARMmbed#9026)  for the Wio 3G board
* Remove/Fix unused PinName definitions for the Wio 3G board from the PinNames enum

rajkan01 added a commit to rajkan01/mbed-os that referenced this issue Mar 7, 2019

[Wio BG96] Modified pin map
* Remove unused Peripheral Pins definitions and add UART_1 TXD/RXD pins (fix ARMmbed#9026)  for the Wio BG96 board
* Remove/Fix unused PinName definitions for the Wio BG96 board from the PinNames enum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.