LabVIEW ARM LPC2388

Bonjour,
Actuellement je travail avec une carte d'évaluation MCB2300 équipée d'un micro contrôleur LPC2388, celui-ci dispose de 64kB de SRAM au lieu de 32kB pour le LPC2378. Je souhaite créer une cible générique propre au micro contrôleur LPC2388. Pour cela j'ai besoin de recompiler plusieurs librairies afin de les adapter à ce micro contrôleur.
1)CAN_LPC2378.lib et RLARM_CAN.lib situés LabVIEW2010\Targets\keil\Embedded\RealView\generic\LPC2378\Template\Drivers\CAN. Pour cela j'aurai besoin du fichier projet Keil afin de modifier le type du micro contrôleur dans le projet puis recompiler le projet afin de recréer les librairies adaptées au LPC2388. Où ce trouve les fichiers projet permettant de recompiler ces librairies ?
2)MCB2300IO.lib située en LabVIEW2010\Targets\keil\Embedded\RealView\MCB2300\Template\Drivers\IO afin de faire la même operation qu'en 1)
3)FS_ARM_L.lib et TCP_ARM_L.lib situées en Keil\ARM\RV31\LIB. Concernant ces librairies fournies par Keil, je pense qu'il n’est pas nécessaire de les recompiler. Mais quelqu'un pourrait-il me le confirmer.
Merci d'avance pour vos réponses

Bonjour,
Effectivement, pour appeler une fonction C à partir d'un code inclu dans un fichier C, il suffit d'appliquer la méthode que vous avez décris. Par contre je me permet de vous exposer la méthode que vous avez utilisé en la completant et en donnant un Fichier projet exemple en pièce jointe.
Le programme réalisé pour l'exemple consiste à realiser une addition et une soustraction à partir de 2 variables A et B. L'addition et la soustraction sont réalisées en utilisant 2 fonctions écrite en C. le code de ces fonctions est inclus dans le fichier operations_base.c. Les fonctions C d'addition et de soustraction sont appelées dans le VI principale par le VI appeler une fonction d'un DLL. L'exemple fonctionne pour une cible LPC2378. Voici la procédure à suivre pour réaliser le fichier projet ARM.
1) Inclure dans le fichier projet LPC2378, le fichier operations_base.c contenant les fonctions. en faisant un clic droit sur la cible puis en sélectionnant Ajouter/Fichier...
2) Dans le VI principal Test001.vi inserer le VI Appeler une fonction d'une DLL situé dans la palette fonction/Connectivit/Librairies and Executable.
3) Configurer le VI Appeler une fonction d'une DLL en faisant un clic droit  Configuer...
Onglet Fonction
Dans le champ nom de fonction : mettre le nom de la fonction c appelée. Dans notre cas il s'agit de la fonction AdditionAB ou SoustractionAB
Onglet Paramètres
Ajouter les paramètres d'entrée/sortie de la fonction C
-Paramètres entrés A et B
Nom : A ou B
Type : Numérique
Type de données : Entier 32 bits signé
Passer : Valeur
-Paramètre de sortie resultat
Nom : resultat
Type : Numérique
Type de données : Entier 32 bits signé
Passer : Pointeur sur valeur
Si le fonction a été correctement définie, nous devons avoir dans le champ prototype de la fonction en bas de la fenêtre
void AdditionAB(int32_t A, int32_t B, int32_t *resultat)
Cliquer sur OK pour terminer.
4)Ajouter le fichier C dans les spécifications de construction  en faisant un clic droit sur Application/Properties
Catégorie/Source File
Ajouter le fichier C opérarions_base.c dans aditionalFiles (*.c, *.s, *.o, *.lib)
Cliquer sur OK pour valider
5) Sauvegarder tous le projet, compiler le tout et executer sur la cible LPC2378
De même pour appeler une fonction c à partir d'un fichier librairie .lib. Il faut je pense ajouter ce fichier au projet, configurer le VI Appeler une fonction d'une DLL avec le paramètre d'entrée/sortie de la fonction C, inserer le fichier.lib dans les specifications de construction, sauvegarder le projet et compiler.
Cordialement
Pièces jointes :
test001.zip ‏10 KB

