Hi Manish,
Yes, you may use PMSM software with FOC driving also BLDC motor. According you description, I agree that FOC might be better drive system than simple six step commutation.
The difference between motors is mainly in BEMF shape and this should not have really significant effect.
The MTRCKTSPNZVM128 example code uses two shunts solution.
http://www.nxp.com/products/automotive-products/microcontrollers-and-processors/16-bit-s12-magniv/3-...
Unfortunately the application note for one shunt solution is still not public available, however you may ask your sales contact/distributor for early example code if you interest.
I hope it helps you.
Have a great day,
Radek
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------