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.
9 years, 4 months ago.
sim800L communication with STM32F334 nucleo board
Hi, I am trying to make a connection between SIM800L and stm32
- include "mbed.h"
- include <string>
Serial pc(SERIAL_TX, SERIAL_RX); pc comunication Serial SIM900(PA_7, PA_8); tx, rx SIM 900 string result; char x;
void clearString() { result.clear(); }
void callback_rx() {
while (SIM900.readable()) { x = SIM900.getc(); result += x; pc.putc(x); print the answer from SIM900
} }
void sendSMS() {
clearString(); SIM900.printf("AT+CMGF=1\r"); at command for send sms wait_ms(1000); clearString(); wait_ms(1000); SIM900.printf("AT+CMGS="); SIM900.putc('"'); SIM900.printf("07479022226"); SIM900.putc('"'); SIM900.printf("\r"); wait_ms(1000); SIM900.printf("test1"); wait_ms(1000); SIM900.putc(0x1A); wait_ms(5000);
}
int main() {
pc.printf("\r\n GSM 900 TEST\n"); SIM900.attach(&callback_rx); SIM900.baud(9600); wait_ms(100);
while(1) {
wait_ms(10); sendSMS(); SEND SMS wait_ms(100);
}
}
In serial monitor I am getting error "pinmap not found for peripheral". Please help me to resolve the issue
Thanks, Gautam
 
                            
Can anyone help me to resolve this issue
posted by gautam tripathi 17 Jun 2016