Mbed-os: EEP/I2C WR 2 bytes ci-test FAIL on some STM32 platforms

Created on 3 Mar 2017  路  4Comments  路  Source: ARMmbed/mbed-os

Description

  • Type: Bug
  • Related issue: #2957
  • Priority: Major

Bug

Target
NUCLEO_L476RG

For info, the test is OK on NUCLEO_F429ZI, NUCLEO_F412ZG, NUCLEO_F401RE
Seems related to the I2C IP version embedded in the MCU. To be checked.

Toolchain:
GCC_ARM

Toolchain version:
5.4 2016q3

mbed-os:
mbed-os-5.4

Expected behavior
Test is PASS

Actual behavior
Test if FAIL

Steps to reproduce
'mbed test' + ci-test shield

st

All 4 comments

@bcostm
Just tested ok with ARM and GCC_ARM here ... there must be something different, so needs to be understood

+-------------------+---------------+---------------+--------+--------------------+-------------+
| target | platform_name | test suite | result | elapsed_time (sec) | copy_method |
+-------------------+---------------+---------------+--------+--------------------+-------------+
| NUCLEO_L476RG-ARM | NUCLEO_L476RG | tests-api-i2c | OK | 13.81 | shell |
+-------------------+---------------+---------------+--------+--------------------+-------------+
mbedgt: test suite results: 1 OK
mbedgt: test case report:
+-------------------+---------------+---------------+------------------------------------+--------+--------+--------+--------------------+
| target | platform_name | test suite | test case | passed | failed | result | elapsed_time (sec) |
+-------------------+---------------+---------------+------------------------------------+--------+--------+--------+--------------------+
| NUCLEO_L476RG-ARM | NUCLEO_L476RG | tests-api-i2c | I2C - EEProm WR 10 Bytes | 1 | 0 | OK | 0.06 |
| NUCLEO_L476RG-ARM | NUCLEO_L476RG | tests-api-i2c | I2C - EEProm WR 100 Bytes | 1 | 0 | OK | 0.08 |
| NUCLEO_L476RG-ARM | NUCLEO_L476RG | tests-api-i2c | I2C - EEProm WR 2 Bytes | 1 | 0 | OK | 0.06 |
| NUCLEO_L476RG-ARM | NUCLEO_L476RG | tests-api-i2c | I2C - EEProm WR Single Byte | 1 | 0 | OK | 0.07 |
| NUCLEO_L476RG-ARM | NUCLEO_L476RG | tests-api-i2c | I2C - Instantiation of I2C Object | 1 | 0 | OK | 0.06 |
| NUCLEO_L476RG-ARM | NUCLEO_L476RG | tests-api-i2c | I2C - LM75B Temperature Read | 1 | 0 | OK | 0.06 |
+-------------------+---------------+---------------+------------------------------------+--------+--------+--------+--------------------+

+-----------------------+---------------+---------------+--------+--------------------+-------------+
| target | platform_name | test suite | result | elapsed_time (sec) | copy_method |
+-----------------------+---------------+---------------+--------+--------------------+-------------+
| NUCLEO_L476RG-GCC_ARM | NUCLEO_L476RG | tests-api-i2c | OK | 13.14 | shell |
+-----------------------+---------------+---------------+--------+--------------------+-------------+
mbedgt: test suite results: 1 OK
mbedgt: test case report:
+-----------------------+---------------+---------------+------------------------------------+--------+--------+--------+--------------------+
| target | platform_name | test suite | test case | passed | failed | result | elapsed_time (sec) |
+-----------------------+---------------+---------------+------------------------------------+--------+--------+--------+--------------------+
| NUCLEO_L476RG-GCC_ARM | NUCLEO_L476RG | tests-api-i2c | I2C - EEProm WR 10 Bytes | 1 | 0 | OK | 0.06 |
| NUCLEO_L476RG-GCC_ARM | NUCLEO_L476RG | tests-api-i2c | I2C - EEProm WR 100 Bytes | 1 | 0 | OK | 0.08 |
| NUCLEO_L476RG-GCC_ARM | NUCLEO_L476RG | tests-api-i2c | I2C - EEProm WR 2 Bytes | 1 | 0 | OK | 0.06 |
| NUCLEO_L476RG-GCC_ARM | NUCLEO_L476RG | tests-api-i2c | I2C - EEProm WR Single Byte | 1 | 0 | OK | 0.06 |
| NUCLEO_L476RG-GCC_ARM | NUCLEO_L476RG | tests-api-i2c | I2C - Instantiation of I2C Object | 1 | 0 | OK | 0.06 |
| NUCLEO_L476RG-GCC_ARM | NUCLEO_L476RG | tests-api-i2c | I2C - LM75B Temperature Read | 1 | 0 | OK | 0.06 |
+-----------------------+---------------+---------------+------------------------------------+--------+--------+--------+--------------------+

@bcostm - I think this is due to https://github.com/ARMmbed/ci-test-shield/issues/22
The I2C library needs to be updated, which I've done locally, but this hasn't been done in the ci-test-shield official repo yet ...

This should be now resolved as ci-test-shield was fixed

Just for reference, I have verified the I2C tests and they are OK now.

