Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New CMSIS Directory Structure #17

Open
tiazahmd opened this issue Aug 9, 2020 · 4 comments
Open

New CMSIS Directory Structure #17

tiazahmd opened this issue Aug 9, 2020 · 4 comments

Comments

@tiazahmd
Copy link

tiazahmd commented Aug 9, 2020

According to the book (and the script), there are changes to the directory structure that is not compatible anymore. The book and the script used the following directory structure:

Project Root
    |_ Inc
    |_ Src
    |_ Drivers
        |_ CMSIS
            |_ Include
            |_ Device
        |_ STM32XX_HAL_Driver

The new directory structure for CubeMX is as follows:

Project Root
    |_ startup
    |_ Core
        |_ Inc
        |_ Src
    |_ Drivers
        |_ CMSIS
            |_ Device
                |_ ST
                    |_ STM32xxF4xx
                        |_ Source
                            |_ Templates
                        |_ Include
            |_ Include
        |_ STM32xx_HAL_Driver
            |_ Src
            |_ Inc
                |_ Legacy

I've seen this structure with Nucleo F411RE. I'm not sure if it's a universal directory structure change, or is only applicable for this board. If it's a universal change, I modified the script to make sure it runs properly.

If the directory structure has changed universally, is it okay for me to submit a pull request for this?

@Rahulelectobuddy
Copy link

I am using stmCubeMX v5.0.1 --

The new structure you are talking about is generated when you select advance application structure while generating the code.
Indicated below -
Annotation 2020-09-03 234735

When you generate the code with basic application structure selected then you will get directory structure indicated in script or book.

@tiazahmd
Copy link
Author

@Rahulelectobuddy , that makes sense. I've used both CubeMx 5 and STM32CubeIDE and in both of them, the Application Structure is greyed out (like you have on the screenshot) and I'm not sure how to turn it on. Can you help? Thanks.

@Rahulelectobuddy
Copy link

@tiazahmd, you can change application structure to advance or basic without changing any setting (default). Try creating a new project and then changing structure.

@git-dc
Copy link

git-dc commented Feb 10, 2021

For an already existing project, if the option to change application structure is greyed out simply "Save As..." under the same project name/directory (effectively overwriting the project with itself). The option to change application structure will then become available again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants