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.
Micropython Build Step by Step
Re: Micropython Build Step by Step
In addition to what you posted above, you should follow the build instructions on the stm32 README:
https://github.com/micropython/micropyt ... structions
https://github.com/micropython/micropyt ... structions
Re: Micropython Build Step by Step
Many thanks, got it working.
Re: Micropython Build Step by Step
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
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
The pin should be high-impedance by default, so an external weak pull-down resistor might be all you need?