Skip to main content
abdou si
Associate III
March 7, 2017
Solved

problem with STM32_MAT-TARGET in external mode

  • March 7, 2017
  • 12 replies
  • 3283 views
Posted on March 07, 2017 at 20:44

hello 

i am working with STM32_MAT-TARGET in external mode  i can generat project 

0690X00000603ijQAA.jpg

help please 

#stm32-mat-target #simulink #external #stm32-mat/target-matlab
This topic has been closed for replies.
Best answer by abdou si
Posted on March 12, 2017 at 14:03

https://community.st.com/0D50X00009XkYEASA3

Mandatory Software :

matlab 2016 b

Keil version V 5.23

STM32CubMX 4.20

in the external mode : make sure thatHeapSize must behigher as possible.

make sure that the configuration of UART(Rx,Tx) in your stm32 it is connected to the USB (VCP_TX ,VCP_RX)

12 replies

Technical Moderator
March 8, 2017
Posted on March 08, 2017 at 09:46

Hi abdou si,

Could you please precise theSTM32-MAT/TARGET and Keil version are you using ?

I suggest you to debug,identify what is the problem that you see and when it occurs orwhere the code hangs/stop.

I recommend you to follow the instructions in the attached document

'STM32 MAT-TARGET HandsOn'it may help you on your project.

Imen

________________

Attachments :

STM32_MAT-TARGET_HandsOn_v1_0.pdf : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hypn&d=%2Fa%2F0X0000000bD0%2FBR9ZtSfu_Um8n1rd3cF4OzI8ZT4y4Ju1arNoCyuutLs&asPdf=false
"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
abdou si
abdou siAuthor
Associate III
March 8, 2017
Posted on March 08, 2017 at 12:59

thanks Imen

i am working with KEIL V5 and 

STM32-MAT/TARGET 4.4.1 in matlab 2016b i am alos working with  STM32_MAT-TARGET_HandsOn

i took this exemple 

0690X00000603dzQAA.jpg

i build it in external Mode i get this 

0690X00000603goQAA.jpg
Technical Moderator
March 8, 2017
Posted on March 08, 2017 at 13:15

Hi,

Could you please share your .ioc file as well the log files that can be found in your user directory under the .stm32cubemx folder.

Thanks

Imen

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
abdou si
abdou siAuthor
Associate III
March 8, 2017
Posted on March 08, 2017 at 13:37

this for may application i am using GPIO in stm32f303k8

________________

Attachments :

external.ioc.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hypd&d=%2Fa%2F0X0000000bCy%2FFbAg5KKa2SpZ_vY.DkU9dlj7jGBLDxp1zLK11gYm.2k&asPdf=false
Technical Moderator
March 8, 2017
Posted on March 08, 2017 at 14:21

Hi, 

I will share your issue internally to our CubeMx team for further investigation and come back to you as soon as possible.

Imen

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
abdou si
abdou siAuthor
Associate III
March 8, 2017
Posted on March 08, 2017 at 14:36

whene i start the building i get this ioc file

________________

Attachments :

external_extMode.ioc.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HypY&d=%2Fa%2F0X0000000bCw%2FRKjMBZOD.HniHU5mNc31lttiSsXYzhWW5VyHGzBuDvM&asPdf=false
Technical Moderator
March 8, 2017
Posted on March 08, 2017 at 15:43

Which version of Keil are you using ? Try to update Keil tools (last version V5.23) if you are using an old version. 

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
abdou si
abdou siAuthor
Associate III
March 8, 2017
Posted on March 08, 2017 at 18:45

i am already using the 5.23 V

i wanna try with older version of  STM32_MAT-TARGET for matlab 2015 b but i cant download  can you help ?

abdou si
abdou siAuthor
Associate III
March 8, 2017
Posted on March 08, 2017 at 21:22

How i can download STM32-MAT/TARGET 4.4.0

Technical Moderator
March 9, 2017
Posted on March 09, 2017 at 10:30

Hi

You can find attached the previous versionSTM32-Mat/TARGET V4.4.0 as you asked.

But, I recommendto you using the latest version of STM32-MAT/TARGETwhich contains enhancement asST maintains its supportonly for the last version of

STM32Mat/TARGET

available on the ST web.

Imen

________________

Attachments :

STM32MatTarget_4.4.0_setup.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HynU&d=%2Fa%2F0X0000000bCt%2Fm3YTaBi3ugz8uz4QSxa6BhBCZELVeStlZISxXk9Zy7w&asPdf=false
"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
Technical Moderator
March 9, 2017
Posted on March 09, 2017 at 16:03

I have copied your .ioc file in new folder and the project is successfully generated.

So, I think that the problem is related to your configuration setting with Keil.

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
abdou si
abdou siAuthor
Associate III
March 9, 2017
Posted on March 09, 2017 at 18:36

i can generated a project with .ioc but the problem when i use simulink externel mode i cant generat project you can see the PDF

https://community.st.com/servlet/JiveServlet/download/150568-1-7850/STM32_MAT-TARGET_HandsOn_v1_0.pdf

page 90

Technical Moderator
March 10, 2017
Posted on March 10, 2017 at 17:07

we aren't able to reproduce this error !

Please check that you are correctly configure Simulink Model Setting to use the correct parameters and the last version of CubeMx V4.20 (as mentioned in the attached document, in 'Simulink Model Setting' section)

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"