Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple UART1 ports displayed after 3.1.6 upgrade #2592

Closed
carloscampos775 opened this issue Mar 7, 2017 · 6 comments
Closed

Multiple UART1 ports displayed after 3.1.6 upgrade #2592

carloscampos775 opened this issue Mar 7, 2017 · 6 comments

Comments

@carloscampos775
Copy link

After upgrading my SP Racing F3 EVO FC to 3.1.6 the configurator is now displaying multiple UART1 ports

uart1

@mikeller
Copy link
Member

mikeller commented Mar 8, 2017

@jflyper: There seems to be a problem in how the data structures for softserial port are initialised:

CLI

# serial
serial 20 1 115200 57600 0 115200
serial 0 64 115200 57600 0 115200
serial 1 0 115200 57600 0 115200
serial 2 0 115200 57600 0 115200
serial 0 0 115200 57600 0 115200
serial 0 0 115200 57600 0 115200

(The 0 identifier is the same with the SOFTSERIAL feature enabled or disabled.)

@TheCluster
Copy link
Contributor

TheCluster commented Mar 8, 2017

In 3.1.6 software serials for SP Racing F3 EVO was disabled, but counter of serial ports wasn't changed.

You may build firmware from sources. Download source for 3.1.6 and make simple changes:

in file src/main/target/SPRACINGF3EVO/target.h

replace #define SERIAL_PORT_COUNT 6 to #define SERIAL_PORT_COUNT 4

Then rebuild firmware and reflash your FC.

@mikeller
Copy link
Member

mikeller commented Mar 8, 2017

@TheCluster: You're right, good spot.

Also, this code is confusing to say the least:

#define USE_SOFTSERIAL1
#define USE_SOFTSERIAL2

#define SERIAL_PORT_COUNT       6

#define USE_ESCSERIAL
#define ESCSERIAL_TIMER_TX_HARDWARE 0 // PWM 1

#undef USE_SOFTSERIAL1
#undef USE_SOFTSERIAL2

@jflyper
Copy link
Contributor

jflyper commented Mar 9, 2017

SOFTSERIALx for EVO will be resurrected in 3.1.7.

89e31d2

@mikeller
Copy link
Member

mikeller commented Mar 9, 2017

@jflyper: Unfortunately I've had to disable it again, since the firmware wasn't fitting into the flash any more after merging some bugfixes.

@jflyper
Copy link
Contributor

jflyper commented Mar 9, 2017

😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants