Adding USB Serial

The official STMicroelectronics Arduino core
User avatar
RogerClark
Posts: 5467
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Adding USB Serial

Postby RogerClark » Sat Oct 22, 2016 7:53 pm

Vassilis,

Thanks for all your hard work on this enhancement.

I will download it today and test on my RedPill

I am sure a lot of people will be interested to try the STM core once this has been added and fully intergated

User avatar
Vassilis
Posts: 291
Joined: Thu May 21, 2015 6:42 am
Location: Thessaloniki, Greece
Contact:

Re: Adding USB Serial

Postby Vassilis » Sat Oct 22, 2016 8:52 pm

You are welcome Roger ! ;)

User avatar
RogerClark
Posts: 5467
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Adding USB Serial

Postby RogerClark » Sun Oct 23, 2016 9:28 am

Vassilis

I have taken a quick look, and I think that you have effectively not used a library for the bluepill variant, but are building all the system files and HAL files etc when the Arduino builds the sketch.

Is this correct ?

User avatar
Vassilis
Posts: 291
Joined: Thu May 21, 2015 6:42 am
Location: Thessaloniki, Greece
Contact:

Re: Adding USB Serial

Postby Vassilis » Sun Oct 23, 2016 2:15 pm

Roger,

To reduce the compiling time just delete all .c and .cpp files (except syscalls_stm32.c file) from cbp_HALMX_2\halmx_2\cores folder.

User avatar
RogerClark
Posts: 5467
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Adding USB Serial

Postby RogerClark » Sun Oct 30, 2016 1:31 am

Hi Vassilis

Fantastic work.

Compiles and runs fine

I didn't delete any files as there were less files to compile than on the libmaple core, and the IDE used cached versions of most of the object files.

I'll need to work out the best way to integrate this into the official STM repo.


PS.
I'm mega busy with work at the moment, so I'm probably not going to be able to move this to the official repo until next weekend.
I'll also need to take a close look at the code

And... I'll need to look at the driver installation, because the USB Serial enumerates as the STM Virtual Serial device, which needs a different driver from the Maple Serial one (Though perhaps no driver is needed at all or perhaps STM distribute the driver via Microsoft - I really don't know at the moment)

User avatar
Vassilis
Posts: 291
Joined: Thu May 21, 2015 6:42 am
Location: Thessaloniki, Greece
Contact:

Re: Adding USB Serial

Postby Vassilis » Mon Oct 31, 2016 7:39 am

Nice ! :D


Return to “STM Core”

Who is online

Users browsing this forum: No registered users and 1 guest