Page 1 of 1

I want to change pin number of modbus master example but i can't

Posted: Mon Apr 17, 2023 7:36 am
by SamChauhan30
I want to change pin number of Rx and Tx pin in modbus master example. I changed it in sdkconfig.h file and then after save it. but when i build my project, all changes are reversed or pin number became as it is before i make changes.

Ex. I changed my Rx pin GPIO 22 to GPIO 17 but when i build my project my Rxpin number changed automatically to 22.

Re: I want to change pin number of modbus master example but i can't

Posted: Tue Apr 18, 2023 1:13 am
by ESP_Sprite
Run 'idf,py menuconfig' (or your IDEs equivalent) and change it in the menu system instead.

Re: I want to change pin number of modbus master example but i can't

Posted: Thu Apr 20, 2023 10:53 am
by SamChauhan30
ESP_Sprite wrote:
Tue Apr 18, 2023 1:13 am
Run 'idf,py menuconfig' (or your IDEs equivalent) and change it in the menu system instead.
please explain me in brief, i am beginner in idf. i cant understand where to change in menuconfig, and how can i change menuconfig.

Re: I want to change pin number of modbus master example but i can't

Posted: Fri Apr 21, 2023 2:08 am
by ESP_Sprite
It depends. What ESP-IDF are you using? Are you using a particular IDE?

Re: I want to change pin number of modbus master example but i can't

Posted: Fri Apr 28, 2023 6:36 pm
by SamChauhan30
ESP_Sprite wrote:
Fri Apr 21, 2023 2:08 am
It depends. What ESP-IDF are you using? Are you using a particular IDE?
Thank you for your help i got my answer in your previous post. I tried another time and find that sdkconfig and your solution work perfectly. Thank you so much.