Skip to content

Drivers: Mbed application shield fails in Mbed OS 5.15.0 - LCD Screen SPI interface #12435

Closed
@froeba

Description

@froeba

Description of defect

Using the sample code for the C12832 LCD screen on an Mbed Application Shield:

This causes an error at runtime as one of the pins is set to NC

++ MbedOS Error Info ++
Error Status: 0x80FF0144 Code: 324 Module: 255
Error Message: Assertion failed: pin != (PinName)NC
Location: 0x800A6C3
File: ./mbed-os/targets/TARGET_STM/pinmap.c+62
Error Value: 0x0
Current Thread: main Id: 0x10001978 Entry: 0x800ACAD StackSize: 0x1000 StackMem: 0x100007F8 SP: 0x100011C8
For more info, visit: https://mbed.com/s/error?error=0x80FF0144&tgt=DISCO_L475VG_IOT01A
-- MbedOS Error Info --
= System will be rebooted due to a fatal error =
= Reboot count(=713) reached maximum, system will halt after rebooting 

This appears to be due to the SPI in C12832 being declared with miso == NC which was acceptable in mbed os < 5.15

The SPI.h file indicates that it is okay for miso to be set to NC

Target(s) affected by this defect ?

Tested and fails in:

  • K64F
  • DISCO-L475VG-IOT01A

Toolchain(s) (name and version) displaying this defect ?

Fails in both:

  • mbed-cli with gcc_arm
  • mbed studio 0.8.1 with Arm C6

What version of Mbed-os are you using (tag or sha) ?

  • mbed-os-5.15.1 <- fails
  • mbed-os-5.15.0 <- fails
  • mbed-os-5.14.2 <- succeeds

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

  • mbed studio 0.8.1
  • mbed-cli 1.10.2

How is this defect reproduced ?

Create above sample code and run on the device with mbed os 5.15 or above

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions