Announcement

Collapse
No announcement yet.

Upload problem

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Hi,

    Glad it's working for you now. Nice work.

    Best regards

    Paul

    Comment


    • #32
      So if I understand this whole thread, the final solution to the OP's problem was to get an actual Windows machine? What if I dont have access to a Windows machine? I bought the 4duino because on the site it said we could use a Virutal Machine with WS and upload to the board. I am experiencing the exact same issue. I have a Mac. Uploading to the 4duino from Arduino IDE on the Mac OS works successfully. No problems there. Running Windows 10 under Virtualbox, Windows does see the 4Duino. In the Arduino IDE running in Windows 10 on the VM, I have the board set to 4Duino - 2.4, and it sees it plugged into COM3. I go to Tools->Get Board Info and it does talk to the board and retrieves the information. When I try to upload any sketch, and I mean any sketch at all to the board, as soon as the IDE starts to upload to the board, the board resets, Windows loses COM3, and the IDE throws an error saying it cannot get to COM3. So I want to use workshop, and since they dont have a Mac version (shame on you) I have to use a VM which your site said it could do. So is there any other solution besides me having to go buy a Windows machine just to run WS?

      Comment


      • #33
        The other OP seems to have gone away.

        When you upload a sketch from Workshop it uses Arduino (in the windows VM).

        (It also does the same thing when you use tools->Get Board)

        So, if you use the Arduino IDE in the Windows VM, can you program the board?

        Really, the problem seems to be the Arduino IDE, not Workshop.
        Mark

        Comment


        • #34
          Apple had some pretty serious driver bugs with El Capitan, is this the version you have?.

          Fortunately, everything seems to be fixed in the latest Sierra.

          Try to see if theres any updates for your OSX.

          Also besides the VM it would also be a good idea to test BOOTCAMP as windows will have complete control of the serial port rather than the macos controlling the hardware outside of the VM

          Tony

          Comment


          • #35
            Also, try programming the board from the Arduino IDE on Windows VM with the following Scenarios

            Workshop running.

            Workshop not running.

            And let us know the results
            Mark

            Comment


            • #36
              I have tried programming from the Arduino IDE, WS running and not running, it fails. I then just tried uploading the blink program to a standard Arduino Uno. It failed. So here is what is happening as I have figured it. The USB port mapping to the Virtual Machine is working. That is why I can retrieve the board information. However, when it goes to upload, the Arduino IDE does a reset on the board. If the board you are trying to program is using a real life FTDI serial to USB bridge chip, then host can use actual serial communications to talk to that bridge chip and all would be fine. However, looking at the schematic for the 4duino, it is not using an FTDI chip. Instead, the 4Duino, and all of the newer Arduino boards themselves, have intrinsic USB controllers and present themselves to the USB bus as a serial bridge, but the serial communications never actually go over a wire. Serial streams to the board are just directly converted to packets and sent over the USB. The problem is when the processor is reset, the USB stack vanishes as the USB bus disconnects. During the restart, the board reconnects to the bus and enumeration and negotiation start anew. This means that every time the device is reset, the port will disappear and reappear. The reason why this is bad is that this confuses VirtualBox because the pipe it had open and forwarding to Windows disappears and doesnt reestablish the link automatically.

              So after doing all my tests, unless VirtualBox comes up with a way to monitor and automatically reconnect on a dropped stack, the arduino cant be programmed from VM Windows machine.

              So now I am still at the problem of wanting to use Workshop, but it is only a windows app (shame on you for that) so I still have to run it in a VM. I have not tried using BOOTCAMP because I dont want to just run windows while working on this. I multitask and will do other things while working on Workshop and running just windows via BOOTCAMP would not let me do that. So for me at least, BOOTCAMP is not an option. So my question now is, is there a procedure, and if so what is it, to use Workshop to design my project, save it out, and then move whatever files I need to whereever they need to go and then use my native mac arduino IDE to program the 4duino? Basically instructions on how to take the output of Workshop and manually program the 4duino wihtout using Workshop to program it.

              Comment


              • #37
                Hi,

                There is a method to achieve this using both Workshop and the Arduino IDE. You can create the project as you normally would by adding widjets to the object inspector and writing the code etc.When finished, click on compile you will be prompted to save if it is a new project, if so save and you will see the graphics being generated. Insert your SD card when prompted and then Workshop will attempt to compile and fail. At this point go to the directory where your project is saved. Open the arduino ino file that you see in this directory by double clicking it and launching the Arduino ide. At this stage you should simply be able to compile it and upload it to the 4Duino.

                I hope this helps.

                Best regards

                Paul

                Comment


                • #38
                  not sure if it works but
                  have you tried crossover mac or wine to see if arduino/workshop can run on mac in compatibility mode?

                  Comment


                  • #39
                    The action you have described is the way Arduino works 'normally' on USB type devices, eg the Leonardo. The reset actually causes the port to disappear and reappear as a different device, which the Arduino IDE then grabs and programs. So I'm thinking there's two possible scenarios. A) Virtual box has not been told to 'passthrough' the second vid/pid to the VM (how have you got this part set up?) or B) The latency of a) in the VM is causing the IDE to time out its upload (I can't google up this scenario, so either Leonardos are pretty rare, of the real problem is A).

                    For your last sentence, if you do a 'Compile' in the Workshop IDE it will do everything necessary for it, copy the files to uSD when prompted. In your VM share the project folder with the MAC. Then open the .ino file in the Arduino IDE on the MAC and program it from there.
                    Mark

                    Comment


                    • #40
                      Well, I finally got an acceptable working scenario for me. My answer was to use VMWare Fusion instead of Virtualbox. VMWare fusion doesnt have the issue with disappearing port. I am able to fully design and program now in Workshop using Fusion. I prefer Virtualbox over Fusion as Fusion is a bit more resource intensive than VB, but it works with WS and I can continue. Thanks for all replies.

                      Comment


                      • #41
                        Hello,

                        That is great news and thank you for sharing the solution with us.

                        Best regards

                        paul

                        Comment

                        Working...
                        X