No CMSIS?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

No CMSIS?

1,177件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by xXJTAGXx on Mon Mar 17 16:07:59 MST 2014
Hi,

I have code that was compiled on older Version of LPCXpresse (Version 4 I think), where i didnt use CMSIS. Today i updated my LPCXpresso to Version 7.0.0, which means i cant open my old projects anymore :(

Is there a chance to build a project without CMSIS? I found the old Headers in the lpcxpresso folder (LPCXpresso_old_headers.zip) but i actually have no clue how to include them :/ Also i cant find any examples without CMSIS... luckily i found them on my computer.

Could you please help me and tell me if it is possible to create projects without CMSIS?

Thank you!
0 件の賞賛
返信
6 返答(返信)

1,162件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by xXJTAGXx on Tue Mar 25 12:08:42 MST 2014
Hi,

thanks for your answer. So i think i am doing my own thing now ;D

0 件の賞賛
返信

1,162件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Fri Mar 21 07:16:38 MST 2014

Quote: xXJTAGXx
its nothing religious but i simply dont like these libraries...



...then you have to pay the price...

LPCOpen is now the 'official' Standard. I've migrated dozens of projects from CMSIS2 to LPCOpen now.
Isn't too difficult with Find/Replace...

But if you don't like this things then just copy all your stuff in your project and do your own thing  :)
0 件の賞賛
返信

1,162件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by xXJTAGXx on Fri Mar 21 06:58:52 MST 2014
Hi,

its nothing religious but i simply dont like these libraries...

So you recommend to update all those names, but the problem is that i got like 3000 lines of code which i would have to go through. I guess the only way to use my old code is to include the old headers in my project? Please tell me if there is another way i rly dont wanna update my code...

Thank you.
0 件の賞賛
返信

1,162件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Tue Mar 18 03:36:05 MST 2014
Why don't you use CMSIS? Something religious?

Standard projects should use LPCOpen today. Therefore it's a good idea to migrate to LPCXpresso7.

Older projects (especially your very old project) are not 100% compatible.

To avoid problems you should create a new LPCXpresso7 project and add your code there.

Also you could change your old register names to actual LPC17xx.h naming.

FIO0DIR |= (1<<22);


Use CTRL-H and/or F3 to find new structure names in LPC17xx.h of CMSIS_CORE_LPC17xx:

LPC_GPIO0->FIODIR |= (1<<22);


That's a little bit work, but then you are up to date again...

0 件の賞賛
返信

1,162件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by xXJTAGXx on Tue Mar 18 02:17:59 MST 2014
Hello,

Thank you for your answer. I could create projects without CMSIS but as soon as i want to access any registers like: "FIO0DIR |= (1<<22);" he wouldnt compile. In the previous projects i would include #include "NXP/LPC17xx/LPC17xx.h" but this file doesnt exist anymore... found it in the old headers though. Im using LPCXpresso 1769 by the way.
So do you suggest i just place the header file in my project or is there another way?

When i try opening a project, i go to "Existing Projects into Workspace". Then i select a root directory which results in  "No projects are found to import", but in the folder are .project and .cproject files so i dont understand why he wont find them :(

Thank you for you help!
0 件の賞賛
返信

1,162件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Tue Mar 18 01:01:57 MST 2014
There should be no problems opening a project that was created in LPCXpresso 4 with LPCXpresso 7. Exactly what problem are you seeing when you do this?

And yes, you can create projects that don't use CMSIS. If you use the non-LPCOpen project wizards, then just make sure you select "None" from the CMSIS library selection drop down.

I suggest that before you go any further, you read the LPCXpresso 7 User Manual - found within the built in help system, and in PDF form within your install directory.

Note the the old headers zip file is not recommend for normal use. It is a set of old headers (mainly for LPC2xxx parts) which are not recommended for general use and are longer included within the main LPCXpresso search paths. If you really need a header from within this zip file, simply place the required header file inside your project.

Regards,
LPCXpresso Support
0 件の賞賛
返信