How to upload my code or my .hex file to nodeMCU in proteus simulation? - nodemcu

I am using Proteus and trying to upload my code to nodeMCU. I have never used Proteus before and don't how to upload my code( or if it will take a .hex file like arduino). I have successfully compiled my code on ArduinoIDE. Please help.

When you verify a code in arduino it creates a temp hex file in
C:\Users\Your user name\AppData\Local\Temp
in temp folder after you verify there should be folder name arduniobuild the .hex file should be there.

Another way of generating a hex file is by selecting the sketch menu in the arduino IDE and a drop down of options appears. Select the export binary.... For the Proteus software, it allows you to perform simulation on the picked devices. After launching Proteus, on your nodeMCU,embed the hex file. In Proteus if you don't embed the code on the arduino uno or Mega 2560, nothing works. Just right click on the component and a pop up appears. Arduino works on serial communication. So embedding the hex file on any arduino component makes simulation possible.

Related

How to control a Visual Studio's extension from custom command?

I have a SerialMonitor extension in VS2019 which is let's say connected to COM3.
I have also created a custom command named "Arduino Upload" to upload my compiled stuff to COM3.
Now, when I want to run my upload, first I need to go to the SerialMonitor and disconnect COM3 port, then click the "Arduino Upload" button and then connect COM3 again.
I would like to automate this.
Means, the upload command should do these three steps:
Tell SerialMonitor extension to disconnect COM3
Upload my stuff to COM3 (I already have a command for this)
Tell SerialMonitor extension to connect COM3
So now, as a general question, is there a way how to tell VS extension to do something from custom command?
(The question is really meant generally. I guess that this particular SerialMonitor extension is not capable of this. But I'm interested whether it is even possible to code an extension this way.)

How to automatically work around GUI on OS X/linux?

I have a non-open-source GUI program on OS X which has a menu button to open a file in one format (example.X), and another menu button to export a rendering of that file in another format (example.Y). This is not a conversion that could be done by myself or by any other tool I've found, as the rendering involves extensive digital audio synthesis.
I have a folder of 100 files of type X, and I want a convenient way to convert each .X file into a .Y file without manually opening and exporting each in the GUI. Literally just two simple commands which don't require interfacing with the GUI - one to open the file, and another to render it out.
Is there a general way to achieve the effect of opening a program, running some commands from the menu, and then exit via the command line?
Thanks!

AppInventor: QR code for .apk does not allow to download apk file

I've built a simple "HelloWorld" Android app with MIT AppInventor and I would like to install it in my Smartphone. The App Inventor IDE offers me two choices from the 'Build' menu:
Provide QR code for .apk
Save .apk to my computer
The second option works: I transfer the .apk file to my smartphone and when I open the .apk file, the app gets installed.
But if I scan the generated QR code, it doesn't lead to the .apk file itself. Check for example the QR code in the image
If you scan it with your phone, it takes you to the following url: ai2.appinventor.mit.edu/b/aj94, which is not a download link for the .apk file.
I remember to have installed app-inventor apps with QR codes with the old IDE, but I can't make it work now.
Just go to the download folder in your phone and change the name of the file from namexxx to namexxx.apk, with the permission of installing from others and the AI2 MIT companion. It should work.

Code Composer Studio - TI CC3200 Launchpad

How can I upload the example "blinky" to the TI CC3200 Launchpad "firmware"?
I mean, I would like to plug in the board and the blinky example starts automatically on the startup of the board.
Thank in advance
You have to flash the flashmemory on the launchpad with a flashtool like CCS UniFlash.
Download CCS UniFlash. Once you're done with that, launch it and choose new target configuration. You will have an option on the left side that lets you choose the local url to your bin (or in this case, blinky bin file, which is typically in your SDK folder). Once you're done with that, you should be able to program it via the program button.
The correct and complete method is to follow the procedure mentioned here.
Note that you have to press on the file "/sys/mcuimg.bin" under "System Files", for the contents of the image displayed on the website to be shown.
Just want to add few lines on top of above answer.
1) When you build you project in CCS it will create .bin file in release folder of your project directory which you will flash in cc3200.
2) While doing so make sure cc3200 is in programmed mode.(SOP2 Jumper is on).
3) After you successfully flashed the .bin just remove the SOP2 and press reset.
Cheers !

Redirect default program to another program when a file opens in Windows OS

This is only under windows env.
As I know windows os identifies associated application of a particular file by file extension.
Like wise each file (binary) starting with corresponding symbols ("starting symbols"). For an example .JPG starts with ÿØÿà. Let say I open this .JPG file in a Hex editor or a Text editor and then I change that starting symbols into another file type. for an example I can change ÿØÿà to .Eߣ (.mkv). So when I double click on the .JPG the Windows Photo Viewer says there are some errors or similar message. So I need to get some information about the application that tries to open that kind of a file. If I can, I need to open that file using the application that associated with "starting symbols".
Briefly when I open .JPG I need to open a default video player .mkv files. But It may not work for this example. Because I changed only the "starting symbols" of my .JPG.
Please give me any idea to do this.
Thanks!
When you encrypt the file, give it a new extension. e.g. Picture.jpg becomes Picture.encrypted-jpg. You then register as the handler for encrypted-jpg, decrypt the file, then launch the normal jpg handler.
When the shell is asked to perform a verb on a file, the shell does not use the contents of the file to determine which app to pass it to. The file extension is what determines how the file will be treated.
You wish to use the contents of the file to influence which app processes a shell verb. In order to do so you would need to create a launcher app that reads the file header and then decides which app to pass the file on to. You would assign your launcher app as the handler app for all file extensions that you were interested in.
Although you could do this, it would be much easier just to set the file extension appropriately.
The proper way to do this sort of thing is to replace the files with reparse points.
The downside is that this involves writing a file system filter driver, i.e., an operating system extension, which is a whole level of trouble above and beyond ordinary application programming. (Since Windows already does file encryption, I doubt it would be worth the effort.)

Resources