+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Newbie level 2
    Points: 1,908, Level: 10
    Achievements:
    7 years registered

    Join Date
    Jul 2006
    Posts
    2
    Helped
    1 / 1
    Points
    1,908
    Level
    10

    Arduino to Beaglebone Black code transfer

    Can we transfer the source code written in C to Beaglebone in some efficient way ?
    Is there some way out to reduce the development timeline ?

    Obviously all the I/O has to be mapped or some reworks can be expected.

    •   Alt6th November 2016, 04:23

      advertising

        
       

  2. #2
    Super Moderator
    Points: 24,665, Level: 38
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Portugal
    Posts
    7,420
    Helped
    923 / 923
    Points
    24,665
    Level
    38
    Blog Entries
    5

    Re: Arduino to Beaglebone Black code transfer

    BeagleBone Black supports linux OS, and you can even run the compiler inside. Considering that you did not mention C++ but just C, it is supposed no necessary to think about to cross compile.
    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )



    •   Alt6th November 2016, 22:47

      advertising

        
       

  3. #3
    Newbie level 2
    Points: 1,908, Level: 10
    Achievements:
    7 years registered

    Join Date
    Jul 2006
    Posts
    2
    Helped
    1 / 1
    Points
    1,908
    Level
    10

    Re: Arduino to Beaglebone Black code transfer

    How do we run the code as in a microcontroller?

    When we switch on does it go into a while loop? How do we do that ?
    ( considering it is a small PC, it might have a boot time and so on, correct ?
    The existing code is in Arduion C language not C++



    •   Alt7th November 2016, 04:53

      advertising

        
       

  4. #4
    Advanced Member level 3
    Points: 5,724, Level: 17

    Join Date
    Jan 2015
    Posts
    826
    Helped
    267 / 267
    Points
    5,724
    Level
    17

    Re: Arduino to Beaglebone Black code transfer

    The Arduino has a version of an OS that call the 'setup' and 'loop' functions so you will probably need to provide a wrapper that does that.
    You will also need to provide code for the various library functions that you call or include the library binaries (in some way if that is possible).
    A quick Google search show that there are Arduino simulators and emulators around that let you run your code under Windows and Linux (and possibly others). They seem to be of varying quality and completeness but may provide what you need.
    However, I would suggest that you really don't bother as I can imagine you having more issues getting the simulator/emulator to work and then getting your code to run under that than simply re-writing the code for the target environment. You have already mentioned the need to rework the I/O and I suspect that this might be the least of your tasks.
    Susan



--[[ ]]--