STM32F3 ports

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.
mapy
Posts: 3
Joined: Sat Sep 29, 2018 9:49 am

Re: STM32F3 ports

Post by mapy » Thu Jan 31, 2019 8:06 am

Hello Romeo, once you finish it I will be pleased yo help you testing it.

Enviado desde mi WIM mediante Tapatalk


romeo
Posts: 23
Joined: Mon Jan 28, 2019 5:57 pm

Re: STM32F3 ports

Post by romeo » Tue Feb 05, 2019 4:54 am

Hi,

I have finished the draft for the af table. But I'm wondering if STM32F091 doesn't fit better as header! On the second line, in the STM32F3 there is no additional description (starting from page 45 in the datasheet) https://www.st.com/resource/en/datashee ... f303vc.pdf

Any suggestion?

Thank you,
Romeo

romeo
Posts: 23
Joined: Mon Jan 28, 2019 5:57 pm

Re: STM32F3 ports

Post by romeo » Tue Feb 05, 2019 6:01 pm

mapy wrote:
Thu Jan 31, 2019 8:06 am
Hello Romeo, once you finish it I will be pleased yo help you testing it.

Enviado desde mi WIM mediante Tapatalk
Ok. Thank you! I will post once it is finished. Now I'm comparing with STM32F091. It seems to be much similar!

romeo
Posts: 23
Joined: Mon Jan 28, 2019 5:57 pm

Re: STM32F3 ports

Post by romeo » Wed Feb 06, 2019 4:27 pm

Hello!
@mapy I just finished the csv file for stm32f303.
Are there any other modifications to do?

Thank you,
Romeo

romeo
Posts: 23
Joined: Mon Jan 28, 2019 5:57 pm

Re: STM32F3 ports

Post by romeo » Thu Feb 07, 2019 6:32 pm

Hi all,
I got stuck here:

Code: Select all

Reading makefiles...
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
Updating goal targets....
 File 'all' does not exist.
   File 'build-STM32F3DISC/firmware.dfu' does not exist.
     File 'build-STM32F3DISC/firmware.elf' does not exist.
       File 'build-STM32F3DISC/py/mpstate.o' does not exist.
         File 'build-STM32F3DISC/genhdr/qstrdefs.generated.h' does not exist.
           File 'build-STM32F3DISC/modstm_qstr.h' does not exist.
          Must remake target 'build-STM32F3DISC/modstm_qstr.h'.

mapy
Posts: 3
Joined: Sat Sep 29, 2018 9:49 am

Re: STM32F3 ports

Post by mapy » Thu Feb 07, 2019 7:07 pm

Hello Romeo, I am relatively new in micropython so I have not the required knowledges yo help you on creating the port, I am really sorry about that. Once finished I could test It in the many different boards we have in my company with STM32F3. Thank you very much.

Enviado desde mi WIM mediante Tapatalk


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

Re: STM32F3 ports

Post by dhylands » Thu Feb 07, 2019 8:37 pm

Romeo - can you give me a pointer to your micropython repository and stm32lib repository? And the name of the board you were trying to build?

romeo
Posts: 23
Joined: Mon Jan 28, 2019 5:57 pm

Re: STM32F3 ports

Post by romeo » Fri Feb 08, 2019 5:20 pm

dhylands wrote:Romeo - can you give me a pointer to your micropython repository and stm32lib repository? And the name of the board you were trying to build?
Hello!

The board I have is STM32F3 DISCOVERY.
The github repository is https://github.com/sfynxu/stm32f3discovery_upy

Thanks,
Romeo





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

Re: STM32F3 ports

Post by dhylands » Fri Feb 08, 2019 7:05 pm

It looks like the first problem is that the CMSIS_MCU in your mpconfigboard.mk file has a typo. It shows:

Code: Select all

CMSIS_MCU = STM32F303xx
I think that this is supposed to be:

Code: Select all

CMSIS_MCU = STM32F303xC
The Makefile looks for this file ../../lib/stm32lib/CMSIS/STM32F3xx/Include/$(CMSIS_MCU - in lower case).h which doesn't exist.

That gets past the modstm problem, and now it runs into an issue in pllvalues.py

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

Re: STM32F3 ports

Post by dhylands » Fri Feb 08, 2019 7:09 pm

I got around the pll problem by changing the definition of HSE_VALUE in boards/STM32F3DISC/stm32f3xx_hal_conf.h from:

Code: Select all

  #define HSE_VALUE    (8000000U) /*!< Value of the External oscillator in Hz */^M
to be

Code: Select all

  #define HSE_VALUE    ((uint32_t)8000000) /*!< Value of the External oscillator in Hz */

Post Reply