Page 1 of 1

Micropython Build Step by Step

Posted: Fri Oct 09, 2020 2:11 am
by HarryOz
Hi All,

Are there step by step instructions on building a .dfu file for an STM32 custom board?

*edit. I have Ubuntu 18 installed on a virtual machine for this.

1. Install Ubuntu on virtual box
2. Sudo apt-get install git
3. Sudo apt-get install screen
4. Git clone https://github.com/micropython/micropython.git
5. Sudo apt-get install locate
6. Sudo updatedb
7. Locate gcc-arm-none-eabi
8. Export PATH="$PATH:/usr/share/doc/gcc-arm-none-eabi/bin

my make returns error i cannot build any of the boards.

Appreciate any guidance.

Re: Micropython Build Step by Step

Posted: Mon Oct 12, 2020 6:11 am
by dhylands
In addition to what you posted above, you should follow the build instructions on the stm32 README:
https://github.com/micropython/micropyt ... structions

Re: Micropython Build Step by Step

Posted: Tue Oct 13, 2020 11:07 am
by HarryOz
Many thanks, got it working.

Re: Micropython Build Step by Step

Posted: Fri Oct 23, 2020 3:49 pm
by HarryOz
Hi Again,

Is there a way to set a GPIO pin to 1 or 0 in the HAL configuration file?

I have a regulator that is turned on or off using an output pin and i would like to have the firmware pre define that pin to 0 so on startup the regulator is off.

Thanks,
Harry

Re: Micropython Build Step by Step

Posted: Sat Oct 24, 2020 4:45 am
by jimmo
HarryOz wrote:
Fri Oct 23, 2020 3:49 pm
I have a regulator that is turned on or off using an output pin and i would like to have the firmware pre define that pin to 0 so on startup the regulator is off.
The pin should be high-impedance by default, so an external weak pull-down resistor might be all you need?