No SSD1306 libraries working

Working libraries, libraries being ported and related hardware
stevestrong
Posts: 1350
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: No SSD1306 libraries working

Post by stevestrong » Mon Nov 28, 2016 1:30 pm

Aha, OK.

Funny, a search for "-DSERIAL_USB" in the guthub repo would not reveal these positions as result.

So now back to the original problem, how can this happen and what is the solution? Is it because of older Arduino version (1.6.9)?

Mabez
Posts: 8
Joined: Tue Nov 22, 2016 12:05 am

Re: No SSD1306 libraries working

Post by Mabez » Mon Nov 28, 2016 6:51 pm

At this point I have tried it on 1.6.5, 1.6.9 and the latest 1.6.13, none of which work :(

Mabez
Posts: 8
Joined: Tue Nov 22, 2016 12:05 am

Re: No SSD1306 libraries working

Post by Mabez » Mon Nov 28, 2016 7:04 pm

Looking back at my purchase history I purchased a STM32F103C8T6 blue pill, upon uploading the program detects 128k of flash, which should only be present on the STM32F103CB version. I have tried uploading on both but neither work.

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

Re: No SSD1306 libraries working

Post by RogerClark » Mon Nov 28, 2016 8:35 pm

danieleff wrote:
stevestrong wrote:For F103C, I could not find where the "-DSERIAL_USB" is defined, still seems to be used by the compiler, since F103C generic uses the USB serial.
So, once again, I would like to know why.

EDIT
The serial USB is compiled only if the USB serial (DFU) upload method is chosen in the Arduino menu, according to this link.
It is defined for STLink and JLink too.

Yes.
This is done as STLink and JLink don't have usb to serial capacities ( but BMP does)

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

Re: No SSD1306 libraries working

Post by stevestrong » Tue Nov 29, 2016 9:31 am

Mabez wrote:Looking back at my purchase history I purchased a STM32F103C8T6 blue pill, upon uploading the program detects 128k of flash, which should only be present on the STM32F103CB version. I have tried uploading on both but neither work.
According to your post here you have selected the wrong target (Board : Generic STM32F103CB).
Instead of F103CB for blue pill you need F103C8, in which case you can still select the 128k version from Arduino menu (the C8 chips have actually 128k flash ;) )
Anyway, the serial USB should be defined in this case too.
If it is still not working, try to add to the end of this line : -DSERIAL_USB, and compile again.

Mabez
Posts: 8
Joined: Tue Nov 22, 2016 12:05 am

Re: No SSD1306 libraries working

Post by Mabez » Tue Nov 29, 2016 2:07 pm

According to your post here you have selected the wrong target (Board : Generic STM32F103CB).
Instead of F103CB for blue pill you need F103C8, in which case you can still select the 128k version from Arduino menu (the C8 chips have actually 128k flash ;) )
Anyway, the serial USB should be defined in this case too.
If it is still not working, try to add to the end of this line : -DSERIAL_USB, and compile again.
I have tried both, neither make a difference :( . I added the -DSERIAL_USB line and it now compiles with the Serial.isConnected() but still no output on the serial monitor :/

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

Re: No SSD1306 libraries working

Post by stevestrong » Wed Nov 30, 2016 12:34 pm

Which upload method have you tried? Serial?
This is only useful if you use an extra USB to serial converter board and upload over serial 1. This method is rather appropriate for uploading the bootloader only, but not for normal sw development.

I think you should use the "STM32duino bootloader" method in the Arduino menu.

Mabez
Posts: 8
Joined: Tue Nov 22, 2016 12:05 am

Re: No SSD1306 libraries working

Post by Mabez » Wed Nov 30, 2016 4:28 pm

I think you should use the "STM32duino bootloader" method in the Arduino menu.
I can't believe I missed this! Spent this afternoon flashing the bootloader and now the Adafruit library is working! OLED_I2C still doesn't but I'm not too bothered by that. Thank you very much for your help!

Mabez

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

Re: No SSD1306 libraries working

Post by stevestrong » Wed Nov 30, 2016 9:09 pm

Welcome, i'm glad that i could help.

umejopa
Posts: 9
Joined: Sat Dec 05, 2015 4:53 am

Re: No SSD1306 libraries working

Post by umejopa » Thu Jan 26, 2017 10:14 pm

I try this but have to change to Pb8 and Pb9 to get it work.
So software bitbang works .
Will see way dont hardwire dont will work.
Any one thats have it working on 1.8 anduino stm
Jonas

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest