This is how i got the hardware to work. Not saying that it cant work any other way. I haven't tied anything of yours in. So likely delete mine from rev 2 or 3, and then put this instead. Then it might work.

Dependencies:   mbed

Revisions of mbed.bld

Revision Date Message Actions
0:c426396d5fdf 2017-06-22 If you wanted to work on it, or look at it. File  Diff  Annotate