mbedにおいてBlueusbを使っているのですが、コンパイルしようとするとError:L6647Eが出てしまいます。
コードは以下の頒布されているコード
https://developer.mbed.org/users/peterbarrett1967/code/BlueUSB/
のTestshell.cppに
29行目あたりのインクルード文に #include "mbed.h"
また、そのインクルード文の下に
DigitalOut servo1(p21);
DigitalOut servo2(p22);
DigitalOut servo3(p23);
140行目のprintf("WII %04X %d %d %d\n",pad,x,y,z);の下に
int button_Back = (pad & 0x0400);
int button_A = (pad & 0x0800);
if(button_A != 0){
servo1 = 1;
servo2 = 1;
}else if(button_Back!= 0){
servo3 = 1;
}else{
servo1 = 0;
servo2 = 0;
servo3 = 0;
}
の記述を追加しただけです。
難しい処理は何一つしていないはずなのですが...
エラーの内容は
Error: The virtual function elimination information for unknown(unknown) incorrectly indicates that section .constdata__ZTV13USBFileSystem(main.cpp.LPC1768.o), offset 64 is a relocation (to a virtual function or RTTI), but there is no relocation at that offset.
どなたか、解決策をお分かりになる方いらっしゃいませんでしょうか?
あなたの回答
tips
プレビュー