Skip to main content
freppa
Associate II
October 17, 2017
Question

No build config for F303RE in IAR

  • October 17, 2017
  • 2 replies
  • 2713 views
Posted on October 17, 2017 at 15:15

I am experiencing some issues running the FOC SDK v4.3.

My HW-setup:

Control board: NUCLEO - STM303 (ST part number)

Power board: X-NUCLEO-IHM08M1 (ST part number)

PMSM motor

IDE: IAR

Currently I am able to compile and download code to the F303RE, however the motor only spins a short period of time, and then stops, requiring a reset with the black reset button in order to make it start running again using the user button (blue) on the F303RE. I am not sure what the problem is, but I notice that there is no build configuration for the F303RE.

Currently I open STM32 PMSM FOC LIB\Web\Project\EWARM\STM32F30x_Workspace.eww and build using STM32303C-EVAL_SINGLEDRIVE as option in the drop-down menu, please see attached pic.

Why is there no build config for F303RE in IAR drop-down menu?

Should I even be able to compile and download to target when the build config is wrong?

My problems could have all types of sources obviously, but I would like to ensure that I am using the correct build config at least.

#f303re #iar-ide
This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
October 17, 2017
Posted on October 17, 2017 at 17:00

ST frequently limits example support to EVAL series boards, you might have to port code to DISCO and NUCLEO boards based on your understanding of the tool chain you are using.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Gunnar Holm
Visitor II
October 19, 2017
Posted on October 19, 2017 at 09:43

As I understood Fredrik’s problem, he is using the nucleo board, but needs to select the eval-version of IAR configuration because this is the IAR config that seems to be 'closest' to the 303RE. (At least this was my thaughts when using the same HW configuration (NUCLEO - STM303RE + X-NUCLEO-IHM08M1)).

So with that in mind - is it still meaningful advise porting to nucleo? Isn't it exactly this port Fredrik is asking about?

freppa
freppaAuthor
Associate II
October 19, 2017
Posted on October 19, 2017 at 14:55

Yes, you have understood my problem exactly. Indeed the STM32303C-EVAL is based on STM32F303VCT6 and so it is close enough to be flashed to the NUCLEO - F303RE target using project in IAR ported to STM32303C-EVAL.

I was hoping that there was a ready-to-run port for the NUCLEO - F303RE, but as Clive One points out this does not seem to be the case. So it seems I will have to port the code for STM3232303C-EVAL over to NUCLEO - F303RE board. 

What did you with the 

HW configuration (NUCLEO - STM303RE + X-NUCLEO-IHM08M1) 

Gunnar?

Did you use ST MC Workbench to generate header files -> modified project -> downloaded and debugged?

Laurent Ca...
Senior III
June 15, 2021

The question has been moved from the "Motor Control Hardware" section to the "STM32 Motor Control" section (the question is about the STM32 MC SDK). 

Best regards