0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Nucleo-L432KCとMbedOS6でエラー0x80FF0100の原因

Posted at

Nucleo-L432KCでCAN通信をしようとしたらエラーが出たのでメモ

環境
マイコン:Nucleo-L432KC
開発環境:Keil Studio Cloud

以下エラーコード

++ MbedOS Error Info ++
Error Status: 0x80FF0100 Code: 256 Module: 255
Error Message: Fatal Run-time error
Location: 0x8004189
Error Value: 0x0
Current Thread: main Id: 0x20001BB4 Entry: 0x8005F6F StackSize: 0x1000 StackMem: 0x200007B8 SP: 0x20001684
For more info, visit: https://mbed.com/s/error?error=0x80FF0100&tgt=NUCLEO_L432KC
-- MbedOS Error Info --
can ESR  0x1200.0010 + timeout status 0

エラーの原因
CANの周波数をどこで定義するかでした。

修正前

main.cpp
CAN can(PA_11,PA_12);



int main(){
    can.frequency(500000); //500kbps
    
}

修正後

main.cpp
CAN can(PA_11,PA_12,500000);//周波数もここで定義!!

int main(){
    
}

初めて見たエラーで戸惑いましたがうまく動いたのでよし。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?