Skip to content

Change board name reported by serial #1755

Closed Answered by JiriBilek
Kamoool asked this question in Q&A
Discussion options

You must be logged in to vote

I believe the magic is in the file ....\stm32\2.3.0\cores\arduino\stm32\usb\usbd_desc.c
I haven't tried it yet here in Arduino environment, but if you define USB_PRODUCT_STRING to your desired name it should work. The definition should be global, given as -D directive for the compiler. This can be done by creating/editing build_opt.h file (https://github.com/stm32duino/wiki/wiki/Customize-build-options-using-build_opt.h).

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@fpistm
Comment options

Answer selected by Kamoool
Comment options

You must be logged in to vote
5 replies
@fpistm
Comment options

@Kamoool
Comment options

@Kamoool
Comment options

@Kamoool
Comment options

@Kamoool
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants