USBserial don't works - what's wrong?

stevestrong
Posts: 1160
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: USBserial don't works - what's wrong?

Post by stevestrong » Fri Jan 13, 2017 9:15 am

@vde
I am aware that USB can be buggy. I just wanted to ask you to try with 4.8.3 to see whether is working or not.

If it is working, than it is for sure the USB SW + compiler issue, which we could then check.

Of course, you could also help by posting the disassembled version of the questioned USB module(s) for both compiler versions, just to easy our collective work, as we are doing all this in our free time...

vde
Posts: 13
Joined: Wed Jan 11, 2017 3:28 pm

Re: USBserial don't works - what's wrong?

Post by vde » Sat Jan 14, 2017 11:11 pm

stevestrong wrote:I just wanted to ask you to try with 4.8.3 to see whether is working or not.
yes 4.8 and 4.7 are working, but this bug is standing up on the way of progress. Code from 5.4 is near 20% less so I WANT to use it - but can't use even 4.9

vde
Posts: 13
Joined: Wed Jan 11, 2017 3:28 pm

Re: USBserial don't works - what's wrong?

Post by vde » Sat Jan 14, 2017 11:15 pm

victor_pv wrote:Could be a bug in the compiler too
yes it can - but not in ARM approved assemblies which every day compiles megabytes of code.

victor_pv
Posts: 1263
Joined: Mon Apr 27, 2015 12:12 pm

Re: USBserial don't works - what's wrong?

Post by victor_pv » Sun Jan 15, 2017 3:05 am

vde wrote:
victor_pv wrote:Could be a bug in the compiler too
yes it can - but not in ARM approved assemblies which every day compiles megabytes of code.
Do you mean that because ARM approved it would not have bugs? I have to disagree.
I.E.
This bug, which affects a bunch of different versions, and seems like it wasn't corrected til now, since the release notes specfically mention it is corrected now, and the bug report list multiple failing versions:
https://launchpad.net/gcc-arm-embedded/ ... ment/14413
* Fixed stack corruption when using high registers and LR register
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77933

VadimEL
Posts: 41
Joined: Sat Aug 13, 2016 1:28 pm
Location: Ukraine Odessa

Re: USBserial don't works - what's wrong?

Post by VadimEL » Sun Jan 15, 2017 8:16 am

USB COM disappear, do not know where is it, meybe i upload mini boot loader and com port disappear?
And SoftwareSerial stop work :(
Attachments
USB COM disappear.JPG
USB COM disappear.JPG (117.51 KiB) Viewed 290 times

stevestrong
Posts: 1160
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: USBserial don't works - what's wrong?

Post by stevestrong » Sun Jan 15, 2017 1:48 pm

Double-check that the allocated pins for software serial are not disturbing the USB pins (PA11/PA12 on blue pill).
Also, I wold strongly recommend to use the PXY notation for the port pins instead of raw numbers.
For example, use "PA7" instead of "4" (on blue pill).

VadimEL
Posts: 41
Joined: Sat Aug 13, 2016 1:28 pm
Location: Ukraine Odessa

Re: USBserial don't works - what's wrong?

Post by VadimEL » Mon Jan 16, 2017 11:46 am

sorry i am stupid, choose generic - but have maple mini.

stevestrong
Posts: 1160
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: USBserial don't works - what's wrong?

Post by stevestrong » Mon Jan 16, 2017 12:34 pm

@Vadim, please add to the title [SOLVED], if your problem is solved now.

zmemw16
Posts: 1157
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: USBserial don't works - what's wrong?

Post by zmemw16 » Tue Jan 17, 2017 12:02 am

i use stlink pretty much for all, even 'baite MM'.
if i use MM then stlink is not available, so i tend to use generic 103c and b variant

why should it make a difference, if so what is/are the difference(s) ?

stephen

vde
Posts: 13
Joined: Wed Jan 11, 2017 3:28 pm

Re: USBserial don't works - what's wrong?

Post by vde » Tue Jan 17, 2017 7:07 pm

victor_pv wrote:
vde wrote:
victor_pv wrote:Do you mean that because ARM approved it would not have bugs? I have to disagree.
That bugs are very rare, and moreover a lots of programs which works fine after 5.4 now even don't starts after 6.1. Surprise :mrgreen:

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest