Arduino Due With Atmel Studio 6.1 and ASF
hi all.
i using atmel studio 6.1 , atmel software framework arduino due. reason doing arduino ide keeps lot of things under hood trying see. so, using atmel studio 6.1 in order better learn cortex m3 arm microcontroller.
unfortunately, complexity has gotten best of me. searched answers myself came empty-handed.
what trying simple program toggle pin, commonly referred pin 13 on arduino due board, led "l". used new project template, specifying arduino due board , added gpio, system clock, , delay asf libraries. cannot led flash on , off @ 1 hz rate, , stumped why. here's body of main:
i tried of other gpio , pio configure , set functions no avail. nice have documentation shows how asf relates chip itself. instance, configure port bin pb_27 output, first that. have yet find documentation this, have resorted trial , error.
oh, aware atmel database has example on pwming pwm channels 0 , 1 make led glow, scope shows nothing happening. believe programming board correctly bossac, verify portion of programming says successful.
i using atmel studio 6.1 , atmel software framework arduino due. reason doing arduino ide keeps lot of things under hood trying see. so, using atmel studio 6.1 in order better learn cortex m3 arm microcontroller.
unfortunately, complexity has gotten best of me. searched answers myself came empty-handed.
what trying simple program toggle pin, commonly referred pin 13 on arduino due board, led "l". used new project template, specifying arduino due board , added gpio, system clock, , delay asf libraries. cannot led flash on , off @ 1 hz rate, , stumped why. here's body of main:
code: [select]
int main (void)
{
board_init();
sysclk_init();
delay_init(sysclk_get_cpu_hz());
pio_set_output(piob, led0_gpio, high, disable, disable);
while(1)
{
gpio_set_pin_high(led0_gpio);
delay_ms(1000);
gpio_set_pin_low(led0_gpio);
delay_ms(1000);
}
// insert application code here, after board has been initialized.
}
i tried of other gpio , pio configure , set functions no avail. nice have documentation shows how asf relates chip itself. instance, configure port bin pb_27 output, first that. have yet find documentation this, have resorted trial , error.
oh, aware atmel database has example on pwming pwm channels 0 , 1 make led glow, scope shows nothing happening. believe programming board correctly bossac, verify portion of programming says successful.
does using 1.5.x of ide result in behavior want? in other words, hardware or software problem?
Arduino Forum > Development > Other Software Development > Arduino Due With Atmel Studio 6.1 and ASF
arduino
Comments
Post a Comment