| target            | platform_name | test suite    | test case                          | passed | failed | result | elapsed_time (sec) |
+-------------------+---------------+---------------+------------------------------------+--------+--------+--------+--------------------+
| NUCLEO_L476RG-ARM | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm 2nd WR 10  Bytes     | 1      | 0      | OK     | 0.08               |
| NUCLEO_L476RG-ARM | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm 2nd WR 100 Bytes     | 1      | 0      | OK     | 0.1                |
| NUCLEO_L476RG-ARM | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm 2nd WR 2 Bytes       | 1      | 0      | OK     | 0.1                |
| NUCLEO_L476RG-ARM | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm 2nd WR Single Byte   | 1      | 0      | OK     | 0.06               |
| NUCLEO_L476RG-ARM | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm WR 10  Bytes         | 1      | 0      | OK     | 0.07               |
| NUCLEO_L476RG-ARM | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm WR 100 Bytes         | 1      | 0      | OK     | 0.05               |
| NUCLEO_L476RG-ARM | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm WR 2 Bytes           | 1      | 0      | OK     | 0.06               |
| NUCLEO_L476RG-ARM | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm WR Single Byte       | 1      | 0      | OK     | 0.05               |
| NUCLEO_L476RG-ARM | NUCLEO_L476RG | tests-api-i2c | I2C -  Instantiation of I2C Object | 1      | 0      | OK     | 0.07               |
| NUCLEO_L476RG-ARM | NUCLEO_L476RG | tests-api-i2c | I2C -  LM75B Temperature Read      | 1      | 0      | OK     | 0.07               |
+-------------------+---------------+---------------+------------------------------------+--------+--------+--------+--------------------+
+-----------------------+---------------+---------------+------------------------------------+--------+--------+--------+--------------------+
| target                | platform_name | test suite    | test case                          | passed | failed | result | elapsed_time (sec) |
+-----------------------+---------------+---------------+------------------------------------+--------+--------+--------+--------------------+
| NUCLEO_L476RG-GCC_ARM | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm 2nd WR 10  Bytes     | 1      | 0      | OK     | 0.06               |
| NUCLEO_L476RG-GCC_ARM | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm 2nd WR 100 Bytes     | 1      | 0      | OK     | 0.08               |
| NUCLEO_L476RG-GCC_ARM | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm 2nd WR 2 Bytes       | 1      | 0      | OK     | 0.05               |
| NUCLEO_L476RG-GCC_ARM | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm 2nd WR Single Byte   | 1      | 0      | OK     | 0.08               |
| NUCLEO_L476RG-GCC_ARM | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm WR 10  Bytes         | 1      | 0      | OK     | 0.06               |
| NUCLEO_L476RG-GCC_ARM | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm WR 100 Bytes         | 1      | 0      | OK     | 0.08               |
| NUCLEO_L476RG-GCC_ARM | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm WR 2 Bytes           | 1      | 0      | OK     | 0.07               |
| NUCLEO_L476RG-GCC_ARM | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm WR Single Byte       | 1      | 0      | OK     | 0.07               |
| NUCLEO_L476RG-GCC_ARM | NUCLEO_L476RG | tests-api-i2c | I2C -  Instantiation of I2C Object | 1      | 0      | OK     | 0.08               |
| NUCLEO_L476RG-GCC_ARM | NUCLEO_L476RG | tests-api-i2c | I2C -  LM75B Temperature Read      | 1      | 0      | OK     | 0.04               |
+-----------------------+---------------+---------------+------------------------------------+--------+--------+--------+--------------------+
+-------------------+---------------+---------------+------------------------------------+--------+--------+--------+--------------------+
| target            | platform_name | test suite    | test case                          | passed | failed | result | elapsed_time (sec) |
+-------------------+---------------+---------------+------------------------------------+--------+--------+--------+--------------------+
| NUCLEO_L476RG-IAR | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm 2nd WR 10  Bytes     | 1      | 0      | OK     | 0.06               |
| NUCLEO_L476RG-IAR | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm 2nd WR 100 Bytes     | 1      | 0      | OK     | 0.09               |
| NUCLEO_L476RG-IAR | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm 2nd WR 2 Bytes       | 1      | 0      | OK     | 0.06               |
| NUCLEO_L476RG-IAR | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm 2nd WR Single Byte   | 1      | 0      | OK     | 0.06               |
| NUCLEO_L476RG-IAR | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm WR 10  Bytes         | 1      | 0      | OK     | 0.07               |
| NUCLEO_L476RG-IAR | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm WR 100 Bytes         | 1      | 0      | OK     | 0.06               |
| NUCLEO_L476RG-IAR | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm WR 2 Bytes           | 1      | 0      | OK     | 0.07               |
| NUCLEO_L476RG-IAR | NUCLEO_L476RG | tests-api-i2c | I2C -  EEProm WR Single Byte       | 1      | 0      | OK     | 0.07               |
| NUCLEO_L476RG-IAR | NUCLEO_L476RG | tests-api-i2c | I2C -  Instantiation of I2C Object | 1      | 0      | OK     | 0.06               |
| NUCLEO_L476RG-IAR | NUCLEO_L476RG | tests-api-i2c | I2C -  LM75B Temperature Read      | 1      | 0      | OK     | 0.06               |
+-------------------+---------------+---------------+------------------------------------+--------+--------+--------+--------------------+

ci-test-shield version:
53f8fcb Merge pull request #45 from jeromecoutant/PR_PIN

mbed-os version:
f4864dc Merge pull request #3930 from ARMmbed/release-candidate

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chrissnow picture chrissnow  路  4Comments

drahnr picture drahnr  路  4Comments

1domen1 picture 1domen1  路  3Comments

ghost picture ghost  路  4Comments

ccchang12 picture ccchang12  路  4Comments