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

SamChauhan30
Posts: 3
Joined: Mon Apr 17, 2023 7:21 am

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

Postby SamChauhan30 » Mon Apr 17, 2023 7:36 am

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.

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Tue Apr 18, 2023 1:13 am

Run 'idf,py menuconfig' (or your IDEs equivalent) and change it in the menu system instead.

SamChauhan30
Posts: 3
Joined: Mon Apr 17, 2023 7:21 am

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

Postby SamChauhan30 » Thu Apr 20, 2023 10:53 am

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.

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » Fri Apr 21, 2023 2:08 am

It depends. What ESP-IDF are you using? Are you using a particular IDE?

SamChauhan30
Posts: 3
Joined: Mon Apr 17, 2023 7:21 am

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

Postby SamChauhan30 » Fri Apr 28, 2023 6:36 pm

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.

Who is online

Users browsing this forum: Baidu [Spider] and 82 guests