ARM module + PWM LM3S8962 problem

Hello.

I'm experimenting with LV2009 + Embedded module for ARM (also the 2009 version).

(1) what actually works, a few screws, I did (no examples):

-loop infinite + led flashing + 200ms wait timer

-infinite loop + number of the current iteration on LCD + 200ms wait timer

(2) the demos provided in /examples/lvemb/ARM/LM3S8962 sistematicaly (PWM, Blinky, DIO, OLED) fail. Ex: DIO relies, but throws an exception when it is downloaded on the dev. BOAD and executed; PWM does not build (not a filled.ctl or a update.ctl lack of file problem, I fixed) - something related to a PID Subvi. What I'm doing wrong here? Any help? (Note: I also changed the parameter debugger & programmer of the project uVision, the default ULINK2 fails of course).

(3) PWM EIO problem: I got the first aforementioned VI (1) (LED light MagNet) and added a HIO PWM5, in the same loop.

-What is the wired to the PWM EIO node value mean? Duty cycle 0 to 100? Duty cycle 0 to 1? The number of ticks to the top state PWM? Sometimes it worked, sometimes the PWM was logical high all the time.

-If I add a property PWM5 EIO node and try to put anything, it breaks. From what I've seen in the uVision debugger, it gets stuck in the default interrupt handler section. I can't understand how he got there.

Please help me with an example of how fully configure a PWM EIO, exercising control over the frequency of having to test cycle, everything.

Thanks in advance for your time & help.

Paul.

Hi Paul,.

This looks like a problem where you (or rather the code generated LabVIEW) set up the device before you activate the device PWM.  The target will fault in this case, but the Simulator will not.  Because that the PWM EIO node initializes and allows the PWM peripheral, if the EIO property node is executed before the EIO node, the target reproach.  Try using a sequence structure to make sure that the node of PWM EIO runs before the property node.

Tags: NI Products

