[STM32GENERIC] F746 Discovery

Discussions about the STM32generic core
danieleff
Posts: 336
Joined: Thu Sep 01, 2016 8:52 pm
Location: Hungary
Contact:

Re: [STM32GENERIC] F746 Discovery

Post by danieleff » Mon Jul 24, 2017 4:28 am

Code: Select all

void setup() {
    SerialUART6.begin(115200);
}

void loop() {
    SerialUART6.println(millis());
    delay(1000);
}
pin 0/1

oneselflost
Posts: 27
Joined: Mon Jul 24, 2017 2:32 am

Re: [STM32GENERIC] F746 Discovery

Post by oneselflost » Mon Jul 24, 2017 11:10 pm

Thank you Danieleff for replying.

I tried your suggestion and it landed me with:
"exit status 1
'SerialUART6' was not declared in this scope"

That said, after updating my STM32GENERIC file to the latest variants, the sketch compiles with no issues.

EDIT - The sketch compiles and uploads, but the serial tx does not tx any logical data. Everything I sniffed the serial output with returned gibberish. I will continue playing with this.

Thank you for getting me on my feet with this!

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

Re: [STM32GENERIC] F746 Discovery

Post by zmemw16 » Tue Jul 25, 2017 1:00 pm

try changing the serial monitor baud rate :!:
click on button down to the bottom right

better - locate Setup procedure/function in your sketch, in it you should see a line with ".begin(9600)" in it
it might be 19200, 38400, 57600, 115200

oneselflost
Posts: 27
Joined: Mon Jul 24, 2017 2:32 am

Re: [STM32GENERIC] F746 Discovery

Post by oneselflost » Tue Jul 25, 2017 2:54 pm

Hi zmemw,

Baud rate was the first thing I checked. Everything is set to 115200.

I used an Arduino Uno initially as a serial receiver, but no luck there.
I also used an FTDI Basic with both the Arduino serial monitor, as well as PuTTY.

It's gotta be something I'm doing wrong, can't imagine its the board or repository.
I have an xbee explorer which works well as a serial monitor. TeraTerm might be another alternative.

Looking forward to getting home to tinker with it a bit more.

oneselflost
Posts: 27
Joined: Mon Jul 24, 2017 2:32 am

Re: [STM32GENERIC] F746 Discovery

Post by oneselflost » Wed Jul 26, 2017 2:07 pm

Got it!

so having Serial.begin(115200); AND "SerialUART6.begin(115200);" was causing issues. As soon as I commented out the Serial.begin line, UART6 worked perfectly.

That said, I am over the moon happy!

Thanks everyone for the help! :D

ChrisMicro
Posts: 308
Joined: Fri Mar 24, 2017 4:51 pm
Location: Germany

Re: [STM32GENERIC] F746 Discovery

Post by ChrisMicro » Wed Aug 09, 2017 9:04 am

Finally it seems that there is now "Ethernet" somehow implemented:
https://github.com/danieleff/STM32GENER ... G/Ethernet
But unfortunately it is not working for 2 reasons:

1. The file ending of the example is *.txt insteat of *.ino which prevents the Arduino IDE from loading the example
2. The driver is not found when the example is named correctly.

danieleff
Posts: 336
Joined: Thu Sep 01, 2016 8:52 pm
Location: Hungary
Contact:

Re: [STM32GENERIC] F746 Discovery

Post by danieleff » Wed Aug 09, 2017 1:30 pm

It uses drivers the official drivers Frederic talked about here: viewtopic.php?f=51&t=2220&start=10#p31084

They are still under pull request. The top of the example file has comments on how to install. They are in a different repo + branch, so you cannot just download it from github as zip.

fpiSTM
Posts: 250
Joined: Fri Sep 16, 2016 12:33 pm
Location: Le Mans, France

Re: [STM32GENERIC] F746 Discovery

Post by fpiSTM » Wed Aug 09, 2017 2:44 pm

I'm currently under test before merge the PR.

ChrisMicro
Posts: 308
Joined: Fri Mar 24, 2017 4:51 pm
Location: Germany

Re: [STM32GENERIC] F746 Discovery

Post by ChrisMicro » Wed Aug 09, 2017 2:50 pm

Hi Daniel,
I saw you put a lot of drivers in the repo. In my opinion that is a good idea to get a complete working environment even it is a little bit cumbersome to keep the libraries up to date. As far as I know Roger does this in his repo too.
From time to time I'm looking on the new things you did, pull it and try it. This time I realized that the ethernet example was not working and my old example for the SD-card is also not working. Probably for this cases it would be the best to have a development branch where this preliminary versions reside.
What are your plans for the ethernet? Will the driver be included?
Cheers,
Chris

ChrisMicro
Posts: 308
Joined: Fri Mar 24, 2017 4:51 pm
Location: Germany

Re: [STM32GENERIC] F746 Discovery

Post by ChrisMicro » Wed Aug 09, 2017 2:51 pm

I'm currently under test before merge the PR.
Does this mean the Generic-repo and the STM-repo is merging to one repo?

Post Reply