Show Posts
Pages: [1]
1  General Category / General Discussion / Re: Should the IDE compile commands produce same object file if executed from shell? on: February 06, 2014, 04:39:35 am
I think I figured it.. the Galileo compiles with "-g" option which I guess produces debug information held within the object file.

Since I was asking the compiler to output to "stream_my_new_name.cpp.o"  (instead of "stream.cpp.o" ) this was reflected in the output - but you can't tell because the output file is unreadable in a text editor.

I confirmed this by re-doing my test but in a different sequence..

1. Execute a build in Arduino
2. Find the object file you want - e.g. stream.cpp.o
3. Rename it so it won't be overwritten
4. Execute the the Arduino command line from a shell window using the exact command i.e. don't change any file names at this point
5. Compare the files, they should be same.

Thanks Coding Badly for giving me the hint about timestamps, that got me thinking about the debug info

Mike.
2  General Category / General Discussion / Re: Should the IDE compile commands produce same object file if executed from shell? on: February 05, 2014, 04:26:30 pm
Good point, I would say the file has more differences than 1 timestamp though,  it starts off OK then gets very different.  The files are attached to the galileo forum if you want to examine them in a hex viewer. They were produced on a Windows NT machine.

https://communities.intel.com/servlet/JiveServlet/download/222225-75841/Stream_original.cpp.o.zip
https://communities.intel.com/servlet/JiveServlet/download/222225-75840/Stream_via_command_prompt.cpp.o.zip
3  General Category / General Discussion / Should the IDE compile commands produce same object file if executed from shell? on: February 05, 2014, 06:17:52 am
I posted a question about this in the galileo forum

https://communities.intel.com/message/222225#222225

but want to confirm what I think is the expected behaviour for all arduino type platforms.

If the compile output is copied from the IDE output window and then pasted into a command shell window and executed, would you expect the object file that is produced to be identical every time ?

4  Community / Exhibition / Gallery / Re: Arduino + FreeRTOS + C++ = Platform for Teaching Real-Time Software Design on: September 05, 2012, 05:47:32 pm
Hi Chip,

Are you still tracking this thread? I'd like to incorporate your ideas into an IDE I'm working on.

The IDE allows arduino users to use predefined declarations for tasks, either in code or as flowchart symbols
http://www.kicchip.co.uk/index.php/component/content/article/50-kompiler-pre-release-overview?start=8

I've been looking at FEMTOS too, users can select either Free RTOS or FEMTOS


It needs work but it sounds like you have allready done the parts I was planning on doing next, can you PM me?
5  Development / Other Software Development / Re: An idea for converting code - BASIC to C++/Arduino, with flowcharting on: September 05, 2012, 05:21:31 pm
You think with the parser you used for the code it is possible to update the old arduino libraries? http://blog.makezine.com/2011/12/01/arduino-1-0-is-out-heres-what-you-need-to-know/ looking at those rules? I am trying to add an automated installer (it is pretty complete now) but still missing the "old library" update procedures (for now I is just fairy simple regex replacements) but I think I need fancy stuff to understand if  replacement is in comments, or anything the coder can do.

I can parse for some of the rules for definate, I tried the 2 below and the parser could pick them up and at least give a report to the user that they need changing if some kind of tool was needed to do that.

The BYTE keyword
Serial.print(val, BYTE)
To:
Serial.write(val); //sends as char

Migrating Wire (I2C) statements
Wire.send()
To:
Wire.write()
And change:
Wire.receive()
To:
Wire.read()

I don't know about the problems caused by dervied classes, I would need to examine this e.g.

Return values from write() methods
Classes derived from Print must implement a write method to write data to the device that the class supports. The signature of the write method has changed from void to size_t to return the number of characters written. If you have a class derived from Print you need to modify the write method as follows and return the number of characters written (typically 1). Change:

    void write
    To:
    size_t write


Overall I think it's worth attempting something, the main problem is that I have not validated the Arduino/Wiring syntax completely, but then again doing something like this would go some way toward getting that validation completed.

Can you download Gold Parser Builder http://goldparser.org/builder/files/GOLD-Builder-5.2.0-Setup.zip
I can send a compiled grammer file for arduino etc that you can load into it and scan your library source file, from there you can see in a tree structure what is recognised and possible to trap in some kind of conversion tool?

6  Development / Other Software Development / Re: An idea for converting code - BASIC to C++/Arduino, with flowcharting on: September 05, 2012, 09:22:51 am
Looks really cool!
Thanks, would you like to try it? I could use some feedback from arduino users..

7  Development / Other Software Development / An idea for converting code - BASIC to C++/Arduino, with flowcharting on: September 04, 2012, 04:57:20 pm
Hi,

I've been working on some ideas for helping developers switch from BASIC to target code - C/C++/Arduino (and others).

My demo application reverse engineers BASIC code and converts to the selected target code.

