silentsurfer
New member
Hello everyone ,
I would really like some help i have an at90usb162 , this one to be more precise:
Now from what I read its the same chip that Teensy1.0 has, (I am a totally noob in this pls dont judge me for now) , and there is this code I want to compile for it ( I can flash it after with Flip 3.4.2 i think but before doing this I need it to be in hex format , so compiled.
And here the code :
I have installed the Arduino + Teensyduino made all the ruired changes to use Teensy1.0
But now i get this error it seems I cant pass by :
The backstory to this is I was to rescue a macbook i bought time ago, and got blocked like 2 months after i purchased it in a local (i am albanian) craiglist like site, I have send a lot of emails to apple but since I have only emails as a proof of purchase .. they dont even bother (that and the thing I am from a country that many of apple employees hadnt even heard of before)
So .. ANY type of help would be appreciated
Thanks in advance
I would really like some help i have an at90usb162 , this one to be more precise:
Now from what I read its the same chip that Teensy1.0 has, (I am a totally noob in this pls dont judge me for now) , and there is this code I want to compile for it ( I can flash it after with Flip 3.4.2 i think but before doing this I need it to be in hex format , so compiled.
And here the code :
Code:
#include <usb_keyboard.h>
// This code is licensed under Apache 2.0 License
// http://www.apache.org/licenses/LICENSE-2.0.txt
// Limitation of Liability. In no event and under no legal theory,
// whether in tort (including negligence), contract, or otherwise,
// unless required by applicable law (such as deliberate and grossly
// negligent acts) or agreed to in writing, shall any Contributor be
// liable to You for damages, including any direct, indirect, special,
// incidental, or consequential damages of any character arising as a
// result of this License or out of the use or inability to use the
// Work (including but not limited to damages for loss of goodwill,
// work stoppage, computer failure or malfunction, or any and all
// other commercial damages or losses), even if such Contributor
// has been advised of the possibility of such damages.
// This code is indented for people who are not able to contact
// apple support and I am in no way liable for any damage or
// problems this code might cause.
const int ledPin = 13; // choose the pin for the LED
int counter = 0;
int fakecounter = counter;
char pin[]="xxxx";
void setup() {
pinMode(ledPin, OUTPUT); // declare LED as output
delay(10000);
}
void loop(){
keyboard_modifier_keys = 0;
if (counter <= 9999){
delay(8000);
digitalWrite(ledPin, LOW);
delay(5500);
digitalWrite(ledPin, HIGH);
sprintf(pin, "%04d", fakecounter);
//sending first digit
Keyboard.press(pin[0]);
delay(450);
Keyboard.release(pin[0]);
delay(420);
//sending second digit
Keyboard.press(pin[1]);
delay(398);
Keyboard.release(pin[1]);
delay(510);
//sending third digit
Keyboard.press(pin[2]);
delay(421);
Keyboard.release(pin[2]);
delay(423);
//sending forth digit
Keyboard.press(pin[3]);
delay(430);
Keyboard.release(pin[3]);
delay(525);
//sending enter
Keyboard.press(KEY_ENTER);
delay(305);
Keyboard.release(KEY_ENTER);
}
//reached 4 digit PIN max value
if (counter > 9999){
for (int blinkies = 0; blinkies < 8; blinkies++) {
digitalWrite(ledPin, HIGH);
delay(20);
digitalWrite(ledPin, LOW);
delay(200);
}
delay(6000);
}
++counter;
fakecounter = counter;
}
I have installed the Arduino + Teensyduino made all the ruired changes to use Teensy1.0
But now i get this error it seems I cant pass by :
Code:
Arduino: 1.0.5-r2 (Windows 7), Board: "Teensy 1.0"
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -felide-constructors -std=c++0x -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\Password.cpp -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\Password.cpp.o
Password.ino:1:26: warning: usb_keyboard.h: No such file or directory
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\keylayouts.c -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\keylayouts.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\malloc.c -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\malloc.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\pins_teensy.c -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\pins_teensy.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\usb.c -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\usb.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\WInterrupts.c -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\WInterrupts.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\wiring.c -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\wiring.c.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -felide-constructors -std=c++0x -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\HardwareSerial.cpp -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\HardwareSerial.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -felide-constructors -std=c++0x -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\IPAddress.cpp -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\IPAddress.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -felide-constructors -std=c++0x -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\main.cpp -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\main.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -felide-constructors -std=c++0x -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\new.cpp -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\new.cpp.o
C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=at90usb162 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=105 -DTEENSYDUINO=118 -felide-constructors -std=c++0x -DUSB_HID -DLAYOUT_US_ENGLISH -IC:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\Print.cpp -o C:\Users\BaneBorg\AppData\Local\Temp\build2388517073924832930.tmp\Print.cpp.o
C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\Print.cpp: In member function 'size_t Print::print(const __FlashStringHelper*)':
C:\Program Files (x86)\Arduino\hardware\teensy\cores\teensy\Print.cpp:90: warning: '__progmem__' attribute ignored
C:\Users\BaneBorg\AppData\Local\Temp/ccJ0gSmS.s: Assembler messages:
C:\Users\BaneBorg\AppData\Local\Temp/ccJ0gSmS.s:198: Error: illegal opcode mul for mcu at90usb162
C:\Users\BaneBorg\AppData\Local\Temp/ccJ0gSmS.s:203: Error: illegal opcode mul for mcu at90usb162
C:\Users\BaneBorg\AppData\Local\Temp/ccJ0gSmS.s:207: Error: illegal opcode mul for mcu at90usb162
C:\Users\BaneBorg\AppData\Local\Temp/ccJ0gSmS.s:211: Error: illegal opcode mul for mcu at90usb162
C:\Users\BaneBorg\AppData\Local\Temp/ccJ0gSmS.s:237: Error: illegal opcode mul for mcu at90usb162
The backstory to this is I was to rescue a macbook i bought time ago, and got blocked like 2 months after i purchased it in a local (i am albanian) craiglist like site, I have send a lot of emails to apple but since I have only emails as a proof of purchase .. they dont even bother (that and the thing I am from a country that many of apple employees hadnt even heard of before)
So .. ANY type of help would be appreciated
Thanks in advance