Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cmsis Usart Problem in using on LPC1788 #4

Open
abaspoor opened this issue Jul 24, 2022 · 0 comments
Open

Cmsis Usart Problem in using on LPC1788 #4

abaspoor opened this issue Jul 24, 2022 · 0 comments

Comments

@abaspoor
Copy link

**Hi,

im new on using cmsis

i have a self developed board based on lpc1788 and i using keil for programing and development

i wrote this program as simple example for usart in lpc1788

but in debug session it return the ( // USART is not configured (mode not selected) ))**

/////////////////////////////////////////////////////////////////////////////////////////
#include` <UART_LPC17xx.h>

void usart1init(void);

static ARM_USART_SignalEvent_t *Uhandler;


int main(void){

	usart1init();
	while(1);
}

void usart1init(void){
	ARM_DRIVER_USART MySerial = Driver_USART1;
	char sir[5] = "leg";
MySerial.Initialize(*Uhandler);
MySerial.PowerControl(ARM_POWER_FULL);
MySerial.Send(&sir[0],sizeof(sir));
}
/////////////////////////////////////////////////////////////////////////////////////////////

can u guide me ? where am i wrong on this code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant