Jump to content

Load hex file into avr controller using LabVIEW


piZviZ

Recommended Posts

I want to load hex file into avr microcontroller using labview...How it is possible??

 

Details-----atmega64 controller based avr kit ..and it has USB interface for programming ....I load program using winAVR but now i want to load hex file using labview  ..

Link to comment

Yeah it should be possible.  But rather than trying to read the file into LabVIEW, can you just use the hex file in a commandline program to load your device?  AVRDUDE has command line support so you can provide the file and interface and it uploads it.  You can make this a batch file if you wanted which is probably easier than LabVIEW.

  • Like 1
Link to comment

All the discussion I've seen regarding similar needs ended up following some form of hooovahh's advice.  There's a lot of communication going on behind-the-scenes in order to accomplish the load making it not worth the effort to build something you can call from a command line.

Link to comment

I am very thankful to you that you give me nice information about this.But , According to my project need i have to load Hex file from LabVIEW ..How i can achieve this ?

If you asking how to read a file, it doesn't really matter what the file is, you can use the Read Binary File with an array of bytes.  But the usefulness of this is very small.  It still isn't clear why you need to load a hex file with LabVIEW.

Link to comment

I want to make project Virtual Lab....In this project hardware kit(AVR kit) is connected to college PC.But student can program it from its home via internet.  So it is require that  ,Student can load there HEX file into controller from far end.Further more camera is attached to college PC which adhere to hardware kit.So,student can analyze whats going on...Other good idea regarding this project is appreciate...

 

After lots of search i came to know that i can program AVR controller using VISA serial  in labview ..Is it true?

Link to comment

I want to make project Virtual Lab....In this project hardware kit(AVR kit) is connected to college PC.But student can program it from its home via internet.  So it is require that  ,Student can load there HEX file into controller from far end.Further more camera is attached to college PC which adhere to hardware kit.So,student can analyze whats going on...Other good idea regarding this project is appreciate...

 

After lots of search i came to know that i can program AVR controller using VISA serial  in labview ..Is it true?

 

Yes it is, but as pointed out the protocol to download a hex file to the AVR controller seems to be quite involved. If it is fully documented by AVR you can of course try to implement it in LabVIEW but I would expect this to be non-trivial.

Link to comment

If you truly want to do this from LabVIEW do yourself a favour and get a serial sniffer and capture a download that has been successfully done via the AVR tools.

 

Doing this kind of thing from first principles is, in my experience, quite a bit of frustration finally followed by extreme satisfaction when it all works nicely.

 

Good luck if you are trying to write the bootloader, expect much suffering!

Link to comment
  • 3 months later...

Look at attach image i am able to load program into Avr controller using labview.Now i am trying to load program over internet remotely .Now when i am trying to load program over internet i am giving path into LOAD HEX button.But this path is consider as server path..

 

How i can transfer HEX file from client side to server side from browser..

 

I am using webserver.

 

I heard that data socket protocol is used to transfer data.But how to use it in webserver??  

post-52604-0-68722100-1416972971_thumb.j

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By Guru Prasath
      Hello Everyone;
      How I plot the timestamp in the graph of the x-axis and numerical slider the timestamp given in 2d array.

      The array in 2d array of string...

      I will try this but it not plotting full timestamp can you help me to short of this problem.

      It will be a plot, but a few timestamps will plotting 
      How I plot full timestamp and date...
       
      I have attached my problems like the jpg file and .vi file for your reference.

      Does anyone have solution comments below...
      5_6285044541540009090.vi
      Thanks and Best regards...


    • By torekp
      I was trying a python http communication tutorial - https://aiohttp-demos.readthedocs.io/en/latest/tutorial.html#views - when I had to disable the NI Application Web Server to proceed.  And then I thought, what the **** am I doing?  Maybe I should take the free (well, prepaid) gift of a working web server.
      Here's my task.  A central HQ computer will have a GUI that monitors five machine stations, each of which has its own computer.  Every approx 10 ms (negotiable), each station gives a report consisting of two arrays, the larger being 2048 data points, the other much smaller.  Whenever HQ feels like it, HQ can tell a station to start or stop (its computer stays on).  A local IP connection is used, with a router at each end.  There is also a Raspberry Pi with its own IP address at each station's router, that can send camera frames to HQ.  The station-computers use Python and C++ to do their work, not counting whatever needs to be added to communicate with HQ.
      Your advice please?  Should I use Labview?  On both ends or just the HQ?  And which if any of these helpful add-ons suggested by Hooovahh should I use?
       
    • By AndyS
      Hi!
      I have to convert a dynamically generated array into a JSON string and back. Unfortunately I found that the un-flatten method loses the variant data. See the screenshot of FP and BD and the comments inside.
      JSON_Text_test.vi
       

       
      Is this a bug in JSON Text or is my data-construction not supported as expected? In case of the letter I have modify huge parts of my code. So I hope that it is a bug 😉
       
      The 2nd thing I recognized is that the name "Value" of the cluster is not used during flatten. Instead the name of the connected constant / control / line is used. I found the green VI ("Set Data Name__ogtk.vi") at OpenG Toolkit that allows me to programmatically set the variant data name. As you can imagine I would prefer not to need the OpenG VI.
       
      Thanks in advance for your kind help 🙂
       
    • By kartik.azista
      HAs anyone tried creating a sub vi programmatically by selecting the set of blocks through scripting?????
    • By TDF
      TDF team is proud to propose for free download the scikit-learn library adapted for LabVIEW in open source.
      LabVIEW developer can now use our library for free as simple and efficient tools for predictive data analysis, accessible to everybody, and reusable in various contexts.
      It features various classification, regression and clustering algorithms including support vector machines, random forests, gradient boosting, k-means and DBSCAN, and is designed to interoperate with the Python numerical and scientific libraries NumPy and SciPy from the famous scikit-learn Python library. 
       
      Coming soon, our team is working on the « HAIBAL Project », deep learning library written in native LabVIEW, full compatible CUDA and NI FPGA.
      But why deprive ourselves of the power of ALL the FPGA boards ? No reason, that's why we are working on our own compilator to make HAIBAL full compatible with all Xilinx and Intel Altera FPGA boards.
      HAIBAL will propose more than 100 different layers, 22 initialisators, 15 activation type, 7 optimizors, 17 looses.
       
      As we like AI Facebook and Google products, we will of course make HAIBAL natively full compatible with PyTorch and Keras.
       
      Sources are available now on our GitHub for free : https://www.technologies-france.com/?page_id=487
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.