Page 2 of 5

Re: STM32F3 ports

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

Enviado desde mi WIM mediante Tapatalk


Re: STM32F3 ports

Posted: Tue Feb 05, 2019 4:54 am
by romeo
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

Re: STM32F3 ports

Posted: Tue Feb 05, 2019 6:01 pm
by romeo
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!

Re: STM32F3 ports

Posted: Wed Feb 06, 2019 4:27 pm
by romeo
Hello!
@mapy I just finished the csv file for stm32f303.
Are there any other modifications to do?

Thank you,
Romeo

Re: STM32F3 ports

Posted: Thu Feb 07, 2019 6:32 pm
by romeo
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'.

Re: STM32F3 ports

Posted: Thu Feb 07, 2019 7:07 pm
by mapy
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


Re: STM32F3 ports

Posted: Thu Feb 07, 2019 8:37 pm
by dhylands
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?

Re: STM32F3 ports

Posted: Fri Feb 08, 2019 5:20 pm
by romeo
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





Re: STM32F3 ports

Posted: Fri Feb 08, 2019 7:05 pm
by dhylands
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

Re: STM32F3 ports

Posted: Fri Feb 08, 2019 7:09 pm
by dhylands
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 */