Updated the flash target to build a .a library instead of a SWC and bug fixes
Merge remote-tracking branch 'origin/develop' into develop