To make things simpler, the code is broken down into subroutines automatically and a flowchart is created for each routine.

This way users can either use the flowchart interface or the text editing interface in whichever language they like.

There are plenty of BASIC programmers out there who I reckon would find this a good way to switch to Arduino.

The application uses Gold Parser Builder to define the Source & Target languages http://goldparser.org/ so I don't need to re-code the whole application to include another language. It can currently process a couple of dialects of BASIC (my own which is similar to VB, and PBASIC e.g. Basic Stamp) and can handle a few dialects of C/C++/C#/Java/Arduino.

The IDE uses a database to track the list of available compilers, so users can compile an Arduino application, or they could create a simple C project and the IDE will fire up and link the correct set of files - it should be able to handle ChipKit, Maple - just update the local database.

Here are some videos I uploaded to demo this to a colleague in Singapore, in each case the source code is pasted into the editor and flowcharts/conversions are then done automatically there are more features than this but these are the ones that I think will interest Arduino users?

1. Reverse engineering BASIC into 2 subroutines and generate flowchart(s)


2. Reverse Engineer PBASIC


3. Reverse Engineer BASIC and convert to C style


4. Reverse Engineer Arduino program, draw the flowcharts and convert to BASIC


I'd be interested in hearing peoples views..

Thanks in advance
Michael
8  Development / Other Software Development / Re: [MOD] Arduino Enhanced Release 1.0.1a for Windows (installer, drivers, etc) on: August 28, 2012, 04:14:19 pm
OK thanks, I'll have to stick with what I have for the moment then, my application needs to be able to scroll through all Arduino versions and directories, users need to be able to install older Arduino versions alongside newer versions, so overwriting the current installation info won't work for me but would be fine for everyone else I guess, cheers, Mike
9  Community / Bar Sport / Can anyone suggest a few good sites/magazines on: August 28, 2012, 04:03:29 pm
I'm trying to extend my list of good resources for Arduino related projects e.g.

http://www.instructables.com/
http://letsmakerobots.com/

Can anyone recommend more online sites like these, or good magazines (either online or hard copy) that are known to be popular within the Arduino community? Basically I'm looking for places where newbie Arduino users can upload details of their own projects, or where experienced Arduino developers can write articles relating to best programming practices.

I could google but I'd really like to hear from members of this forum first?
10  Development / Other Software Development / Re: [MOD] Arduino Enhanced Release 1.0.1a for Windows (installer, drivers, etc) on: August 28, 2012, 03:34:20 pm
Sorry, you are already on 1.0.1.a so please apply the previous question to 1.0.1.b (I am 1 version behind you)
11  Development / Other Software Development / Re: [MOD] Arduino Enhanced Release 1.0.1a for Windows (installer, drivers, etc) on: August 28, 2012, 03:29:59 pm
Thanks for the screenshot, I need all installed versions not just the latest, when you run your setup for the next version of Arduino (maybe 1.0.1.a or something) will it produce a second set of data as per the first screenshot, or will it overwrite that information? If it produces a second set of data for 1.0.1.a then that should be ok for me. I can see why you would want to avoid writing to the registry, it is not something I do often myself.
12  Development / Other Software Development / Re: [MOD] Arduino Enhanced Release 1.0.1a for Windows (installer, drivers, etc) on: August 28, 2012, 03:12:44 pm
Thanks for the info, I'm on my laptop so can't check the key I was writing to exactly, but basically I was storing the arduino IDE version as the key and the exectable path for arduino.exe for that version

"Registry Key"/Arduino/Version/1.0.1.0    ExePath     "C:\ProgramFiles\Arduino1.0.1

My applications need to be able to scroll through all versions of installed arduino so a key is created for each install as above.
13  Development / Other Software Development / Re: [MOD] Arduino Enhanced Release 1.0.1a for Windows (installer, drivers, etc) on: August 28, 2012, 02:10:02 pm
Hi,

I think the idea of a windows setup.exe is a good one, I do something similar myself, http://www.kicchip.co.uk/download/arduino/1.0.1/setup.exe but yours seems to have more features than mine.

One reason I used an installer was so that the installation path could be stored in the windows registry, that way my other software knows where to look for all the arduino related files. Is that a feature you could add to your setup so I could use yours instead?

P.S I use inno for my setup.



14  Forum 2005-2010 (read only) / Development / I'm building a code sharing library on: September 01, 2007, 12:43:11 pm
Hi,

I am building a free code sharing library for electronic / microcontroller projects, (pays for itself via google ads on the page).

The idea is that users can upload code and photos/schemtics. It has a form of version control built in so you can update your projects and see the changes over time.

Is this something that would interest Arduino users? If so I'll post the link so you can play with it.

Also, what would you suggest as the licence/copyright statements, for the moment I've just said that all code uploaded can be used for commercial and non-commercial use.

Thanks,
Mike
Pages: [1]