Motors causing board flashing problems.

garethevs3
Posts: 2
Joined: Tue Dec 11, 2018 8:02 pm

Motors causing board flashing problems.

Postby garethevs3 » Tue Dec 11, 2018 8:12 pm

Hi,

So I'm pretty new to ESP32. I'm using the ESP32-WROVER kit and I'm really impressed with all the examples etc. I'm using Visual GDB to program the board but I've recently stumbled across a problem and I'm stuck.

I'm running the 'mcpwm_brushed_dc_control' example, the example is working, and my motor is spinning. However, this is causing an issue when trying to program the board thereafter. Something about this seems to mess with my JTAG, and I can't program my board for 5 mins or so (NOTE: I have not damaged the board, it still flashes, just not right away after running the motor example, I have to turn it off for a few minutes and then it seems to be okay).

I have connected a ground from my H-Bridge to the microcontroller for a common ground (Just like you would on any arduino or STM32). Do you think this is causing a problem? any suggestions?

Thank you.

garethevs3
Posts: 2
Joined: Tue Dec 11, 2018 8:02 pm

Re: Motors causing board flashing problems.

Postby garethevs3 » Fri Dec 21, 2018 5:37 pm

Issue resolved. This was a really annoying one.

GPIO15 (which one of the examples uses for PWM) is also used for JTAG.

So now I just avoid GPIO15 at all costs, and everything works perfectly.

Who is online

Users browsing this forum: No registered users and 148 guests