Hi AVR gurus,
I am currently developing a system using ATTINY404 with LoRa. When i run my code the debugger did not continue to the next function and stop running. Using ATMEL ICE debugger i did see that it complete the previous function and when i continue stepping through it went into NOP.
I run the optimization with optimize for debug and observe that the file size is still sufficient
Program Memory Usage : 1366 bytes 33.3 % Full
Data Memory Usage : 10 bytes 3.9 % Full
I'm puzzled why did not move to the next instruction. From the code below it just freeze after function LoRa_Send. SPI analyzer confirm that there is no activity after that. I'm attaching the list file here
What should i do to trace the problem here? Appreciate the feedback from all the experts here
<while (1)
{
uint8_t status = LoRa_Receiving();
if(status == 1)
{
LoRa_initSend();
LoRa_Send(ACKMessage, sizeof(ACKMessage));
LoRa_sleep();
_delay_ms(1000);
LoRa_initSend();
LoRa_Send(NAKMessage, sizeof(NAKMessage));
}
}>



