Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years, 1 month ago.
Changing default serial for CellularContext
Hello,
I'm new to mbed and it's quite hard for me to navigate through the documentation.
I would like to run the mbed-os-example-cellular (https://os.mbed.com/teams/mbed-os-examples/code/mbed-os-example-cellular/) but I can't find anywhere where can I change the default UART serial port to another one.
I use STM32L432KC Nucleo board and I would like to use A2 and A7 pins for serial communication for AT commands.
I think that it is somehow related to `mbed_app.json` but when running:
mbed compile - - config
I can't find any record related to that configuration option.
So how can I set the A2 and A7 pins to work with the CelluralInterface?
1 Answer
5 years, 1 month ago.
Hi Kacper,
In your situation, need be a configure, if you're using OS 5.12, you can use the following code in mbed_app.json Basic form is here mbed-os/features/cellular/framework/targets/QUECTEL/BG96/mbed_lib.json
https://os.mbed.com/users/Daniel_Lee/code/mbed-os-example-cellular-BG96/
mbed_app.json example is.,. 38 "QUECTEL_BG96.tx": "D1", 39 "QUECTEL_BG96.rx": "D0",