Custom board and ST-Link

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
mvdw
Posts: 25
Joined: Tue May 26, 2015 11:57 pm
Location: Brisbane
Contact:

Custom board and ST-Link

Post by mvdw » Fri May 22, 2020 11:10 am

I have a custom board based on the STM32F767 to which I have ported micropython. I load my program using the ST-Link dongle, which I have working in both SWD and also JTAG modes.

My problem is that whenever I reset the board, if the ST-Link cable is not plugged in it will not start. Even the main.py program will not start. Simply plugging in the ST-Link will start the processor; it remains running when I unplug the ST-Link cable. I know this probably isn't necessarily a micropython problem but likely a configuration issue with the registers or some such, but I'm sure someone on the forum will have come across this and know the solution.

Obviously I'd like to get rid of the ST-Link cable and just have the uC start on powerup.

Any ideas?

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Custom board and ST-Link

Post by dhylands » Fri May 22, 2020 5:21 pm

Does the board have a pullup resistor on the RESET line?

What about the settings of BOOT0 and BOOT1?

mvdw
Posts: 25
Joined: Tue May 26, 2015 11:57 pm
Location: Brisbane
Contact:

Re: Custom board and ST-Link

Post by mvdw » Fri May 22, 2020 9:59 pm

Does the board have a pullup resistor on the RESET line?
Yes, that was it! What a dumb mistake. Thanks Dave.

Post Reply