Jump to content
Josef

STM32F429-Discovery problems

Recommended Posts

Good day

I'm desperately trying to import the uGFX library into an existing CubeMX project for my STM32F429-Discovery board. I followed the guide but I must've made a mistake somewhere because I end up with errors. The only step I had trouble following was this one:

"Note that to run use RAW32 as the OS two functions need to be implemented by the user in order for it to work. Chances are that for popular boards the RAW32 implementation is already present under boards/base. If not a very good example of what you need can be found under boards/base/STM32F439i-EVAL. The startup code found here was generated with STMCube. In this example the initialization is done with the functions found int the _initialize_hardware.c so there is no need for this code. In the example used here these functions are added by copying them into the file called stm32f4xx_raw32_ugfx.c in the srcfolder."

I am not sure which functions to copy and I can't find either of the files mentioned.

 

After I followed the guide I get the error: Inc/board_STM32LTDC.h:11:27: fatal error: stm32f4xx_fmc.h: No such file or directory

(Also I'm using the board_STM32LTDC.h file in the INC folder. It's the one I should use right?)

I can copy this file and others from the /boards/base/STM32F429-Discovery/chibios folder into my INC and SRC folders.  Then I get:

/Inc/board_STM32LTDC.h:71:21: fatal error: ili9341.h: No such file or directory error.

I can include the ILI9341 driver under drivers\gdisp\ILI9341 folder. Then I get a bunch of errors of undeclared functions. First one is:

Inc/board_STM32LTDC.h:15:19: error: 'SPID5' undeclared (first use in this function). All originate from the board_STM32LTDC.h file.

What did I do wrong? Is it because I used CubeMX?

 

Thank you in advance

Share this post


Link to post
Share on other sites

There are 2 problems...

1. Your include path is not correct. That is causing the messages about the missing .h files. I suspect the board directory is not on your include path as that is where I would expect those files to be found.

2. That board file is a chibios specific one. The SPID5 is a symbol defined by chibios. You will need to update the code to use the cubemx equivalent.

I thought someone had already done an example for the 429 discovery board for RAW32. Check the downloads area.

Share this post


Link to post
Share on other sites

 

On 11/02/2018 at 13:31, inmarket said:

2. That board file is a chibios specific one. The SPID5 is a symbol defined by chibios. You will need to update the code to use the cubemx equivalent.

I've been trying to make this work but can't find what to replace SPID5 with? Is there a modified Board file I could get from somewhere?

Share this post


Link to post
Share on other sites

There are plenty of board files available in the /boards directory. You'll also find plenty of examples by google. Furthermore, every driver has a board file template in the driver's directory.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×