Difference between Pins on Nucleo 64 and Arduino

Post here all questions related to STM32 core if you can't find a relevant section!
Post Reply
mebab
Posts: 115
Joined: Mon Aug 24, 2020 12:42 pm
Answers: 4

Difference between Pins on Nucleo 64 and Arduino

Post 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?
Last edited by mebab on Thu Sep 03, 2020 7:31 am, edited 1 time in total.
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Difference between Pins on Nucleo 64 and Arduino

Post 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
mebab
Posts: 115
Joined: Mon Aug 24, 2020 12:42 pm
Answers: 4

Re: Difference between Pins on Nucleo 64 and Arduino

Post 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!
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Difference between Pins on Nucleo 64 and Arduino

Post 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?
mebab
Posts: 115
Joined: Mon Aug 24, 2020 12:42 pm
Answers: 4

Re: Difference between Pins on Nucleo 64 and Arduino

Post 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).
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Difference between Pins on Nucleo 64 and Arduino

Post 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.
mebab
Posts: 115
Joined: Mon Aug 24, 2020 12:42 pm
Answers: 4

Re: Difference between Pins on Nucleo 64 and Arduino

Post 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.
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: Difference between Pins on Nucleo 64 and Arduino

Post by fpiSTM »

Well in that case. I guess I could not help more. I have no other idea. :(
mebab
Posts: 115
Joined: Mon Aug 24, 2020 12:42 pm
Answers: 4

Re: Difference between Pins on Nucleo 64 and Arduino

Post 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.
Post Reply

Return to “General discussion”