AnsweredAssumed Answered

Problem using SMT32-MAT with STM32F407IGHx processor

Question asked by dzielski.john on Dec 31, 2014
Latest reply on Jan 7, 2015 by reynaud.pascal
I'm not sure if this is the write community, and there don't seem to be a lot of posts related to the SMT32-MAT tools, but I'm hoping I can get a little help.  I've just started trying to use the Simulink blockset with STM32CubeMX and I'm having some problems...

I have downloaded and installed STM32CubeMX and the STM32-MAT blockset and tools.  I am trying to run the ReadWrite demo, but I have changed the processor in the ioc-file from the default to the one on my board (STM32F407IGH6).  When I now open the demo model ReadWrite.slx that came with the STM32-MAT installation, I get to dialog windows that open, one saying "No GPIO Configured as Output" and "No GPIO Configured as Input".  I get one of these errors whenever I attempt to open either the GPIO_Read or GPIO_Write blocks in the Simulink model.  I have no idea what these warnings are about; although, I've seen them before when the path to the ioc-file is not correct.  Can you tell me what these warnings mean and how to correct them?  I have seen postings that show that the GPIO can be configured in STM23CubeMX but the version I am running 4.5.0 STMCube version 1.0 does not seem to offer these options.  Does it and is this related to my problem?  I'm guessing that these are being set based on the processor since when I change the processor model number I get GPIOA-P instead of just GPIOD initially.  If I try and change the write port on one of the GPIO_Write blocks I get an error message "Error evaluating MaskCallback of block GPIO_Write ... Undefined function or variable 'Pin_Idx'."  This error appears to be occurring in the file GPIO_Write_callback.p.  Because the source m-file is not available, I can't diagnose the problem any further.  How do I get to be able to configure the GPIO ports for my processor?  Thank you, John.

Outcomes