how to change CubeMX source files
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-06-22 12:21 AM
Posted on June 22, 2016 at 09:21
Hello,
I created a small program with CubeMX to test STs USB device stack. My compiler (GCC) gave me a page full of warnings because of this declaration: void USBD_GetString (uint8_t *desc, uint8_t *unicode, uint16_t *len); When called a string is passed to desc, so its type is char* which causes a warning: warning: pointer targets in passing argument 1 of 'USBD_GetString' differ in signedness [-Wpointer-sign] If I change desc to char* it's fine Now I want a solution that will keep this change when I create a new version via CubeMX, that means change the source file that CubeMX copies to my program. Where are these source files located on my computer? Any ideas? Thanks Martin.
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-06-22 4:37 AM
Posted on June 22, 2016 at 13:37
Hi Mr_M_from_G,
Th source files used by CubeMx for each HAL library package are located under a repository in your hard drive. Try this one: C:\Users\YourUserName\STM32Cube\Repository -Hannibal-Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-06-22 11:59 PM
Posted on June 23, 2016 at 08:59
Thanks Hannibal,
thats it. I changed the sources and found the changes in the newly created project files Martin