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.
romeo
Posts: 25
Joined: Mon Jan 28, 2019 5:57 pm

Re: STM32F3 ports

Post by romeo » Thu Feb 14, 2019 10:36 pm

Yes! It seems to be different from STM32F091 also...
Probably I'll have to find a book for getting around this kind of issues ...
Nothing I used to know seems to look like c language used in here!
Is there any porting guide for uPy? Google didn't help with this either.

Thank you!
Romeo

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

Re: STM32F3 ports

Post by dhylands » Fri Feb 15, 2019 12:10 am

The Reference Manuals for the chips in question will be your goto for information.

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

Re: STM32F3 ports

Post by romeo » Wed Feb 20, 2019 8:24 pm

Hi!

Managed to pass by powerctrl.c compilation.
File timer.c is next.
Probably reference manual will contain a solution!

Current status is on github.

Regards,
Romeo

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

Re: STM32F3 ports

Post by romeo » Sat Mar 02, 2019 12:46 pm

Hi!

I was reading through documentation and I fail to solve this step:

Code: Select all

timer.c:764:15: error: array index in initializer exceeds array bounds
     TIM_ENTRY(15, TIM15_IRQn),
               ^
timer.c:710:29: note: in definition of macro 'TIM_ENTRY'
 #define TIM_ENTRY(id, irq) [id - 1] = (uint32_t)TIM##id | irq
                             ^~
timer.c:764:15: note: (near initialization for 'tim_instance_table')
     TIM_ENTRY(15, TIM15_IRQn),
               ^
timer.c:710:29: note: in definition of macro 'TIM_ENTRY'
 #define TIM_ENTRY(id, irq) [id - 1] = (uint32_t)TIM##id | irq
                             ^~
timer.c:773:15: error: array index in initializer exceeds array bounds
     TIM_ENTRY(16, TIM1_UP_TIM16_IRQn),
               ^
timer.c:710:29: note: in definition of macro 'TIM_ENTRY'
 #define TIM_ENTRY(id, irq) [id - 1] = (uint32_t)TIM##id | irq
                             ^~
timer.c:773:15: note: (near initialization for 'tim_instance_table')
     TIM_ENTRY(16, TIM1_UP_TIM16_IRQn),
               ^
timer.c:710:29: note: in definition of macro 'TIM_ENTRY'
 #define TIM_ENTRY(id, irq) [id - 1] = (uint32_t)TIM##id | irq
                             ^~
timer.c:780:15: error: array index in initializer exceeds array bounds
     TIM_ENTRY(17, TIM1_TRG_COM_TIM17_IRQn),
               ^
timer.c:710:29: note: in definition of macro 'TIM_ENTRY'
 #define TIM_ENTRY(id, irq) [id - 1] = (uint32_t)TIM##id | irq
                             ^~
timer.c:780:15: note: (near initialization for 'tim_instance_table')
     TIM_ENTRY(17, TIM1_TRG_COM_TIM17_IRQn),
               ^
timer.c:710:29: note: in definition of macro 'TIM_ENTRY'
 #define TIM_ENTRY(id, irq) [id - 1] = (uint32_t)TIM##id | irq
                             ^~
make: *** [build-STM32F3DISC/timer.o] Error 1
Any idea?
Thanks,
Romeo

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

Re: STM32F3 ports

Post by romeo » Thu Mar 28, 2019 8:57 pm

Hi! Solved the timer, stuck on dma!

Any help is welcome !
:-)



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

Re: STM32F3 ports

Post by romeo » Sun May 12, 2019 5:48 pm

Hi!
Does anybody know if the SPI DMA mechanism on STM32F3 is similar to F0 or F4? I can't figure it out! Thanks!

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

Re: STM32F3 ports

Post by romeo » Fri Jun 21, 2019 7:31 am

Hi everyone!

I finally compiled successfully (without I2C and SPI now, since the mechanism is quite different from both F0 and F4).

If anyone has the ability to help out with this, I will try an update.

Best regards,
Romeo

Post Reply