Mbed-os: REALTEK_RTL8195AM - LEDs not mapped

Created on 3 Dec 2017  路  13Comments  路  Source: ARMmbed/mbed-os

Description

  • Type: Bug
  • Related Issue: #abc

Bug

Version information
(mbed ls)

mbed-os-example-blinky (5e5c7ad85122)
`- mbed-os (2e1c2a1cdf16)

Environment details
Describe against which environment you are testing.
Compiler & other relevant tools - version information.

ARM_GCC coming with MBed CLI 0.43 version.

Expected Behavior

LED would blink.

Actual Behavior

No blinking.

Steps to Reproduce

  1. git clone [email protected]:ARMmbed/mbed-os-example-blinky.git
  2. mbed compile -m REALTEK_RTL8195AM -t GCC_ARM
  3. flash board (depending on your OS choice)

Is the LED1 definition broken somehow? The board definitely has multiple LEDs.

@Archcady @tung7970

Actually, the TARGET file explains a lot;

TARGET_AMEBA/TARGET_RTL8195A/PinNames.h:    /* LED1~4 are defined as alias of GPIO pins, they are not the LEDs on board*/
TARGET_AMEBA/TARGET_RTL8195A/PinNames.h:    LED1        = PB_4,
TARGET_AMEBA/TARGET_RTL8195A/PinNames.h:    LED2        = PB_5,
TARGET_AMEBA/TARGET_RTL8195A/PinNames.h:    LED3        = PB_6,
TARGET_AMEBA/TARGET_RTL8195A/PinNames.h:    LED4        = PB_7,

Is there any special reason why none of the board LEDs are not mapped to the user side?

realtek bug

All 13 comments

Interestingly enough, if you add prints to mbed-os-example-blinky, the board will then blink. Seems the LED D5 (rightmost LED if you look from the USB to the antenna) is mapped somehow to serial?

@ARMmbed/team-realtek

Hi @JanneKiiskila,

The LEDs on board are used by CMSIS-DAP as well as power indicator. There is no LED connected to RTL8195A chip.

Should this be documented - https://os.mbed.com/platforms/Realtek-RTL8195AM/ ? I assumed this was already captured as known-limitation of the board.

There are no LED's conncted to AMEBA , they are all used by the DAP only and are not user programmable. I shall update this on the platform page. Usually we test the arduino blinky example by connecting an external LED, the same can be updated for the mbed-os-blinky example. Any other suggestions regarding this?

Updated platform page under the "warning section"

I think the mbed-os-example-blinky docs should be updated, too.
Need to tweak my mbed-os-example-client PR as well to highlight this.

Is there any need for modifying pinnames.h?

I don't think, we just need to now document how you have tested the blinky, i.e. to which pins do you connect the LED.

Please connect LED with GPIOB_4 (INT/PWM0) and GND. The pin can be found in the diagram of "RTL8195AM pinout (right)" in https://os.mbed.com/platforms/Realtek-RTL8195AM/

I have updated the platform page with an Example on how to connect LED to the RTL8195AM

I have updated the platform page with an Example on how to connect LED to the RTL8195AM

This is now resolved

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  4Comments

1domen1 picture 1domen1  路  3Comments

DuyTrandeLion picture DuyTrandeLion  路  3Comments

toyowata picture toyowata  路  4Comments

bulislaw picture bulislaw  路  3Comments