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
Hi @Alice_Yang
thanks for the support.
In this way I am able to create a project with the following structure
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
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