LPC54628 Writing directly to registers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC54628 Writing directly to registers

816 Views
aswinprabhu
Contributor III

Hello,

I'm trying to write a sample code to drive an LED using the output pin of LPC54628 using uVision 5.28. Saw some examples in SDK 2.7.0 (gpio_led). However, I prefer to write to registers directly instead of using pin_mux files.

#include "LPC54628.h"

int main(void){

IOCON_PIO29 = 0x01;

 while(1){

}

}

I tried writing to IOCON register just to see whether the general idea/syntax is ok or not. It throws an error stating 'identifier "IOCON_PIO029" is undefined'.

Can someone tell which files am I missing?

Thanks in advance!

Labels (1)
Tags (2)
0 Kudos
Reply
1 Reply

732 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Aswin Prabhu ,

Where you get SDK v2.7 ? From I know the latest version now is V2.6.x.

And in which file you find the Macro of IOCON_PIO29 ? If you don't want to use SDK, you need define it 

by yourself.  Recommend you refer to  SDK demo.

And please download SDK package from: https://mcuxpresso.nxp.com/en/select      

 

 


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply