LPC844 make project

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

LPC844 make project

Jump to solution
1,116 Views
tyassin1
Contributor II

Hi,

I would like to make a project in MCUXpresso. But it seems possible only if I use a SDK. I am interested in doing all the code from scratch.

I have been used to use CMSIS (old) or from LPCOpen "lpc_chip_82x" (as an example for LPC824).

Here it is possible to get acceses to registeres through LPC_IOCON etc.

Hope somebody can give a hint on why it is so on LPC844?

Thank you

Thomas

Labels (2)
0 Kudos
1 Solution
1,051 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello

 

In the attached picture you have the necessary to get the project running.

SRAM will be used for global variable, heap and stack.

 

If you have more questions do not hesitate to ask me.

Best regards,

Omar

View solution in original post

5 Replies
1,091 Views
tyassin1
Contributor II

Hi,

Thank you for the answer.

I think I understand. But what is the absolute minimum I need to select from the SDK when I create a project, to start working?

I also notice that it uses a lot of RAM (some 16%), I guess some things are setup to make it do that?

Best regards

Thomas

0 Kudos
1,062 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello

When you create a new project with MCUXpresso for a given target you get a linker file, startup code, and CMSIS files. You can find examples and drivers but they cannot be used if you choose.

Additionally, the SDK also contains all the things for the launch configuration and flash programming.

You can optimize the code in properties->C/C++Build->Settings->Optimization

nxf54944_1-1609790107194.png

If you have more questions do not hesitate to ask me.

Best regards,

Omar

 

 

0 Kudos
1,059 Views
tyassin1
Contributor II

Hi,

Thank you for the reply.

Ok I see. I have now tried to make a project with the SDK for the LPC844 with only selecting "Baremetal" in Operating System and CMSIS in Project options.

 

tyassin1_0-1609791427128.png

I am then able to peel of almost everything to this with only a FOR loop running. 

Memory region Used Size Region Size %age Used
PROGRAM_FLASH: 892 B 64 KB 1.36%
SRAM: 1140 B 8160 B 13.97%
IAP_SRAM: 0 GB 32 B 0.00%

I guess the SRAM is affected by the reservation of the heap-size?

I have some code made for the LPC824 I would like to use, so I just copied this into the project. I had to remove all the LPC_"register_name"-> and simply just use the register name like IOCON->PIO. Then it could be compiled.

Is the selections in the attached picture, the minimum selection required to get a project up and running?

Br

Thomas

0 Kudos
1,052 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello

 

In the attached picture you have the necessary to get the project running.

SRAM will be used for global variable, heap and stack.

 

If you have more questions do not hesitate to ask me.

Best regards,

Omar

1,096 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello

 

Unfortunately, LPCOpen is not available for LPC84x. I suggest you use the SDK, with the SDK you are able to access registers of the modules.

https://mcuxpresso.nxp.com/en/welcome

 

The SDK can be used just to initialize some settings of the device in order to work properly, you can add your drivers instead of using the drivers from the SDK.

 

Let me know if this is helpful, if you have more questions do not hesitate to ask me.

Best regards,

Omar

0 Kudos