Skip to content

OpenSTM32 interoperability #43

Open

Description

@bremenpl

Hello there,
I have been using Arm Gnu Eclipse plugin together with a OpenSTM32 plugin for a while and it worked ok. I generated project in CubeMx and imported it to eclipse using OpenSTM32 plugin. Then built it with the same plugin compiller. I then used Arm Gnu Eclipse only for jlink configuration and debugging.
And today i discovered a huge problem- I cannot see registers view... Both plugins got it covered but it wont work together. I cannot use Packs from Arm Gnu Eclipse, because there is no Device section in the project, as the project is made by OpenSTM32 plugin. Also I cannot see registers from OpenSTM32 plugin, as I am using Jlink not ST-Link... I am stuck.

I was wondering, do you know any workaround for this situation maybe, so I could use Packs with OpenSTM32 project? I would really rather use the Arm Gnu Eclipse project structure but I cannot import project from CubeMX to it... :(
Is there a solution? I would apreciate all help!

Activity

  1. ilg-ul commented on Dec 3, 2015

    @ilg-ul
    Contributor

    sorry, GNU ARM Eclipse is a standalone set of plug-ins, it is not related to OpenSTM32 and therefore not compatible.

    in the future I might add an Import from OpenSTM32, but currently you have to do it manually.

  2. changed the title [-]MxCube project[/-] [+]OpenSTM32 interoperability[/+] on Dec 3, 2015
  3. self-assigned this
    on Dec 3, 2015
  4. added this to the Time permitting milestone on Dec 3, 2015
  5. bremenpl commented on Dec 3, 2015

    @bremenpl
    Author
  6. ilg-ul commented on Dec 3, 2015

    @ilg-ul
    Contributor

    integrate the code somehow

    yes, there are several options, but not particularly convenient, since they require to reconfigure the Eclipse project.

    depending on your project, you may opt to generate only the initialisation code in CubeMX and copy/paste it into an existing GNU ARM Eclipse project, then configure the source path, include path and preprocessor symbols.

    if you like CubeMX and feel confident with Eclipse, you can also start with an empty project and copy/paste all sources from CubeMX, but there are a lot of details that you have to configure manually.

  7. ilg-ul commented on Dec 3, 2015

    @ilg-ul
    Contributor

    you can also ask STM to enhance CubeMX with an Export to GNU ARM Eclipse, which would greatly simplify things.

  8. bremenpl commented on Dec 3, 2015

    @bremenpl
    Author
  9. bremenpl commented on Dec 3, 2015

    @bremenpl
    Author
  10. ilg-ul commented on Dec 3, 2015

    @ilg-ul
    Contributor

    long do you think it could take you to implement cubeMX import

    I don't know, it is not on my top priority list, it might take a few months to get to it.

    and it'll probably be OpenSTM32 import, i.e. you need to configure CubeMX to generate the OpenSTM32 project, then ask GNU ARM Eclipse to import it.

  11. bremenpl commented on Dec 3, 2015

    @bremenpl
    Author
  12. cnoviello commented on Dec 13, 2015

    @cnoviello

    Hi,
    I would like to signal this really simple python script I've realized:

    https://github.com/cnoviello/CubeMXImporter

    It allows to automatically import a project generated with CubeMX inside an Eclipse project generated with the GNU ARM Plugin (which, according to me, is the best option to develop STM32 applications).

    Hope it helps.

  13. ilg-ul commented on Dec 13, 2015

    @ilg-ul
    Contributor

    Carmino, thank you for the info.

    Perhaps it would be useful to post a more detailed article in the new forum I created at http://www.element14.com/community/groups/gnu-arm-eclipse. Use Start a discussion.

  14. cnoviello commented on Dec 13, 2015

    @cnoviello

    Ok, Nice idea. I'll write down something this week.

  15. bremenpl commented on Dec 13, 2015

    @bremenpl
    Author

    I am looking forward to it.

  16. ilg-ul commented on Dec 14, 2015

    @ilg-ul
    Contributor

    great, thank you.

  17. bremenpl commented on Dec 14, 2015

    @bremenpl
    Author
  18. Ivan-SB commented on Jan 26, 2016

    @Ivan-SB

    Here is my attempt to import CubeMX projects to ARM GNU plugin
    https://github.com/Ivan-SB/lib2eclipse
    and it is python 3

    Carmine's plugin anyway is much more mature I think.

    BTW Liviu I used a trick to be able to remove or update include/libraries etc...
    I added an attribute to listOptionValue to know which library added what.
    I don't know anything about eclipse internals... so that may be a bad idea in general... but maybe not.
    If it makes any sense would you add such a marker to the include paths, define etc... that your plugin is adding?
    Do you have a better idea?
    Do you know any way from python to generate an id for ?

    thanks

  19. ilg-ul commented on Jan 26, 2016

    @ilg-ul
    Contributor

    add such a marker

    I'm not sure this is possible, the information in .cproject is mostly generated by CDT from the toolchain definitions, and I doubt there is anything like these markers there.

  20. Ivan-SB commented on Jan 26, 2016

    @Ivan-SB

    Indeed, unfortunately, as soon as you touch anything in the settings, alien attributes get reset.
    The other option is to compare all the content to what a library added and delete just the stuff that match. I'll consider to write an "uninstall" file then.

    I'll try to learn something about eclipse plugin development and see if I can "scratch my own itch" contributing someway.

    thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions