Search found 12 matches

by caniggia
Tue Jul 25, 2017 9:25 am
Forum: IDE's
Topic: Debug STM32 with VScode
Replies: 10
Views: 239

Re: Debug STM32 with VScode

HI @iamseer

It works on windows too.

thnx
caniggia
by caniggia
Mon Jun 12, 2017 12:25 pm
Forum: STM Core
Topic: Arduino_Core_STM32F1 & I2C
Replies: 13
Views: 548

Re: Arduino_Core_STM32F1 & I2C

Hi @Wi6Labs In slave sketch i've commented out delay in loop. And also Serial.print's in receiveEvent. It works OK even without delay between Read & Write in master. Then i've changed the order in master. First Write then Read. Because i'm gonna use it that way. Master sends command and then get dat...
by caniggia
Thu Jun 08, 2017 8:44 am
Forum: STM Core
Topic: Arduino_Core_STM32F1 & I2C
Replies: 13
Views: 548

Re: Arduino_Core_STM32F1 & I2C

Hi @Wi6Labs & @fpiSTM Thanks for your effort to get this slave library to work. The delay inside the slave loop example must be less than the delay between read and write command inside the loop of master example. Maybe you can just remove it. The Serial speed must be increase to allow to exit the f...
by caniggia
Fri Jun 02, 2017 11:57 am
Forum: STM Core
Topic: Arduino_Core_STM32F1 & I2C
Replies: 13
Views: 548

Re: Arduino_Core_STM32F1 & I2C

Maybe this will help. I've changed delay from 20ms to 100ms: hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello x is b x is c x is d x is e hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello It's better b...
by caniggia
Fri Jun 02, 2017 10:45 am
Forum: STM Core
Topic: Arduino_Core_STM32F1 & I2C
Replies: 13
Views: 548

Re: Arduino_Core_STM32F1 & I2C

Hi Wi6Labs I've downloaded your 3 files and tried your slave_receiver_sender.ino. What master sketch did you use to test it? I have combined master_writer & master reader. master_writer_reader: #include <Wire.h> void setup() { Wire.begin(); // join i2c bus (address optional for master) Serial.begin(...
by caniggia
Thu Jun 01, 2017 4:07 pm
Forum: STM Core
Topic: Arduino_Core_STM32F1 & I2C
Replies: 13
Views: 548

Re: Arduino_Core_STM32F1 & I2C

@Wi6Labs

Thanks,
i'm gonna test it right tomorrow morning.

caniggia
by caniggia
Mon May 29, 2017 1:07 pm
Forum: STM Core
Topic: Arduino_Core_STM32F1 & I2C
Replies: 13
Views: 548

Re: Arduino_Core_STM32F1 & I2C

Hi @Wi6Labs
Thanks for your reply.

Yes, it's critical for me to have Rx Slave & Tx Slave mode.
When will the new HAL be ready?

Can you point me to any other library(Tx & Rx Slave support), even if non Arduino library.
Some simple example how to use library would be nice too.

thnx
caniggia
by caniggia
Mon May 29, 2017 9:02 am
Forum: STM Core
Topic: Arduino_Core_STM32F1 & I2C
Replies: 13
Views: 548

Re: Arduino_Core_STM32F1 & I2C

Hi @fpiSTM Thanks for your reply. Before i try to change I2C to PB6 & PB7, i have tested Wire library again on original PB8 & PB9. "master_writer" & "slave_receiver" are working OK. But, "master_reader" & "slave_sender" don't work. Master just reads 6 bytes of 0x00(SDA is always LOW) and this 4-5 ti...
by caniggia
Fri May 26, 2017 11:13 am
Forum: STM Core
Topic: Arduino_Core_STM32F1 & I2C
Replies: 13
Views: 548

Arduino_Core_STM32F1 & I2C

Hi I have tried "Arduino_Core_STM32F1" repo: https://github.com/stm32duino/Arduino_Core_STM32F1 , because i need uC as I2C slave. I found out that I2C works only on PB8 & PB9. As i have boards with SCL & SDA on PB6 & PB7 i have a question: has anyone managed to get I2C working on PB6 & PB7 with this...
by caniggia
Thu May 18, 2017 12:01 pm
Forum: STM Core
Topic: Introducing the new Arduino core for STM32
Replies: 19
Views: 1178

Re: Introducing the new Arduino core for STM32

OK,
i've added '-USBCON' instead of '-DUSBCON' and now it compiles.

And if i add 'Serial.begin()' to the sketch i get USB virtual COM.