Search found 68 matches

by Phono
Thu Apr 02, 2020 8:37 am
Forum: Maple & Maple mini etc
Topic: Olimexino STM32 board bricked!
Replies: 8
Views: 14532

Re: Olimexino STM32 board bricked!

Sadly, the board is detected by the computer, but it seems unable to identify itself so the computer does not regard it as a DFU device. USB is mandatory when you want to upload a sketch from the Arduino IDE. So my board is stuck to this version of my sketch forever.
by Phono
Tue Mar 31, 2020 9:09 pm
Forum: Maple & Maple mini etc
Topic: Olimexino STM32 board bricked!
Replies: 8
Views: 14532

Re: Olimexino STM32 board bricked!

Thank you for all these details. To answer your question, the blink sequence at power up is perfectly normal, even the "button dance" to force the permanent bootloader mode works. So I should suspect the hardware... The USB cable I used works with another board. The only remaining componen...
by Phono
Tue Mar 31, 2020 1:04 pm
Forum: Maple & Maple mini etc
Topic: Olimexino STM32 board bricked!
Replies: 8
Views: 14532

Re: Olimexino STM32 board bricked!

Can you give me hints on the flashing procedure? Connections to make (I have a ST-Link module, but never used it), where to find the genuine bootloader file, etc?
by Phono
Tue Mar 31, 2020 8:35 am
Forum: Maple & Maple mini etc
Topic: Olimexino STM32 board bricked!
Replies: 8
Views: 14532

Olimexino STM32 board bricked!

I have a project where I use the CAN bus. As you all know, this prevents the USB from working simultaneously on a STM32F1, so a special trick is required to use DFU programming. What I usually do is to start the upload from the Arduino IDE, and when the log says: Searching for DFU device [1EAF:0003]...
by Phono
Tue Mar 31, 2020 8:12 am
Forum: General discussion
Topic: Softwire library blocks in case of hardware failure
Replies: 2
Views: 2632

Re: Softwire library blocks in case of hardware failure

Exactly. I found a place where a dead loop can occur. I added a simple timeout mechanism and it helped. The added lines are identified by the comment: JMD 30 March 2020 void SoftWire::set_scl(bool state) { int Timeout = 10000 ; // JMD 30 March 2020 I2C_DELAY(this->i2c_delay); gpio_write_bit(sclDevic...
by Phono
Mon Mar 30, 2020 9:57 am
Forum: General discussion
Topic: Softwire library blocks in case of hardware failure
Replies: 2
Views: 2632

Softwire library blocks in case of hardware failure

Hi all, i have interfaced a MPU6050 with an Olimexino STM32 board using the Softwire library. I was performing tests, and I tried to short SCL and SDA to produce an error and check whether it is correctly handled in my code. To my surprise, doing so blocks the execution somewhere in the library, so ...
by Phono
Sat Mar 21, 2020 9:09 am
Forum: Let us know a bit about you and your projects
Topic: Hey everybody :)
Replies: 3
Views: 3344

Re: Hey everybody :)

Yes, it does. It just needs a CAN transceiver, which is included in some boards, like the Olimex ( https://www.olimex.com/Products/Duino/STM32/open-source-hardware ) board I have used a lot with total satisfaction. I have also improved the initial HardwareCAN library inherited from libmaple, which i...
by Phono
Thu Mar 19, 2020 9:36 am
Forum: Let us know a bit about you and your projects
Topic: Hey everybody :)
Replies: 3
Views: 3344

Re: Hey everybody :)

Maybe you could consider using CAN between the master and the slave. This is a neat solution, very flexible, and very robust. Lines may be very long (100 m or more) without communication errors, unlike I2C that cannot allow more than say one metre.

Go to advanced search