Hi, i see what the last post is posted some time ago, but i have started to design BLDC controller almost in same time like you, now i have working programmable BLDC controller for voltages up to 60V and max current 25A with 4 inch LCD, now working with additional modules (wifi, GPS GSM, IRF...), if someone interesting then i will post more info.
Why i writing !? because my first prototype had almost simillar problems like you controller, then i found that controller have problems then i have read lot of information and technical documentation,
in prototype i have used 3 gate drivers, and because of that i had to solve shot throught problems programmatically, in later design i replaced it to one 3 phase driver,
noise problems is occurred to, noise eventually disrupts the microcontroller and it stops working, but after read lot of documents i found that decoupling caps in right place will solve that, and additionally i found that good practice is to use linear power regulator for MCU power, in my design i added ams1117 step down LDO, it reduces voltage to MCU from 5v to 3.3V,
ground plane is not isolated,
and now i have working controller without that problems, then i maked tests with 15A load, i forget to add external input cap, i maked tests just with 100uf on PCB, and MCU do not "stuck", i remembered about external cap only then found that on board cap is hot,
until now i spent more than 700 hours to design, manufacture, program and test controller and LCD driver-display.
few pics:
Why i writing !? because my first prototype had almost simillar problems like you controller, then i found that controller have problems then i have read lot of information and technical documentation,
in prototype i have used 3 gate drivers, and because of that i had to solve shot throught problems programmatically, in later design i replaced it to one 3 phase driver,
noise problems is occurred to, noise eventually disrupts the microcontroller and it stops working, but after read lot of documents i found that decoupling caps in right place will solve that, and additionally i found that good practice is to use linear power regulator for MCU power, in my design i added ams1117 step down LDO, it reduces voltage to MCU from 5v to 3.3V,
ground plane is not isolated,
and now i have working controller without that problems, then i maked tests with 15A load, i forget to add external input cap, i maked tests just with 100uf on PCB, and MCU do not "stuck", i remembered about external cap only then found that on board cap is hot,
until now i spent more than 700 hours to design, manufacture, program and test controller and LCD driver-display.
few pics: