Search found 505 matches

by stevestrong
Tue May 25, 2021 7:50 am
Forum: General discussion
Topic: Multiple i2c port drive & Multiple SPI port drive
Replies: 12
Views: 11901

Re: Multiple i2c port drive & Multiple SPI port drive

I wonder which type of eeprom do you use, is it the same device with two addresses? It is not common...
Have you tried to access the 0x50 address?

The smaller value the pull-up resistor the better, so leave it 3.3k or 2.7k.
But I do not think that this really matters as long as the scanner finds it ...
by stevestrong
Mon May 24, 2021 10:07 am
Forum: General discussion
Topic: Multiple i2c port drive & Multiple SPI port drive
Replies: 12
Views: 11901

Re: Multiple i2c port drive & Multiple SPI port drive

For slow mode you just leave I2C_FAST_MODE away:

Code: Select all

TwoWire WIRE2 (2);
#define Wire WIRE2
Be sure that you connect to PB10/11 pins.
by stevestrong
Sun May 23, 2021 4:05 pm
Forum: General discussion
Topic: Multiple i2c port drive & Multiple SPI port drive
Replies: 12
Views: 11901

Re: Multiple i2c port drive & Multiple SPI port drive

Have you tried to run the I2C scanner with the second I2C port?
Does it recognize your EEPROM? On which address?
by stevestrong
Fri May 21, 2021 9:37 am
Forum: General discussion
Topic: Issue with STM32F1 Blue Pill and USB
Replies: 10
Views: 28117

Re: Issue with STM32F1 Blue Pill and USB

You could eventually try to re-solder the USB pins, it may help.
by stevestrong
Fri May 21, 2021 8:32 am
Forum: General discussion
Topic: Multiple i2c port drive & Multiple SPI port drive
Replies: 12
Views: 11901

Re: Multiple i2c port drive & Multiple SPI port drive

To use the second I2C port you can use following lines as shown in
https://github.com/rogerclarkmelbourne/Arduino_STM32/blob/098a98c30e01eeb3f1cf9e9589a74a9263251e7c/STM32F1/libraries/Wire/examples/i2c_scanner_wire/i2c_scanner_wire.ino#L29-L31 (remove comment from the beginning of the lines).

For ...
by stevestrong
Fri May 21, 2021 8:23 am
Forum: General discussion
Topic: Arduino error about multiple wire.h libraries
Replies: 0
Views: 2739

Re: Arduino error about multiple wire.h libraries

Please insert to line 124 of
C:\Users\Umer\AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2021.3.18\libraries\Wire/utility/WireBase.h
the following line:

Code: Select all

    size_t write(const uint8* buf, int nr) { write((uint8*)buf,nr); }
and try again.
by stevestrong
Sun May 09, 2021 10:20 am
Forum: General discussion
Topic: Issue with STM32F1 Blue Pill and USB
Replies: 10
Views: 28117

Re: Issue with STM32F1 Blue Pill and USB

As I said, always leave the jumpers on default positions "0" (GND) .

It is known that USB3 ports do have problems with the board, so better use USB2 only.
Flash this BIN file with STLink, or better with STM32CubeProgrammer. If you use/install the latest, it will also install the serial drivers ...
by stevestrong
Thu May 06, 2021 1:54 pm
Forum: General discussion
Topic: Issue with STM32F1 Blue Pill and USB
Replies: 10
Views: 28117

Re: Issue with STM32F1 Blue Pill and USB

You don't need to change BOOT0, leave the jumper all the time on 0, and flash the bootloader again.
Which PID is shown on the working laptop?
The 0003 is the PID for the DFU mode, and 0004 for CDC serial.
by stevestrong
Sat May 01, 2021 9:50 pm
Forum: Projects
Topic: CNC firmware for robot arms + more (timer & upload questions)
Replies: 4
Views: 7501

Re: CNC firmware for robot arms + more (timer & upload questions)

viewtopic.php?f=2&t=301
Which core? Which OS?

Here, in general, only Arduino IDE is supported, as the forum title indicates.
For other IDEs you are on your own. Eventually you may find some answers in the IDE section of the forum.
by stevestrong
Sat May 01, 2021 9:48 pm
Forum: IDE's
Topic: Arduino IDE
Replies: 2
Views: 4571

Re: Arduino IDE

viewtopic.php?f=2&t=301

Which OS?
You need to install STM32CubeProgrammer.

Go to advanced search