Page 1 of 1

Difference between Pins on Nucleo 64 and Arduino

Posted: Thu Sep 03, 2020 7:14 am
by mebab
There are Arduino connectors on Nucleo 64 L476. But, how do they differ with normal Arduino's connectors?
I have set 32 MHz on Nucleo and connected a LoRa module to both boards (Nucleo and Arduino) to the same pins. My application works on Arduino and doesn't work as expected on Nucleo 64 L476! Is it a pull-up resistor problem or what?

Re: Difference between Pins on Nucleo 64 and Arduino

Posted: Thu Sep 03, 2020 7:31 am
by fpiSTM
Hi @mebab
In fact, ST tries to be as compatible as possible to the Arduino UNO R3 connector.
Anyway, there is a difference for D0 and D1 which I fuess are used by the LoRa shield.
I've described this here:
https://github.com/stm32duino/I-NUCLEO- ... imitations

Re: Difference between Pins on Nucleo 64 and Arduino

Posted: Thu Sep 03, 2020 7:42 am
by mebab
Thanks fpiSTM!
In fact, I don't use D0 and D1 at all. I have used D5 connected to LoRa's RxTx pin as the activator of Rx/Tx modes. It works great with Arduino. But on Nucleo, it shows that channel is always busy (using doCAD mode) and cannot communicate!

Re: Difference between Pins on Nucleo 64 and Arduino

Posted: Thu Sep 03, 2020 7:57 am
by fpiSTM
Another issue could be that the Nucleo works with 3.3V instead of 5V for Arduino.

Which shield you used ? and which Library?

Re: Difference between Pins on Nucleo 64 and Arduino

Posted: Thu Sep 03, 2020 8:45 am
by mebab
I use Arduino101 and the SX1276MB1MAS shield (that connects to 3.3 V of Arduino) with the old sx1272 library (ver. 1.1).

Re: Difference between Pins on Nucleo 64 and Arduino

Posted: Thu Sep 03, 2020 10:03 am
by fpiSTM
Looking at the pinout:
https://os.mbed.com/components/SX1276MB1xAS/

RxTx is on A4 not D5 (which is linked DIO3).

And in the library D4 is used for SX1272_RST :
https://github.com/CongducPham/LowCostL ... 1272.h#L59
while linked DIO2.

Re: Difference between Pins on Nucleo 64 and Arduino

Posted: Thu Sep 03, 2020 10:38 am
by mebab
This LoRa shield has not been designed to fit Arduino pins. Then, just some of the pins can be connected to the same position on Arduino. This means that you have to either bend some pins (or disconnect) or use another interface PCB as I use.
The RxTx on LoRa must not be connected to A4 although it looks so in the first glance in terms of the pin position.

Re: Difference between Pins on Nucleo 64 and Arduino

Posted: Thu Sep 03, 2020 2:40 pm
by fpiSTM
Well in that case. I guess I could not help more. I have no other idea. :(

Re: Difference between Pins on Nucleo 64 and Arduino

Posted: Thu Sep 03, 2020 2:56 pm
by mebab
You helped me a lot. Thank you very much for taking the time! As soon as I find a solution, I will write it down in this post.