Change for loop into while
Add CPU architecture: ARM64, AVR