The MCU pins was not correctly mapped to Arduino pins. Updated the mapping so that MCU pins respons to the correct Arduino pins.
added a pin mapping file that maps MCU GPIO pins to Ardunio specific pin numbers