WeActSTM32F411CEU6 directory structure

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

WeActSTM32F411CEU6 directory structure

Post by davef » Fri Jul 31, 2020 7:48 pm

Is my directory structure correct?

Code: Select all

/home/dave/Micropython/micropython-1.12/micropython/ports/stm32/ ...
as the stuff in ... is the same as in the following:

Code: Select all

/home/dave/Micropython/micropython-1.12/ports/stm32/ ...
From the tutorial I gather I should be working in ... micropython/ports/stm32/... so what is the .../ports/stm32 directory for? Or have I messed things up?

Thanks,
Dave

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

Re: WeActSTM32F411CEU6 directory structure

Post by dhylands » Mon Aug 03, 2020 9:48 pm

It doesn't matter whether the top directory is named micropython or micropython-1.12.

Personally, I have ~/micropython/micropython/ports/stm32

The WeACTSTM32F411CEU6 files (from https://github.com/mcauser/WEACT_F411CEU6) need to fo in a directory called WEACT_F411CEU6 found inside ports/stm32/boards (i.e. for me it's ~/micropython/micropython/ports/stm32/boards/WEACT_F411CEU6/mpconfigboard.h)

The reason I have micropython/micropython is so that I'm mirroring the github structure and I I also have ~/micropython/micropython-lib and ~/micropython/pyboard for example.

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: WeActSTM32F411CEU6 directory structure

Post by davef » Tue Aug 04, 2020 1:08 am

I believe I have the WeActSTM32F411CEU6 in the right place.

I have since setup a virtual environment and notice that in ~/MicroPython there is only one directory called /ports/stm32 and it is in /micropython.

So, it looks like I messed up the first installation.

Thanks,
Dave

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

Re: WeActSTM32F411CEU6 directory structure

Post by dhylands » Tue Aug 04, 2020 4:48 am

Your directory structure should match that found here:
https://github.com/micropython/micropython

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: WeActSTM32F411CEU6 directory structure

Post by davef » Tue Aug 04, 2020 5:41 am

Thanks, that issue is sorted.

Post Reply