I added to my project by ASF Wizard:
.
Delay routines (service) systick
SERCOM I2C - Master Mode I2C (driver) callback
.
When I set the break point on "nop" and run the debug, the program freezes with delay_ms(500) and didn't stop on break but sent 8 bytes sucesfully (I2C Analyzer). I don't set up callback, I am just sending 8 bytes UBX-NAV-POSLLH command (B5, 62, 01, 02, 00, 00, 03, 0A) to GPS chip.
What I am doing wrong with delay function? I am using Atmel Studio 7.0
int main (void) { system_init(); run_i2c_init(); run_i2c_master_command(); // i2c_master_write_packet_wait(&i2c_master_instance, &master_packet); delay_ms(500); asm("nop");