i'm using atmega128 with and without external crystal, i use cavr code, my code (simple blink pb7) running well. Why when i use this board library get hex and upload using khazama there is no blink? already try 3.0 and 2.0 version of megacore and there is no different.
CAVR
#define F_CPU 8000000UL
#include <avr/io.h>
#include <util/delay.h>
int main(void)
{
DDRB |= (1 << PB7); // PB7 output
while (1)
{
PORTB ^= (1 << PB7); // toggle LED
_delay_ms(500);
}
}
Arduino
void setup() {
// put your setup code here, to run once:
pinMode(15, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(15, HIGH);
delay(500);
digitalWrite(15, LOW);
delay(500);
}
i'm using atmega128 with and without external crystal, i use cavr code, my code (simple blink pb7) running well. Why when i use this board library get hex and upload using khazama there is no blink? already try 3.0 and 2.0 version of megacore and there is no different.
CAVR
Arduino