PIC32: add flash algorithm support