Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

4.2.2 Causes Nicla ME to crash when receiving input over I2C #1031

Closed
@kdinev-IEC

Description

@kdinev-IEC

Description

I have the bare-bones configuration with Nicla ME and Portenta H7. Running the "App.ino" example from BHY2 library on Nicla ME and "Temperature.ino" example from BHY2Host library on Portenta H7. Connected as a shield configuration.

When using the latest version of the mbed core (4.2.2), whenever the Nicla receives any data over I2C, mbed crashes with the following msg:

Error Log

++ MbedOS Error Info ++Error Status: 0x80010133 Code: 307 Module: 1Error Message: Mutex: 0x20005284, Not allowed in ISR contextLocation: 0x1C0A3Error Value: 0x20005284Current Thread: I2CSlave Id: 0x20009EA8 Entry: 0x49E31 StackSize: 0x800 StackMem: 0x20009EF0 SP: 0x2000A35C For more info, visit: https://mbed.com/s/error?error=0x80010133&tgt=NICLA -- MbedOS Error Info --

Fix

This error does not appear when using version 4.2.1, and everything works fine.

Source Code

Portenta H7:

#include"Arduino.h"#include"Arduino_BHY2Host.h"Sensortemp(SENSOR_ID_TEMP);voidsetup(){  Serial.begin(115200);while(!Serial);  BHY2Host.begin(false, NICLA_AS_SHIELD);  temp.begin();}voidloop(){staticauto printTime =millis();  BHY2Host.update();if (millis() - printTime >=1000) {    printTime =millis();    Serial.println(String("Temperature:") +String(temp.value(),3));  }}

Nicle ME:

#include"Arduino_BHY2.h"voidsetup(){  BHY2.begin(NICLA_I2C, NICLA_AS_SHIELD);}voidloop(){// Update and then sleep  BHY2.update(100);}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp