Creating a project in mcuxpresso using only cmsis defined access layer

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Creating a project in mcuxpresso using only cmsis defined access layer

1,906 次查看
topspin
Contributor II

Hi community,

I would like to create a new project in mcuxpresso for the lpc845 microcontroller using only the cmsis files to access the peripheral registers. I do not want to use an sdk or other higher level layers.

As far as I know I should only need the lpc845.h file and some other files related to the clock.

Can you help me?

Is there a reference document for this topic?

 

Best regards

0 项奖励
回复
5 回复数

1,870 次查看
topspin
Contributor II

Hi @Alice_Yang 

 

thanks for the support. 

In this way I am able to create a project with the following structure

topspin_0-1702888720608.png

 

but I do not see the LPC845.h file that let me access to the register with the CMSIS definitions. Where can I find it?

Let's say that I currently have some fuctions  like this one below made for the LPC8xx microcontroller

void spi0_init(void){

LPC_SYSCON->SYSAHBCLKCTRL|=(1<<11); /* enable clock to SPI0 */
LPC_SYSCON->PRESETCTRL&=~(1<<0);
LPC_SYSCON->PRESETCTRL|=(1<<0); /* reset SPIO0 */

LPC_SPI0->DIV=12; 

LPC_SPI0->CFG=CFG_MASTER | CFG_ENABLE; /* enable SPI0 as master */
}

My goal it is to create a project to have all these functions running on the LPC845 instead of the LPC82x therefore I need the LPC845.h file to rewrite everything with the correct syntax.

 

I hope you can help me.

 

Best regards

 

0 项奖励
回复

1,850 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @topspin 

It seems from  legacy driver Code_Bundle, you can import demo as my attachment video, then development your own code based on it.

 

BR

Alice

 

0 项奖励
回复

1,822 次查看
topspin
Contributor II
Hi alice,

First of all thanks for the video. However it is really short and barely understable. Can you do a more detailed one?
The video stops after you press "deselect all". Which are the next steps?
0 项奖励
回复

1,810 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello  

Just show you how/where import Code_Bundle demo, next steps is based on your own requirement to import which demo, then it will generated the project like you said above.

 

 

BR

Alice

0 项奖励
回复

1,873 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @topspin 

When create new project, you don't have to choose SDK, as below:

Alice_Yang_0-1702884514113.png

 

BR

Alice

 

0 项奖励
回复