Similar Messages

  • Labview arm module

    hi every one,
            my project is remote patient monitoring using arm with labview based embedded plotform..I have the  arm7  LPC(2378)  processor  . can i use import labview arm module in that processor...also give some useful link to the project...

    Don't know about your project, but LabVIEW Embedded Module for ARM Microcontrollers "project" is here:http://www.ni.com/arm/

  • Program LPC2378 with code generated by LabView ARM embedded, without using LabView

    I would like to use the C files that are originally generated in LabVIEW ARM embedded module, and use Keil software (or other lower cost) to load these files into custom boards with LPC2378 controller without LabView.  Are there detailed instuctions for this?  I am using version 8.6 and the ARM embedded module is 1.1.  
    My reason for this task is boards are being made in a maufacturing facility oversees, and they need to be programmed at their end. 
    I read a forum describing the use of  hex files, but not enough detail for me to figure this out.
    Thanks in advance.

    Hey Bob,
    What you're looking to do should be possible. You'll just need to build the application in LabVIEW, then you should be able to use the uVisions command line to deploy the system. As for the C code itself, it gets generated when you build your build specification and you should see it placed in the same directory as your labview project in a folder named the name of your project. For example, if your project were called My ARM Project, you'll see a folder called "My ARM Project" created/updated whenever you build the build specification in that project and it will contain the C Code. To see the code organized logically, after building your build specification, right-click on the ARM target and select "Show Keil uVision". This will open a uVision window in "LabVIEW mode" and you'll be able to see all of the C files associated with you application; your VI specific code will be under a folder titled "VIs". You could also just open the C code files from disk in uVision, which is what you'll need to do if LabVIEW isn't installed. The main LabVIEW project can be found in the built directory described above as the LabVIEW.uvproj file in the "target"/Application/"uvision version"/Project directory. For example my main file was built in MyProject\EK_LM3S8962\Application\4.01\Project. From there, you'll need to follow uVision's process for compiling and deploying the target code from their command line:
    Command Line
    http://www.keil.com/support/man/docs/uv4/uv4_comma​ndline.htm
    Hope this helps!
    --Ryan_S

  • Labview arm spi protocol

    Hi,
    I`m trying to read out an Interpolation-Hardware using the SPI-Port of the lm3s8962-Eval-Board.
    Does anybody know the type of SPI-protocol used in the Labview-ARM-Toolkit.
    For my Slave-Hardware i need the Freescale-Protocol(16Bit)....
    At the moment i can sent data but i dont recieve anything.
    I also need to know if its possible to change the settings of the SPI-Configuration(maybe to change the time between data-packeges).
    I`m using: Labview2011+Labview Embedded for ARM-Module+lm3s8962-Eval-Board(not the usb-type)+GEMAC IP2000 (Ipo-IC).
    Thank you for help!

    I think as SPI doesn´t specify a particular protocol so do the LabVIEW ARM SPI functions.
    You are free to change all the parameters the Interface offers, so there is no special protocol used with the
    LabVIEW ARM Module. Please check out the SPI-documentation of your slave with respect to timing and clock configuration.
    I´m sorry, but thats all I can say.
    Marco Brauner NIG

  • How can we store code permanent into lm3s8962 through labview arm module?

    I am using labview 2012with arm module.I got problem that my code is not store  permenent  into lm3s8962 luminary board so when i unpuggled the board then loaded code erased. so is their any setting should done which can store code permenent into the  lm3s8962 luminary board..?

    After a build in LabVIEW you can see the code in KEIL uVision. I think that your project is already set to download it to the flash.
    I think you have set the option in de LabVIEW build: enable debugging and Generate guard code.
    when you uncheck them, your application wont need a kick from your debugger to start the application..
    Wouter.
    "LabVIEW for ARM guru and bug destroyer"

  • Project build problem - Labview ARM STM32F103

    Hello,
    i`m trying to make project using LabVIEW Embedded Module for ARM Microcontrollers 2010 and my STM32F103 board. Everything is fine . I made new project, added some outputs, but when i try to build it, it stucks for a while and I get error:
    [17:38:59] Status: Error
    Unexpected error occurred.
    [Source: Cannot read project file 'C:\Users\Sh\
    Documents\Untitled Project 1\STM32F103x\
    Application\0.061\Project\LabVIEW.uvproj' !
    Timed out waiting for a response
    Detail: [UVSC_PRJ_LOAD, MSG: 0x201F, STATUS:
    0x1D] Code: 29]
    I`m using that target : http://forums.ni.com/ni/attachments/ni/420/2699/1/STM32F10x.zip
    Any ideas what might be wrong?
    Thanks.

    Hi mark331
    I would recommend You to go in details through forum http://forums.ni.com/ni/board/crawl_message?board.id=420&message.id=1886. There is multiple number of tips and instructions about ARM STM32F103 and LabVIEW.
    I am pretty sure, that You can find an answear there.
    Best regards
    Barbara

  • Labview ARM embedded Module

    I just watched the NI webcast of the ARM module for labview where it
    shows how you can download an application directly onto a target (NI)
    arm board...
    Anyone know if you can download it onto a non-NI arm board? Besides
    a usb-jtag connection, I would imagine that the user would need to
    program some sort of custom board support package in order for labview
    to know what variety of ARM processor its working with.
    Also, is there a way to hand tweak the generated c-code and compile
    it separately. Don't know what ARM compiler NI uses (probably gnu
    based), or if it's even selectable, but we use different arm compilers
    on different projects, so it would be nice to compile and link labview
    generated code to some of our existing code/libraries.

    Behind the scenes, the LabVIEW Embedded Module for ARM Microcontrollers
    uses the Keil uVision development toolchain to compile, download, and
    debug applications on ARM Microcontrollers.  Therefore, any devices
    that are supported by the RL-ARM Real-Time Library can be programmed
    with LabVIEW. Have a look at the following article:
    ARM Devices Supported by LabVIEW
    If you would like to run LabVIEW on another processor, read this tutorial on using a Tier2 ARM device with the LabVIEW Embedded Module for ARM Microcontrollers.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Portage Labview ARM module sur Atmel AT91SAM9263 - Problème de debug

    Bonjour, je suis actuellement en projet d'études et je doit utiliser Labview sur un ARM9 d'Atmel : le AT91SAM9263.
    J'ai suivi le tutoriel de NI pour effectuer le portage mais je n'arrivepas à debugger avec Labview.
    En compilant avec Labview puis en passant seulement par Keil j'arrive à debugger mais cela ne sert à rien car le code généré par Labview est difficilement compréhensible. L'intérêt est donc de passer par le debug via Labview mais cela ne marche pas.
    J'obtiens l'erreur suivante :
    [10:53:09] Status: Error
    Timed out waiting for a response
    Detail: [UVSC_DBG_ENTER, MSG: 0x500E, STATUS: 0x1D] (29)
    Status: Run failed.
    Est-ce que quelqu'un aurait une idée pour résoudre mon problème ?
    Peut être que quelqu'un a déjà effectué ce portage et pourrait m'aider.
    Merci d'avance

    Duplicate
    Benjamin R.
    R&D Software Development Manager
    http://www.fluigent.com/

  • How to access LPC 2368(NXP) board with Labview arm

    I have Lpc 2368(NXP) customize board. I want to access the board usng Labview. I have done this using Keil but not able to do this with Labview. There are lots of tutorial for lpc2138 but I am not able to find out for LPC 2368.

    Hi Kolakanuru,
    Thanks for using our discussion forums. How you connect your limit switches depends on what type of motion board you are using. For example, if you look at the connection diagram for a PCI-7344, you can see that Forward Limit switches connect to pins 39, 45, 51, and 57. These will then pin out directly to the UMI. For the connection diagram for your particular motion control board, you can go to www.ni.com/manuals and pull up the necessary information. In regards to reading this in LabVIEW, the first thing you will want to check out is Measurement and Automation Explorer. In the interactive windows for your board, you can check the limit switch status there- Press your limit switch on and off and make sure that it changes the LED in MAX. Once that i
    s all set, then you can go into LabVIEW and use the "Read Limit Status" VI which you can find in Functions>>All Functions>>NI Measurements>>Motion>>FlexMotion>>Motion I/O palette. Good luck with your application.
    Regards
    Dan
    National Instruments

  • Labview ARM embedded systems tutorial

    good day,
    I started working on a project using the LM3S8962 development board to work initially lencuaje C, is very economical and in many cases better than the Arduino
    but I see that you can also work with Labview, if someone worked on it and can give me some information would greatly appreciate it
    Atom
    Certified LabVIEW Associate Developer
    Solved!
    Go to Solution.

    Hi Tom,
    If you have questions about the hardware/pins itself, I would consult the user guide for this piece of hardware. For example, here: http://chess.eecs.berkeley.edu/eecs149/sp09/docs/EK-LM3S8962_EvalBoard_UM.pdf
    The software/hardware connection is mostly pretty straight forward. For example, if you create an Elemental I/O point and select PWM0, then whatever you send to that node will go to the pin labeled on your board as PWM0. Also, there are a number of properties in software that you can configure in software for the PWM output: http://zone.ni.com/reference/en-XX/help/372459E-01/lvarmhelp/arm_eio_prop_pwm/
    If you have specific questions or specific things that aren't working, I may be able to assist you, but I think that's all the general support material that we have.

  • LabVIEW ARM break after update Front Panel during debug

    I try to debug the vi by Ulink, the vi just show the LED blinking for 500ms on/off with while infinity loop, after click run button the loop continue working about 5 second and then break button actived with front panel update. Is this normal working?
    Thank you

    After I click Run button on the toolbar the vi start ranning, the LED blinking show on the hardware but not update to the vi front panel, around 3 second the vi stop (like a we click on Pause button on toolbar) and update the status LED to front panel.
    I used ULINK1 for this example, I don't know this cause of the problem or not.
    Thank you.
    Attachments:
    vi_stop.JPG ‏25 KB

  • LabVIEW for the STM32F100 or the STM32F4 ARMs

    Hi, i was wanting to get started with LabVIEW for ARMs.
    http://www.st.com/internet/evalboard/product/250863.jsp
    and 
    http://www.st.com/internet/evalboard/product/252419.jsp
    I wanted to know whether the above ARMs are supported are not, already looked at the RL-Libraries provided by kiel
    http://www.keil.com/rl-arm/chips.asp
    Since the STM32F100RB is listed,
    http://www.keil.com/dd/chip/5086.htm
    can i use LabVIEW ARM to directly code the board?
    Thanks.
    LabVIEW 8.2,8.6,2009...still learning

    Thanks for the reply andrey. I haven't ordered it yet, wanted to be sure about the compatibility. How about the STM32F103RB?. Its listed in the kiel libraries too.
    http://www.keil.com/dd/chip/4231.htm
    Here is a guy who has worked with it. Seems like he got it working. The boards the same as well.
    http://forums.ni.com/t5/LabVIEW-Embedded/labview-for-stm32f103-development-board/td-p/1022402/page/4
    PS: Both have the same code memory, surprising to see the STM32F100 gives an error.
    LabVIEW 8.2,8.6,2009...still learning

  • Deploy web service on ARM processor

    Is it possible to deploy a web service to a ARM processor with the LabVIEW ARM module?  If not, has a web server for an ARM processor been done in LabVIEW before?  Is there any example code out there?  Thanks.
    Solved!
    Go to Solution.

    skryger,
    As of LabVIEW for ARM 2009, there is no prebuilt way to deploy a web service to an ARM processor.  (The only options under Build Specifications are Application, Source Distribution, and Zip File.)  That of course doesn't eliminate the option to build one yourself.  Perhaps someone from the community can elaborate further if this has been done.
    Kevin S.
    Applications Engineer
    National Instruments

  • Programmer un Freescale HCS12 avec Labview

    Bonjour, 
    Je cherche à savoir s'il est possible de programmer (ou plutot de générer du code) un Freescale HCS12 avec Labview.
    En gros je veux réaliser mon soft dans Labview et le compiler pour le HCS12. Si c'est le cas, existe-t-il des librairies ??
    Merci
    Nicolas 

    Hello Nicolas,
    It is possible to program Freescale Microcontrollers from inside LabVIEW.
    You can find more information in the following post:
    http://forums.ni.com/t5/LabVIEW-Embedded/freescale-controller-in-the-LabVIEW-ARM/m-p/765837
    Kind Regards,
    Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
    CLD, CTA
    If someone helped you, let them know. Mark as solved and/or give a kudo.

  • Porting to ARM LM3S811, Elemental IO PWM issues

    Hi all,
    Ok, so very quickly I resume what I have done:
    - The LM3S811: http://www.luminarymicro.com/products/ekk-lm3s811_evaluation_kit.html
    - I used the LM3Sxxxx Generic template to create one for
    the LM3S811 as instructed in the porting guide for other ARM controllers using
    Labview for ARM module, the simple guide.
    - I got to compile a test application and run it
    successfully on my new target.
    - I then used the Elemental I/O wizard to create the
    necessary files based again on the LM3S8962 in the generic folder of LM3Sxxxx.
    Both boards share almost all the same IOs, I only changed the PWM 0 and 1 to
    use port D instead of B, PWMs 2 to 5 share the same ports, so I didn t changed
    them.
    - I tested some of the AIOs the GPIOs, and I even got the
    OLED display driver from luminary to work.
    Now, if I use PWM 2 to 5 they work fine, but if I use 0
    or 1, my application will freeze as soon as the Elemental IO node is called in
    my program when running on the target.
    Am I missing something?
    Thx
    Lukasz
    Solved!
    Go to Solution.

    Close LV                                                                     
    1. Copy LM3Sxxxx folder and rename the folder to CAN_LUM_Board_LM3811 (Or whatever you wish your target to be called).
        a.    This folder is in: C:\Program Files\National Instruments\LabVIEW 2009\Targets\Keil\Embedded\RealView\Generic
    2. Modify TgtSupp.ini
        a.    Change the target name to CAN_LM3S811 (whatever you want)
        b.    Change the description to Luminary Micro CAN_LM3S811 (whatever you want)
            [Target]
            name = CAN_LM3S811
            description = Luminary Micro CAN_LM3S811
            eiodirectory = eio
        To add the new target to your project
        a.    Open LV and add target by right-clicking on your project name and New Targets and Devices menu.
        b.    Select the option "Other".  You will get a new dialog so you can select the target you just added above.
    3. To target small memory microcontrollers you must use the microRTX operating system(LabVIEW ARM uses the full RTX OS as default).  You will also need to edit a function in the code generation of LabVIEW. This is a global edit, so it also changes all targets.  I found that LabVIEW ARM product seems to still work fine with this global edit on the LM3S8962. In the file headless.c comment out the function exit (0) as shown in line 93.
            C:\Program Files\National Instruments\LabVIEW 2009\CCodeGen\libsrc\os\common
    4. The way LV ARM works is that it takes the target template in the folder at: C:\Program Files\National Instruments\LabVIEW 2009\Targets\Keil\Embedded\RealView\Generic\CAN_LUM_Board_LM3S811 and copies it to the folder where you define your LV project and VI’s.  LV ARM and the KIEL tools then edit these new files for your end application.  As such, we need to edit the template file in the main LV folder so it uses the microcontroller you wish selected.  Open the file LabVIEW.Uv2 in the folder C:\Program Files\National Instruments\LabVIEW 2009\Targets\Keil\Embedded\RealView\Generic\CAN_LUM_Board_LM3S811\Template\Pro ject with the KEIL IDE tools
        a.    Select the LM3S811 Microcontroller.
        b.    Xtal= 6Mhz
        c.    Enable micolib to reduce memory needs for such a small part.
        d.    In Debug and Ytilities, change to Use "Luminary Eval Board"
    5. Change Heap size to: "Heap    EQU     0x00000200" in "Startup.s" (Not sure but if not using debugging it can be set to zero)
    6. Edit "LM3S_Pins.c" line34 to : "#define PART_LM3S811" and "ARM_Serial.c" line 24 to : "#define PART_LM3S811"
    In LV
    1. Import eio's from the \generic\LM3sxxxx\eio\LM3S8962
        a. Change PWM 0 and 1 to use port D instead of B
    2. Disable debugging, not enough RAM for it.
    Thx to gregc
    Have fun!

