Créer un nouveau projet

Pour créer un nouveau projet dans LPCXpresso, nous allons donc dans:


File -> New -> Project


Une fenêtre s'ouvre, dans laquelle on sélectionne LPCXpresso C Project , puis Next


Sélectionner NXP LPC1300 Projects en cliquant sur la flèche juste à côté


Puis C Projet , puis Next


Pour le nom du projet, taper Blinky_1 puis Next


Dans la boite de dialogue, sélectionner CMSISv1p30_LPC13xx , puis Finish


Le projet est alors créé.


Les fichiers cr_startup_lpc13.c et main.c sont automatiquement créés dans le gestionnaire de projets, sur la partie gauche de l'écran.


Le fichier main.c automatiquement créé est le suivant:


/*

===============================================================================

Name : main.c

Author :

Version :

Copyright : Copyright (C)

Description : main definition

===============================================================================

*/


#ifdef __USE_CMSIS

#include "LPC13xx.h"

#endif


#include <cr_section_macros.h>

#include <NXP/crp.h>


// Variable to store CRP value in. Will be placed automatically

// by the linker when "Enable Code Read Protect" selected.

// See crp.h header for more information

__CRP const unsigned int CRP_WORD = CRP_NO_CRP ;


// TODO: insert other include files here


// TODO: insert other definitions and declarations here


int main(void) {

// TODO: insert code here


// Enter an infinite loop, just incrementing a counter

volatile static int i = 0 ;

while(1) {

i++ ;

}

return 0 ;

}


Nous allons le modifier pour créer Blinky_1.