Similar Questions

  • Porting to ARM LM3S811, PWM and serial port issues

    Read my previous post: http://forums.ni.com/ni/board/message?board.id=420&thread.id=1996

    I have problems again, I
    corrupted data sent through port sΘrie 0 when you use the OR
    pilot series on the LM3S811. I also get code error-1073807339 when reading that
    data inside labview with VISA, sent my arm to my PC.

    I have
    think the timings may be wrong, but I put t know
    where to look for baud rate divisor for
    UART0. S 3, 811 is Xtal 6 Mhz, 8 Mhz not like the 3S 8962.

    I have
    also tested the PWM on the frequency and scope dosen t match if I ask
    for 1 kHz, I'm moving 666 Hz. Seems like affecting the Xtal 6 Mhz in
    uVision is not enough.

    THX

    Lukasz

    OK, here's the solution.

    Open 'startup.s '.

    Goto line 193:

    ; set the system clock to run at 50 MHz
    ; SysCtlClockSet(SYSCTL_SYSDIV_4 |) SYSCTL_USE_PLL |
    ;                SYSCTL_XTAL_8MHZ | SYSCTL_OSC_MAIN);

    LDR R0 = 0X01C002C0
    BL SysCtlClockSet

    B __main

    Replace R0, with the right values in "sysctl.h" line 236:

    in my case the value of the 6 Mhz Crystal which is "0x000002C0".

    Calendar of PWM is restored and serial port works fine now.

  • Module FPGA unzip problem

    I downloaded the FPGA module in a PXI controller, running XP.  When I tried to unzip it, the unzip operation fails every time.  What is the cause?  Is there some sort of requirement for this unpack?  Hard disk size requirement?

    Thanks for help.  I discovered what the problem was.  I downloaded the FPGA module via the link below.  When I tried to unzip it, I would use the default path.  Apparently, the default path is a space at the end of his 2nd record, counting from the end of the path.  It is a small bug in NOR, but it needs to be fixed.  It is difficult to catch, because I don't expect something like that happening.

    https://lumen.NI.com/nicif/us/evallvuser/content.XHTML

  • Streaks stained on the images in module development [was: problem]

    Why do I have this image when open develop modules? ... never I have this problem...
    1.jpg

    Left the connections for specific program forum forum... MOD

    Hi Karina,

    Open Lightroom preferences, go to the performance tab and deselect the option "use graphics processor."

    Adobe Lightroom GPU troubleshooting and FAQ

    Mike

  • LR5 - no base in the develop module Panel [was: problem upgrade Lightroom 5?]

    I updgraded to L3 to L5 (Win8 64bits) without no problem, except for the 'Basic' Panel in the develop module. I tried the upgrade to have the 'new' slides here - highlights, shadows... But I still have the old (recovery, light...) there. What has gone wrong? What will I do to get updated?

    If you change a photo that has been already transformed into Lr3, then you are probably using Version 2010 process, which includes the sliders as recovery and fill light.

    You can update the PV2012 image in the camera Calibration Panel in the develop Module.

  • First Appcrash with Kernelbase.dll in the defective module always the problem

    Hello world

    After the update drivers associated with (Matrox, NVidia) the problem and checking the material, the problem persists:

    Signature of the problem:

    Problem event name: APPCRASH

    Name of the application: Adobe first Pro.exe

    Application version: 5.0.3.0

    Application timestamp: 4ce382d1

    Fault Module name: KERNELBASE.dll

    Fault Module Version: 6.1.7601.17651

    Timestamp of Module error: 4e21213c

    Exception code: c0000005

    Exception offset: 000000000000cacd

    OS version: 6.1.7601.2.1.0.256.48

    Locale ID: 1043

    Additional information 1: 30ea

    More information 2: 30ea564650b9f04e24c8d0b10bbe1000

    Additional information 3 c: 895

    Additional information 4: 895c2477ff9dd3b158f6107ec9f936c4

    What makes in any case kernelbase.dll? It seems to fail clips HD special Matrox, but only when I play their first. It happens when I click on the first source window and then the timeline and then beginning of jogging or rub in the timeline panel. It is switching between source and first program that triggers the appcrash for sure.

    While first actually did when you switch from source the program monitor in the app itself? I noticed on my HDMI video monitor when switching as mentioned, the monitor loses the input signal and is to scan the image. So I guess that this passage is more complicated for the first as you might think.

    Any ideas yet? Nothing I tried really makes a difference. I start to panic a bit now.

    Specs: Windows 7 64-bit, THE Matrox MX02, NVidia Quadro 4000, 24GO RAM, 2.66 sixcore dual CPU, in sense reverse video and OS discs.

    Using the codec HD standard Matrox for first.

    Any help much appreciated.

    I'm sorry, I didn't notice the Quadro card in your initial post. The version that I gave you was for Geforce cards and the Quadro have a tree of different version. The Quadro version equivalent to the driver I meant 275.89. However, they have a Quadro version that is not yet out on their downloads page standard which has the equivalent properties on the latest Geforce. Download and install after you have uninstalled all the software/driver Quadro you currently have.

    http://www.nvidia.com/object/Quadro-Tesla-Win7-WinVista-64bit-285.58-WHQL-driver.html

    Make sure that you choose the custom installation and remove the Nvidia update installation list if it is there. Try and see if that helps. If this isn't the driver to try the 275.89.

    Eric

    ADK

  • Disable all modules fixes the problem... but one at a time turning off does not... How is that possible?

    I have four Wordpress blogs I visit. WordPress has a black bar at the top of the screen that you can click on and it will bring you to the top of the page. I am running FF 38.0.5 and on one of these blogs, this feature no longer works. I ran in safe mode and the device worked properly. When I uninstalled add each on one by one to understand what can be, the problem persists. How is that possible?


  • PWM synchronization problem

    Hello

    What I want to do:

    I need to output a PWM signal with variable frequency cycle and duty using the DAQ assistant for a card with digital output. The max frequency should I * need is about 500 Hz.

    What is stop me:

    I can't understand how my cursor frequency relates to a real Hz frequency.

    What's next:

    Well, I wish that a simplified approach to exit a pwm signal to a digital output on a camera card or be able to determine the timeing/frequency/delays more. I guessed just to get a wave that looked nice on the graph, but I have no idea on what is the actual frequency. (How can I measure it, so I can guess and check to understand a range I need?) No change to my code attached, or new ideas would be great! I'm still fairly new to labview for details is less appreciated.

    I hope that it makes what I'm doing.

    Thank you!

    GerdW,

    This seems to be much more accurate. I used the ms timer as my input, so I reduced my input par.001 frequency to compensate for the difference of thousands on my clock. This seems much more accurate.

    Thank you.

    Edit: Yes its cDAQ by the way.

  • 2015 video CC play module - driver update problem

    I can't open Premiere Pro more due to the "can't find modules for video games. I've already updated the driver.

    My system:

    Dell Inspiron years 620

    Windows 7 Home Premium 64-bit Service Pack 1

    6Gbyte Ram

    Graphics card: AMD Radeon HD 6450

    Update driver: AMD Catalyst 15.7.1

    That can be done to get the first working again?

    Completely uninstall driver and re - install.

  • Porting to ARM LM3S811, basic PWM i/o issues

    Hi all

    OK, so quickly, I take back what I did:

    -The LM3S811: http://www.luminarymicro.com/products/ekk-lm3s811_evaluation_kit.html

    -J' used the generic LM3Sxxxx to create one for
    the LM3S811 by following the instructions in the porting guide for other ARMS controllers to help
    LabVIEW for ARM module, the simple guide.

    -J' got compile a test application and run it
    successfully on my new goal.

    -J' then I used Basic IO Wizard to create the
    necessary files again from the LM3S8962 in LM3Sxxxx generic folder.
    The two boards share almost all the same IOs, I only changed the PWM 0 and 1 to
    use the port D instead of B, PWM 2 to 5 share the same ports, so I t has not changed
    them.

    -J' tested some of the AIOs the GPIO, and I even had the
    Light OLED display driver to work.

    Now, if I use 2 PWM to 5 they work fine, but if I use 0
    or 1, my application freezes as soon as the Basic node IO is called
    my program when running on the target.

    Am I missing something?

    THX

    Lukasz

    OK, found the solution:

    Edition line34 of 'LM3S_Pins.c' to: '#define PART_LM3S811 '.

    and 'ARM_Serial.c' line 24 to: '#define PART_LM3S811 '.

    thx for the tip

  • Custom hardware and the module of ARM

    Hello world

    Our company is in the early stages of designing a custom measuring device. In the past we used Microchip microcontrollers (PIC16 and 18), a simple IDE and a C compiler, but for the new generation of devices we will use microcontrollers from Luminary Micro ARM. Since we are also users of LabVIEW, the choice for the LabVIEW embedded module for ARM seems logical. I read a lot of documentation OR and watched the tutorials, but I'm still uncertain on what we may or may not do with the module. Until we buy eval kits and the module, I need to have some facts.

    1. The 'heart' of our circuit is a microcontroller LM3S1968, this MCU is ARM Cortex-M3 based. It is listed in Keil device database (http://www.keil.com/dd/), then is also a LabVIEW "Tier 1" - peripheral (http://zone.ni.com/devzone/cda/tut/p/id/7066)? ".
    2. What I have to add the MCU manually to the project as described in http://zone.ni.com/devzone/cda/tut/p/id/7152, or can I just it select from a menu?
    3. We already have a LM3S1968 evaluation kit (http://www.luminarymicro.com/products/lm3s1968_evaluation_kits.html) and a programming JTAG device. We can use these hardware components to evaluate the LabVIEW ARM module or should I buy a complete kit of NOR (including the dev board)?
    4. Is a JTAG connector on our device and a connection for a JTAG debugger, all I need for debugging the device with LabVIEW?
    5. Assessment OR (http://sine.ni.com/nips/cds/view/p/lang/en/nid/205040) kit includes JTAG Keil ULink2 adapter on the photo?
    6. We want to connect the MCU to a converter A/D, the AD7738 of Analog Devices (http://www.analog.com/en/analog-to-digital-converters/ad-converters/ad7738/products/product.html). We will use the SPI bus for communication and I know what codes to send to get a basic reading. What I need to use the SPI-Subvi and send the hex codes or can I use a Subvi 'AD7738' built-in device drivers CD?

    I apologize in advance for the number of questions, it's just that the use of LabVIEW for the development of material is completely new to me

    Thanks in advance for your help.

    Paul

    Hello Paul!

    I'll try to answer your questions and I hope someone else can add more information if necessary.

    1. The 'heart' of our circuit is a microcontroller LM3S1968, this MCU is ARM Cortex-M3 based. It is listed in Keil device database (http://www.keil.com/dd/), then is also a LabVIEW "Tier 1" - peripheral (http://zone.ni.com/devzone/cda/tut/p/id/7066)? ".

    Answer: no, that would be a level 2 device, we now offer three level 1 devices and information on these can be found on the link you condition.

    1. What I have to add the MCU manually to the project as described in http://zone.ni.com/devzone/cda/tut/p/id/7152, or can I just it select from a menu?

    Answer: you need to add yourself as described in the link you provided.

    1. We already have a LM3S1968 evaluation kit (http://www.luminarymicro.com/products/lm3s1968_evaluation_kits.html) and a programming JTAG device. We can use these hardware components to evaluate the LabVIEW ARM module or should I buy a complete kit of NOR (including the dev board)?

    Answer: is trickier, LV Module Embedded for ARM in trial mode will have some limitations (size applications, can open the development environment for a number of days and so on), but it should not have limits when it comes to other targets as described in the links that you have already provided. When it comes to the JTAG interface, I would recommend using the Keil ULINK2 USB-JTAG.

    1. Is a JTAG connector on our device and a connection for a JTAG debugger, all I need for debugging the device with LabVIEW?

    Answer: I would like to make use of the Keil ULINK2 USB-JTAG Adapter for debugging and allows us to download the code on the target. In fact, it's the only way we can download code on the ARM, but we can use a serial port / TCP in addition to JTAG debugging.

    1. Assessment OR (http://sine.ni.com/nips/cds/view/p/lang/en/nid/205040) kit includes JTAG Keil ULink2 adapter on the photo?

    Answer: Yes.

    1. We want to connect the MCU to a converter A/D, the AD7738 of Analog Devices (http://www.analog.com/en/analog-to-digital-converters/ad-converters/ad7738/products/product.html). We will use the SPI bus for communication and I know what codes to send to get a basic reading. What I need to use the SPI-Subvi and send the hex codes or can I use a Subvi 'AD7738' built-in device drivers CD?

    Answer: I/O could be implemented using the basic IO layer provide us as described here:

    http://zone.NI.com/DevZone/CDA/tut/p/ID/7119

    http://zone.NI.com/DevZone/CDA/tut/p/ID/7144

    I hope this helps!

  • Basic i/o on LM3S8962 stops execution

    I'm using LabVIEW 2009, boarded the LM3S8962 evaluation board for ARM and ran into problems with inputs and outputs basic predefined for the buttons - without basic IO, everything works fine, but with a button, the execution stops immediately with no error message. A similar code worked perfectly on the original version of Embedded for ARM 1.0 & LabVIEW 8.5. Is no longer, I can test with this version since the period demo has expired. I tested on 2 completely separate hardware games and Embedded for the 2009 ARM installations, with the same issues in both. I have attached 2 samples of simple work & work no screws

    Stuart

    Read the button once more - the port is also configured in the EIO node, so first reading detects the port misconfigured.
    Note that the port configuration involves enabling a pull-up resistance and it takes a while until that entry passes to set up new State (it is not software, an RC time constant has the main role here).

    Hope you don't mind for the "enhanced functionality.

  • cRIO, FPGA, portability to different configuration of module e/s

    Hello people!

    For my research project, I need support.

    I have to implement the NO-tutorial: "CompactRIO Control Design and Simulation Tutorial" on different hardware.

    My cRIO-9004 is no problem and the NI9104 chassis is the same.

    Occure in problems with the config of the i/O-Modules:

    Tutorial-config: Slot5 = NI9505, Slot8 = NI9221

    MyDevice-config: Slot1 = NIcRIO-9215, Slot2 = NI9263, Slot3 = NI9217, Slot4 = NI9474, Slot5 = NIcRIO-9423

    I think that there should be a smart way to port this programm for a different config and change the I/O-link with another module without neckshoot the programm. do not know how, because I am a newbie of LabView.

    your ff

    Hi ffelix,

    The tutorial works with a 9505 (H-Bridge for Servos) movement Module and a Module of the 9221.

    In your configuration, you HAVE some, a zone of OCCUPATION, an RTD, a DI and a Module, but none Module movement to control a Servo.

    So if you plan to do a similar Assembly, you must use the AO Module or a Module (PWM) with an external driver circuit to control a motor. And rather than use the software NOR Motion, which I think is used in the tutorial, you will need to program the motor by yourself from scratch part on.

    Christian

  • Problem of memory Mac Pro 3.1

    Hello

    I have a Mac Pro 3.1. 16 GB of ram in it, but sometimes only see 14FR.

    8 x 2 GB 800 MHz DDR2 FB-DIMM

    What could be the problem? Sometimes you see all the memory and sometimes not.

    2006-2008 (1.1 - 3.1) use FBDIMM that work how and fail over time.

    When they fail if all goes well, they don't disappear that you encounter. Often, they fail when you access and which can cause a kernel panic.

    Sometimes the resettlement of the affected module solves the problem, but often this fix is only temporary and the module must be replaced.

  • Impossible to install the modules that are hosted outside of AMO

    I can't install any add-on that is hosted outside of AMO, in Firefox for Android 40.0.3, nor in Firefox Beta for Android 41.

    What I think should happen: I have download the file as signed (it records to SD card), then open it with Firefox and Firefox should ask me if I want to install this module.

    What is really happening: an add-on is downloaded, but when I open it is file as with Firefox - nothing happens. Firefox comes to shows me a blank screen (see the screenshot).

    My friend has this problem too.

    Looks like a regression bug (because I could install add-ons hosted out of AMO without any problems in previous versions), but I'm not entirely sure.

    So my question is: should I file a bug on Bugzilla or is it possible to install the modules hosted outside of AMO to Firefox for Android and it's just me something wrong?

    My phone has Android v2.3.5.

    UPDATE: apparently, I can not install the modules of local files, but can do some some sites. My module (I have problem with) is hosted on Github, and I can't install it for whatever reason.

    Update 2: it seems that modules can be installed from Github if she is not just a file (because Github changed Content-Disposition of at least some types of raw file of 'inline' to 'attachment'), but a binary attachment to a "news release".

    Apparently, I found a work around for this problem, so that this issue does not require a response more.

Maybe you are looking for

  • When installing win7 migration software

    How to keep or transfer all my current software off my HP laptop when or before doing a clean installation of Windows 7 not and the upgrade I have a rc og windows 7 and want to install but don't want to lose all my software that is preinstalled on my

  • HP Stream7: Problems: reload my flow 7.

    Reload my HP feed still does not work. Sometimes he says he is in charge, then it stops. It took so many hours, to reach the load of 99%.

  • Compatibility memory for Satellite A100

    Hello. I just buy a Toshiba Satellite A100-528, and I want to buy more memory, 512 mb DDR2 533.Where can I see what memory is compatible with my laptop? My option: Kingston, Kingmax! TKS a lot!

  • How to manage the threads for TCP communication?

    Hello I have a project to control two separate applications (C++ and LabView) and two of them are implemented as server. Another client program (C++) is used to control applications. Communication between them are implemented using TCP socket. The cl

  • Receive updates for Office 2007 after uninstall

    My computer came with a trial version of Office 2007. I uninstalled it in the coming days, having never actually used Office 2 k 7. I continue to receive important updates in Windows Update for Office 2007. I was just hiding them because there is no