Maybe you are looking for

  • Can not update data in table view

    When i open a table from a connection in the connection navigator i can not alter the data in it... I can only add new rows. Is there a setting so i can alter the data? My user has update rights because when i write my own update statement and execut

  • New Prob. iTunes kills browser functionality. Have to reboot sat. modem.

    When I start iTunes, my browser functionality is killed in both Firefox and IE. Pages start to load and then say, 'done'. Blank browser screen. Email and IM still function normally. I have to close browsers and then reboot my satellite modem before b

  • Missing Org unit from position ID

    Hi Gurus, Could you please provide additional information which I have missed out that would help resolve the issue. Problem Statement: Position ID XXX originally belongs to O XXXXXXXX [Sample Org 1].  When HR Recruitment administrator performed acti

  • BADIs are not calling in BUPA_MAIN

    Hello Friends, I need to populate some Z fields when BDOc is flowing. I thought of writing this logic in BADIs (CRMXIF_PARTNER_MAP & CRM_DATAEXCHG_BADI ) . But these BADIs are not calling in debugging to check the data. Please let me know do i need t

  • How to apply missing arching logs in a logical stand by database

    hi, I have created logical stand by data base for our production.It was working fine.We have not set the value for standby_archvie_dest and it send the archive files to $ORACLE_HOME/dbs, due to high volume transavtion many files generated and $ORACLE