Razor 9DOF test code?

924 views
Skip to first unread message

km...@arrl.net

unread,
Mar 11, 2013, 6:27:19 PM3/11/13
to sf_9dof_a...@googlegroups.com
I found source for the Razor 9DOF test code on the SparkFun product page, but it looks like it requires an Atmel compiler.  I see a hex file Is there any way to load with Arduino IDE?  Or maybe someone has ported the code over to the Arduino IDE?

Thanks!

Alan  KM6VV

goo...@toborguru.net

unread,
Mar 11, 2013, 6:37:26 PM3/11/13
to sf_9dof_a...@googlegroups.com

Andrew Goldberg

unread,
Mar 11, 2013, 6:39:39 PM3/11/13
to sf_9dof_a...@googlegroups.com

goo...@toborguru.net

unread,
Mar 11, 2013, 6:46:03 PM3/11/13
to sf_9dof_a...@googlegroups.com
The link I sent earlier is hard to find the file. The post you're looking for was: Dávid Málik 7/10/11

That file is quite a bit newer than listed on the google code page.


On Monday, March 11, 2013 4:27:19 PM UTC-6, km...@arrl.net wrote:

KM6VV

unread,
Mar 11, 2013, 8:19:29 PM3/11/13
to sf_9dof_a...@googlegroups.com
I searched for update_2 and also looked at the below, but they seem to
both be AHRS.

I'm looking for the code that Sparkfun ships in the Razor. It signs on
with:

9DOF IMU Firmware v22

==========================

[1]Accelerometer: ADXL345

[2]Magnetometer: HMC5883

[3]Gyroscope: ITG-3200

[4]Raw Output

[5]Change Baud Rate: 57600bps

[Ctrl+z]Toggle Autorun

[?]Help

SparkFun-9DOF-Razor-IMU-Test-Firmware-master

is presumably what is pre-loaded on the Razor. The code can't be
compiled by the Arduio IDE as far as I know.

Maybe http://code.google.com/p/sf9domahrs/downloads/list does something
similar? I like the simple menu of v22. Can you comment more? I
downloaded the code into a UNO, but it error-ed out because it didn't
have the sensors.

I'd really like the ability to "drop back" to v22.

Found SF9DOF_AHRS_update2.ZIP, but again it's the AHRS 1.41 update (as
far as I understand).

Thanks for the quick answers!

Alan KM6VV
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sf_9dof_ahrs_update" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sf_9dof_ahrs_update/UTKcazbBKyM/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to
> sf_9dof_ahrs_up...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

goo...@toborguru.net

unread,
Mar 12, 2013, 12:18:03 AM3/12/13
to sf_9dof_a...@googlegroups.com, KM...@sbcglobal.net
My bad. That is the AHRS code. Sorry for the confusion.
> sf_9dof_ahrs_update+unsub...@googlegroups.com.

morteza haydari

unread,
Mar 12, 2013, 12:43:28 AM3/12/13
to sf_9dof_a...@googlegroups.com, KM...@sbcglobal.net
The code should be just fine. Please try again. The C code is for the firmware, which you don't really need to change. You should be able to change the arduino code, and upload it to the micro

p.s. I remember there was a modification by david something that had some bugs fixed to get the correct data. I don't have it though.

All the best,
Morteza



On Monday, March 11, 2013 6:19:29 PM UTC-6, KM6VV wrote:
I searched for update_2 and also looked at the below, but they seem to
both be AHRS.

I'm looking for the code that Sparkfun ships in the Razor.  It signs on
with:

9DOF IMU Firmware v22

==========================

[1]Accelerometer: ADXL345

[2]Magnetometer: HMC5883

[3]Gyroscope: ITG-3200

[4]Raw Output

[5]Change Baud Rate: 57600bps

[Ctrl+z]Toggle Autorun

[?]Help

SparkFun-9DOF-Razor-IMU-Test- Firmware-master

is presumably what is pre-loaded on the Razor.  The code can't be
compiled by the Arduio IDE as far as I know.

--
You received this message because you are subscribed to the Google Groups "sf_9dof_ahrs_update" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sf_9dof_ahrs_up...@googlegroups.com.

KM6VV

unread,
Mar 12, 2013, 1:20:00 AM3/12/13
to morteza haydari, sf_9dof_a...@googlegroups.com
Sorry, I'm not really following.  the files for 9DOF IMU Firmware v22?  They have to be compiled and downloaded into the Arduino.  That's the problem, they are not set up (as far as I know) for the Arduino IDE to compile and download.  Probably need the AR (?) compiler.

Alan  KM6VV

morteza haydari

unread,
Mar 12, 2013, 1:29:25 AM3/12/13
to sf_9dof_a...@googlegroups.com
I see that the firmware has changed. You can upload the previous ones using avrdude programmer I guess.

The old firmware is here:
https://www.sparkfun.com/products/10125

All the best,
Morteza


--- On Tue, 3/12/13, KM6VV <KM...@sbcglobal.net> wrote:

KM6VV

unread,
Mar 12, 2013, 1:50:19 AM3/12/13
to sf_9dof_a...@googlegroups.com
OK, I see what you're saying.  I could program the .HEX file with AVRdude.

This is the current software.
http://github.com/a1ronzo/SparkFun-9DOF-Razor-IMU-Test-Firmware

However I would like to be able to edit the code as well.

Alan KM6VV
To unsubscribe from this group and all its topics, send an email to sf_9dof_ahrs_up...@googlegroups.com.

morteza haydari

unread,
Mar 12, 2013, 1:54:59 AM3/12/13
to sf_9dof_a...@googlegroups.com
the .HEX part is literally just the arduino loader and communication drivers. Then, you can edit the pde code and load it to the board through arduino IDE. The newer version is having some "ino" code that I have not worked with before.

KM6VV

unread,
Mar 12, 2013, 2:43:43 AM3/12/13
to sf_9dof_a...@googlegroups.com
I didn't realize that the hex was just the loader.  It is called main, same as the main.c module.

Is AVR a compiler (tool chain).

Alan KM6VV

Dávid Málik

unread,
Mar 12, 2013, 2:45:58 AM3/12/13
to sf_9dof_a...@googlegroups.com
Hi Everyone,

The .HEX part is not the arduino loader. Its says on the website: "The board comes programmed with the 8MHz Arduino bootloader (stk500v1) and some example firmware that demos the outputs of all the sensors." (https://www.sparkfun.com/products/10125). The example/test firmware is the .HEX part.

Alan KM6VV: As others said before, you have to use avrdude to load the HEX file to the board. Its almost as easy as with the arduino IDE.

If you are still interested in AHRS code, please check out this guy's website, he seems to made some improvements: https://dev.qu.tu-berlin.de/projects/sf-razor-9dof-ahrs/wiki/Tutorial

Regards,
David

KM6VV

unread,
Mar 12, 2013, 3:20:58 AM3/12/13
to sf_9dof_a...@googlegroups.com
That's more like I thought.
The hex is main.c compiled. 
I was hoping to also be able to compile main.c like I used to when I had one of the AVR (?) compilers. 
Is there C code in main.c for the loader, or does the  makefile just load it the same place above the loader in the chip?  I'd hate to wipe out the loader.  Well, the hex is better then nothing.  Is that hex just for the mini?  It must be. 

Yes, I've been looking at the dev.qu.tu-berlin.de  9dof code, as I want to connect the Razor to a PC running ROS on Linux.  It appears that that version of AHRS is like the code included in the razor_imu_9dof ROS package.  Probably what I'll use.  INO and PDE files are available for the 1.41 vers.

Thanks all!
Alan

Málik Dávid

unread,
Mar 12, 2013, 4:10:22 AM3/12/13
to sf_9dof_a...@googlegroups.com
I think you can compile main.c using WinAVR and upload it using avrdude or avrdude gui. The problem is I don't remember how I used these.
If I remember correctly (correct me if I'm wrong) but you cannot wipe the loader by uploading a new firmware. If I'm correct in order to wipe/replace the loader you have to have a uC programmer hardware like STK500 (or an arduino board programmed as an STK500 can be used as a programmer).
Please correct me if I'm wrong but as I know the difference between using a uC programmer hardware or using a bootloader is that:
1) by using the bootloader (e.g. arduino bootloader) you send the bytes of the new firmware to the device's bootloader and it saves it to the uC's ROM, but not changing/wiping/damaging the bootloader its self.
2) On the other hand by using an programmer (STK500) you are DIRECTLY writing to the uC's ROM overwriting EVERYTHING.

So in summary: if you don't have an STK500 like uC programmer hardware you cannot change or damage/wipe the bootloader. You can simply use the Makefile for the previously mentioned example/test firmware and upload the new firmware to the board using the "avrdude serial bootloader" programming option. It's important to configure the Makefile before uploading the firmware in order it to work correctly!

Regards,
David

KM6VV

unread,
Mar 12, 2013, 1:44:42 PM3/12/13
to sf_9dof_a...@googlegroups.com
Hi David,

That sounds correct.

I DO have an old SDK500 I could dust off. Needs to use the ISP connector.

I just wonder what the hex file includes? Does AVRdude know how to load
hex files, and not overwrite any boot loader?

I was thinking I could try the hex file load on a UNO, but the image is
probably different then the mini.

The Arduino boot loader is probably the safest. But it doesn't know how
to handle a hex file, that I know of.

I just dowloaded and compiled with WinAVR. hex is 34K vs 24K. Curious.

But that's probably enough to give me a back-up.

Hard to know what will be re-loaded! It will require more study, but
I'll put that off until I need to go there. Might even try to port the
test code to Arduino IDE build/load.

The last time I programmed Atmel chips (other then Arduino) I used CV
AVR and the SDK500. No boot loaders then! My CV AVR was on a laptop
that got a bad virus, and had to be wiped. Replaced it with Linux.

Thanks!

Alan KM6VV
> <http://dev.qu.tu-berlin.de> 9dof code, as I want to connect the
> Razor to a PC running ROS on Linux. It appears that that version of
> AHRS is like the code included in the razor_imu_9dof ROS package.
> Probably what I'll use. INO and PDE files are available for the
> 1.41 vers.
>
> Thanks all!
> Alan
>
>
> On 3/11/2013 11:45 PM, D�vid M�lik wrote:
>> Hi Everyone,
>>
>> The .HEX part is not the arduino loader. Its says on the website:
>> "The board comes programmed with the 8MHz Arduino bootloader
>> (stk500v1) *and* some example firmware
>> <https://github.com/a1ronzo/SparkFun-9DOF-Razor-IMU-Test-Firmware>
>> that demos the outputs of all the sensors."
>> (https://www.sparkfun.com/products/10125). The example/test
>> firmware is the .HEX part.
>>
>> Alan KM6VV: As others said before, you have to use avrdude to load
>> the HEX file to the board. Its almost as easy as with the arduino IDE.
>>
>> If you are still interested in AHRS code, please check out this
>> guy's website, he seems to made some improvements:
>> https://dev.qu.tu-berlin.de/projects/sf-razor-9dof-ahrs/wiki/Tutorial
>>
>> Regards,
>> David
>>
>> On Tue, Mar 12, 2013 at 6:54 AM, morteza haydari
>> <morteza...@yahoo.com <mailto:morteza...@yahoo.com>> wrote:
>>
>> the .HEX part is literally just the arduino loader and
>> communication drivers. Then, you can edit the pde code and
>> load it to the board through arduino IDE. The newer version is
>> having some "ino" code that I have not worked with before.
>>
>>
>> /All the best,
>> Morteza
>> /
>>
>> --- On *Tue, 3/12/13, KM6VV /<KM...@sbcglobal.net
>> <mailto:KM...@sbcglobal.net>>/* wrote:
>>
>>
>> From: KM6VV <KM...@sbcglobal.net <mailto:KM...@sbcglobal.net>>
>> Subject: Re: [sf_9dof_ahrs_update] Re: Razor 9DOF test code?
>> To: sf_9dof_a...@googlegroups.com
>> <mailto:sf_9dof_a...@googlegroups.com>
>> Received: Tuesday, March 12, 2013, 1:50 AM
>>
>>
>> OK, I see what you're saying. I could program the .HEX
>> file with AVRdude.
>>
>> This is the current software.
>> http://github.com/a1ronzo/SparkFun-9DOF-Razor-IMU-Test-Firmware
>>
>> However I would like to be able to edit the code as well.
>>
>> Alan KM6VV
>>
>> On 3/11/2013 10:29 PM, morteza haydari wrote:
>>> I see that the firmware has changed. You can upload the
>>> previous ones using avrdude programmer I guess.
>>>
>>> The old firmware is here:
>>> https://www.sparkfun.com/products/10125
>>>
>>> /All the best,
>>> Morteza
>>> /
>>>
>>> --- On *Tue, 3/12/13, KM6VV /<KM...@sbcglobal.net>
>>> <http://mc/compose?to=KM...@sbcglobal.net>/* wrote:
>>>
>>>
>>> From: KM6VV <KM...@sbcglobal.net>
>>> <http://mc/compose?to=KM...@sbcglobal.net>
>>> Subject: Re: [sf_9dof_ahrs_update] Re: Razor 9DOF
>>> test code?
>>> To: "morteza haydari" <morteza...@yahoo.com>
>>> <http://mc/compose?to=morteza...@yahoo.com>
>>> Cc: sf_9dof_a...@googlegroups.com
>>> <http://mc/compose?to=sf_9dof_a...@googlegroups.com>
>>> Received: Tuesday, March 12, 2013, 1:20 AM
>>>
>>> Sorry, I'm not really following. the files for 9DOF
>>> IMU Firmware v22? They have to be compiled and
>>> downloaded into the Arduino. That's the problem,
>>> they are not set up (as far as I know) for the
>>> Arduino IDE to compile and download. Probably need
>>> the AR (?) compiler.
>>>
>>> Alan KM6VV
>>>
>>> On 3/11/2013 9:43 PM, morteza haydari wrote:
>>>> The code should be just fine. Please try again. The
>>>> C code is for the firmware, which you don't really
>>>> need to change. You should be able to change the
>>>> arduino code, and upload it to the micro
>>>>
>>>> p.s. I remember there was a modification by david
>>>> something that had some bugs fixed to get the
>>>> correct data. I don't have it though.
>>>>
>>>> /All the best,
>>>> Morteza
>>>> /
>>>>
>>>>
>>>> On Monday, March 11, 2013 6:19:29 PM UTC-6,
>>>> KM6VV wrote:
>>>>
>>>> I searched for update_2 and also looked at
>>>> the below, but they seem to
>>>> both be AHRS.
>>>>
>>>> I'm looking for the code that Sparkfun ships
>>>> in the Razor. It signs on
>>>> with:
>>>>
>>>> 9DOF IMU Firmware v22
>>>>
>>>> ==========================
>>>>
>>>> [1]Accelerometer: ADXL345
>>>>
>>>> [2]Magnetometer: HMC5883
>>>>
>>>> [3]Gyroscope: ITG-3200
>>>>
>>>> [4]Raw Output
>>>>
>>>> [5]Change Baud Rate: 57600bps
>>>>
>>>> [Ctrl+z]Toggle Autorun
>>>>
>>>> [?]Help
>>>>
>>>> SparkFun-9DOF-Razor-IMU-Test- Firmware-master
>>>>
>>>> is presumably what is pre-loaded on the
>>>> Razor. The code can't be
>>>> compiled by the Arduio IDE as far as I know.
>>>>
>>>> Maybe http://code.google.com/p/
>>>> sf9domahrs/downloads/list
>>>> <http://code.google.com/p/sf9domahrs/downloads/list>
>>>> does something
>>>> similar? I like the simple menu of v22.
>>>> Can you comment more? I
>>>> downloaded the code into a UNO, but it
>>>> error-ed out because it didn't
>>>> have the sensors.
>>>>
>>>> I'd really like the ability to "drop back"
>>>> to v22.
>>>>
>>>> Found SF9DOF_AHRS_update2.ZIP, but again
>>>> it's the AHRS 1.41 update (as
>>>> far as I understand).
>>>>
>>>> Thanks for the quick answers!
>>>>
>>>> Alan KM6VV
>>>>
>>>>
>>>>
>>>>
>>>> On 3/11/2013 3:39 PM, Andrew Goldberg wrote:
>>>> > http://code.google.com/p/
>>>> sf9domahrs/downloads/list
>>>> <http://code.google.com/p/sf9domahrs/downloads/list>
>>>>
>>>> >
>>>> > On Monday, March 11, 2013 3:27:19 PM
>>>> UTC-7, km...@arrl.net wrote:
>>>> >
>>>> > I found source for the Razor 9DOF test
>>>> code on the SparkFun product
>>>> > page, but it looks like it requires an
>>>> Atmel compiler. I see a hex
>>>> > file Is there any way to load with
>>>> Arduino IDE? Or maybe someone
>>>> > has ported the code over to the
>>>> Arduino IDE?
>>>> >
>>>> > Thanks!
>>>> >
>>>> > Alan KM6VV
>>>> >
>>>> > --
>>>> > You received this message because you are
>>>> subscribed to a topic in the
>>>> > Google Groups "sf_9dof_ahrs_update" group.
>>>> > To unsubscribe from this topic, visit
>>>> > https://groups.google.com/d/
>>>> topic/sf_9dof_ahrs_update/
>>>> UTKcazbBKyM/unsubscribe?hl=en
>>>> <https://groups.google.com/d/topic/sf_9dof_ahrs_update/UTKcazbBKyM/unsubscribe?hl=en>.
>>>>
>>>> > To unsubscribe from this group and all its
>>>> topics, send an email to
>>>> > sf_9dof_ahrs_update+
>>>> unsub...@googlegroups.com.
>>>> > For more options, visit
>>>> https://groups.google.com/ groups/opt_out
>>>> <https://groups.google.com/groups/opt_out>.
>>>> >
>>>> >
>>>>
>>>> --
>>>> You received this message because you are
>>>> subscribed to the Google Groups
>>>> "sf_9dof_ahrs_update" group.
>>>> To unsubscribe from this group and stop
>>>> receiving emails from it, send an email to
>>>> sf_9dof_ahrs_up...@googlegroups.com.
>>>> For more options, visit
>>>> https://groups.google.com/groups/opt_out.
>>>>
>>>>
>>>
>>> --
>>> You received this message because you are subscribed
>>> to the Google Groups "sf_9dof_ahrs_update" group.
>>> To unsubscribe from this group and stop receiving
>>> emails from it, send an email to
>>> sf_9dof_ahrs_up...@googlegroups.com
>>> <http://mc/compose?to=sf_9dof_ahrs_up...@googlegroups.com>.
>>> For more options, visit
>>> https://groups.google.com/groups/opt_out.
>>>
>>>
>>> --
>>> You received this message because you are subscribed to a
>>> topic in the Google Groups "sf_9dof_ahrs_update" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/sf_9dof_ahrs_update/UTKcazbBKyM/unsubscribe?hl=en.
>>> To unsubscribe from this group and all its topics, send
>>> an email to
>>> sf_9dof_ahrs_up...@googlegroups.com
>>> <http://mc/compose?to=sf_9dof_ahrs_up...@googlegroups.com>.
>>> For more options, visit
>>> https://groups.google.com/groups/opt_out.
>>>
>>>
>>
>> --
>> You received this message because you are subscribed to
>> the Google Groups "sf_9dof_ahrs_update" group.
>> To unsubscribe from this group and stop receiving emails
>> from it, send an email to
>> sf_9dof_ahrs_up...@googlegroups.com
>> <mailto:sf_9dof_ahrs_update%2Bunsu...@googlegroups.com>.
>> For more options, visit
>> https://groups.google.com/groups/opt_out.
>>
>>
>> --
>> You received this message because you are subscribed to the
>> Google Groups "sf_9dof_ahrs_update" group.
>> To unsubscribe from this group and stop receiving emails from
>> it, send an email to
>> sf_9dof_ahrs_up...@googlegroups.com
>> <mailto:sf_9dof_ahrs_update%2Bunsu...@googlegroups.com>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>> --
>> You received this message because you are subscribed to a topic in
>> the Google Groups "sf_9dof_ahrs_update" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/sf_9dof_ahrs_update/UTKcazbBKyM/unsubscribe?hl=en.
>> To unsubscribe from this group and all its topics, send an email
>> to sf_9dof_ahrs_up...@googlegroups.com
>> <mailto:sf_9dof_ahrs_up...@googlegroups.com>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>
> --
> You received this message because you are subscribed to the Google
> Groups "sf_9dof_ahrs_update" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to sf_9dof_ahrs_up...@googlegroups.com
> <mailto:sf_9dof_ahrs_update%2Bunsu...@googlegroups.com>.

goo...@toborguru.net

unread,
Mar 12, 2013, 2:13:29 PM3/12/13
to sf_9dof_a...@googlegroups.com, KM...@sbcglobal.net
The arduino bootloader is capable of loading a hex file. That said I normally don't use the Arduino tools and I don't know how to do it through the IDE.

Here is a hint on how to use avrdude or XLoader to talk directly to the Arduino bootloader without using a programmer and with no risk to the bootloader:
http://arduino.cc/forum/index.php?topic=49343.0

If you do use an SDK500, and you want to preserve the Arduino bootloader, DO NOT ERASE THE CHIP first, simply load on top of the existing image.

The hex files you are talking about, have downloaded, and have rebuilt, are all program files that include the memory locations to reside in. These should all start at address 0, and the bootloader starts at a much higher address which depends on--and needs to match--the fuse bits.

AVRDude with an SDK500 will not overwrite the existing bootloader provided:
1) You do not erase the chip first.
2) The compiled program is small enough to not overwrite the bootloader area.

AVRDude or XLoader talking to the arduino bootloader should not overwrite the bootloader, period.

Hope this helps.

Sawyer


On Tuesday, March 12, 2013 11:44:42 AM UTC-6, KM6VV wrote:
Hi David,

That sounds correct.

I DO have an old SDK500 I could dust off.  Needs to use the ISP connector.

I just wonder what the hex file includes?  Does AVRdude know how to load
hex files, and not overwrite any boot loader?

NobidioN

unread,
Mar 12, 2013, 2:14:10 PM3/12/13
to sf_9dof_a...@googlegroups.com
You misunderstood me. You don't need to use the STK500. I only said that there is two seperate ways/methods to upload a firmware:
1) STK500 programmer
2) serial loader

- The (2) requires a working bootloader on the uC, the (1) does not.
- The (1) overwrites everything, it can write to the full memory, while the (2) cannot so it is much safer and faster.
- Yes, if you use the (2) method, AVRdude wont overwrite any boot loader.
- AVRdude is able to use both method (1) and (2). (just needs some configuration)
- Use the precompiled .HEX file and simply upload it to the device using method (2)
- The Arduino bootloader is able to handle .HEX file too.

To be exact: Arduino IDE actually compiles a .HEX file and uses the AVRdude to upload the .HEX file to the board. I hope its clear now.

Regards,
David

    <morteza...@yahoo.com <mailto:mortezahaydari@yahoo.com>> wrote:

        the .HEX part is literally just the arduino loader and
        communication drivers. Then, you can edit the pde code and
        load it to the board through arduino IDE. The newer version is
        having some "ino" code that I have not worked with before.


        /All the best,
        Morteza
        /

        --- On *Tue, 3/12/13, KM6VV /<KM...@sbcglobal.net
        <mailto:KM...@sbcglobal.net>>/* wrote:


            From: KM6VV <KM...@sbcglobal.net <mailto:KM...@sbcglobal.net>>

            Subject: Re: [sf_9dof_ahrs_update] Re: Razor 9DOF test code?
            <mailto:sf_9dof_ahrs_update@googlegroups.com>

            Received: Tuesday, March 12, 2013, 1:50 AM


            OK, I see what you're saying.  I could program the .HEX
            file with AVRdude.

            This is the current software.
            http://github.com/a1ronzo/SparkFun-9DOF-Razor-IMU-Test-Firmware

            However I would like to be able to edit the code as well.

            Alan KM6VV

            On 3/11/2013 10:29 PM, morteza haydari wrote:
            I see that the firmware has changed. You can upload the
            previous ones using avrdude programmer I guess.

            The old firmware is here:
            https://www.sparkfun.com/products/10125

            /All the best,
            Morteza
            /

            --- On *Tue, 3/12/13, KM6VV /<KM...@sbcglobal.net>
            <http://mc/compose?to=KM6VV@sbcglobal.net>/* wrote:


                From: KM6VV <KM...@sbcglobal.net>
                <http://mc/compose?to=KM6VV@sbcglobal.net>

                Subject: Re: [sf_9dof_ahrs_update] Re: Razor 9DOF
                test code?
                To: "morteza haydari" <morteza...@yahoo.com>
                <http://mc/compose?to=morteza...@yahoo.com>
                    sf_9dof_ahrs_update+unsub...@googlegroups.com.

                    For more options, visit
                    https://groups.google.com/groups/opt_out.



                --
                You received this message because you are subscribed
                to the Google Groups "sf_9dof_ahrs_update" group.
                To unsubscribe from this group and stop receiving
                emails from it, send an email to

                For more options, visit
                https://groups.google.com/groups/opt_out.


            --
            You received this message because you are subscribed to a
            topic in the Google Groups "sf_9dof_ahrs_update" group.
            To unsubscribe from this topic, visit
            https://groups.google.com/d/topic/sf_9dof_ahrs_update/UTKcazbBKyM/unsubscribe?hl=en.
            To unsubscribe from this group and all its topics, send
            an email to

            For more options, visit
            https://groups.google.com/groups/opt_out.



            --
            You received this message because you are subscribed to
            the Google Groups "sf_9dof_ahrs_update" group.
            To unsubscribe from this group and stop receiving emails
            from it, send an email to

            For more options, visit
            https://groups.google.com/groups/opt_out.


        --
        You received this message because you are subscribed to the
        Google Groups "sf_9dof_ahrs_update" group.
        To unsubscribe from this group and stop receiving emails from
        it, send an email to

        For more options, visit https://groups.google.com/groups/opt_out.



    --
    You received this message because you are subscribed to a topic in
    the Google Groups "sf_9dof_ahrs_update" group.
    To unsubscribe from this topic, visit
    https://groups.google.com/d/topic/sf_9dof_ahrs_update/UTKcazbBKyM/unsubscribe?hl=en.
    To unsubscribe from this group and all its topics, send an email

    For more options, visit https://groups.google.com/groups/opt_out.



    --
    You received this message because you are subscribed to the Google
    Groups "sf_9dof_ahrs_update" group.
    To unsubscribe from this group and stop receiving emails from it,

    For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to a topic in the
Google Groups "sf_9dof_ahrs_update" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/sf_9dof_ahrs_update/UTKcazbBKyM/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to

For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to the Google Groups "sf_9dof_ahrs_update" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sf_9dof_ahrs_update+unsub...@googlegroups.com.

NobidioN

unread,
Mar 12, 2013, 2:18:40 PM3/12/13
to sf_9dof_a...@googlegroups.com
Thank you Sawyer for your answer! Than I was incorrect/wrong on that the STK500 will erase the bootloader. Thank you for your correction and information! :)

Alan KM6VV: In summary: you dont need to worry about overwriting or wiping the bootloader, and you can simply upload the compiled .HEX file.

Regards,
David

goo...@toborguru.net

unread,
Mar 12, 2013, 2:51:32 PM3/12/13
to sf_9dof_a...@googlegroups.com
Alan KM6VV:  Looking into it more, you should just use XLoader and forget about it, then all you need to worry about is the baud rate... ;)
http://russemotto.com/xloader/

KM6VV

unread,
Mar 12, 2013, 3:28:39 PM3/12/13
to sf_9dof_a...@googlegroups.com
I turned on verbose to get a clue of what the compiler was doing.
Also did preproc.save_build_files=true

I figured the Arduino ADE just uses the gcc (or whatever tool chain) to
compile, generating a hex. I'm still looking for the hex file.

did a compile over in the Arduino IDE, saw:
C:\DOCUME~1\Alan\LOCALS~1\Temp\build8444526248636544217.tmp\Razor_AHRS.cpp.hex

in the verbose, but I can't find the hex.

I'll play with it some more.

Yes thanks all!

Alan KM6VV
> <https://github.com/a1ronzo/__SparkFun-9DOF-Razor-IMU-Test-__Firmware
> <https://github.com/a1ronzo/SparkFun-9DOF-Razor-IMU-Test-Firmware>>
>
> that demos the outputs of all the sensors."
> (https://www.sparkfun.com/__products/10125
> <https://www.sparkfun.com/products/10125>). The example/test
> firmware is the .HEX part.
>
> Alan KM6VV: As others said before, you have to use
> avrdude to load
> the HEX file to the board. Its almost as easy as with
> the arduino IDE.
>
> If you are still interested in AHRS code, please check
> out this
> guy's website, he seems to made some improvements:
> https://dev.qu.tu-berlin.de/__projects/sf-razor-9dof-ahrs/__wiki/Tutorial
> <https://dev.qu.tu-berlin.de/projects/sf-razor-9dof-ahrs/wiki/Tutorial>
>
> Regards,
> David
>
> On Tue, Mar 12, 2013 at 6:54 AM, morteza haydari
> <morteza...@yahoo.com
> <mailto:morteza...@yahoo.com>
> <mailto:mortezahaydari@yahoo.__com
> <mailto:morteza...@yahoo.com>>> wrote:
>
> the .HEX part is literally just the arduino loader and
> communication drivers. Then, you can edit the pde
> code and
> load it to the board through arduino IDE. The newer
> version is
> having some "ino" code that I have not worked with
> before.
>
>
> /All the best,
> Morteza
> /
>
> --- On *Tue, 3/12/13, KM6VV /<KM...@sbcglobal.net
> <mailto:KM...@sbcglobal.net>
> <mailto:KM...@sbcglobal.net
> <mailto:KM...@sbcglobal.net>>>/__* wrote:
>
>
> From: KM6VV <KM...@sbcglobal.net
> <mailto:KM...@sbcglobal.net> <mailto:KM...@sbcglobal.net
> <mailto:KM...@sbcglobal.net>>>
>
> Subject: Re: [sf_9dof_ahrs_update] Re: Razor
> 9DOF test code?
> To: sf_9dof_ahrs_update@__googlegroups.com
> <mailto:sf_9dof_a...@googlegroups.com>
> <mailto:sf_9dof_ahrs_update@__googlegroups.com
> <mailto:sf_9dof_a...@googlegroups.com>>
>
> Received: Tuesday, March 12, 2013, 1:50 AM
>
>
> OK, I see what you're saying. I could program
> the .HEX
> file with AVRdude.
>
> This is the current software.
> http://github.com/a1ronzo/__SparkFun-9DOF-Razor-IMU-Test-__Firmware
> <http://github.com/a1ronzo/SparkFun-9DOF-Razor-IMU-Test-Firmware>
>
> However I would like to be able to edit the
> code as well.
>
> Alan KM6VV
>
> On 3/11/2013 10:29 PM, morteza haydari wrote:
>
> I see that the firmware has changed. You
> can upload the
> previous ones using avrdude programmer I guess.
>
> The old firmware is here:
> https://www.sparkfun.com/__products/10125
> <https://www.sparkfun.com/products/10125>
>
> /All the best,
> Morteza
> /
>
> --- On *Tue, 3/12/13, KM6VV
> /<KM...@sbcglobal.net <mailto:KM...@sbcglobal.net>>
> <http://mc/compose?to=KM6VV@__sbcglobal.net
> <http://mc/compose?to=KM6VV@__sbcglobal.net
> <http://mc/compose?to=KM...@sbcglobal.net>>
>
> Subject: Re: [sf_9dof_ahrs_update] Re:
> Razor 9DOF
> test code?
> To: "morteza haydari"
> <morteza...@yahoo.com <mailto:morteza...@yahoo.com>>
>
> <http://mc/compose?to=__mortez...@yahoo.com
> <http://mc/compose?to=morteza...@yahoo.com>>
> Cc:
> sf_9dof_ahrs_update@__googlegroups.com
> <mailto:sf_9dof_a...@googlegroups.com>
>
> <http://mc/compose?to=sf_9dof___...@googlegroups.com
> <http://mc/compose?to=sf_9dof_a...@googlegroups.com>>
> <http://code.google.com/p/__sf9domahrs/downloads/list <http://code.google.com/p/sf9domahrs/downloads/list>>
>
> does something
> similar? I like the simple
> menu of v22.
> Can you comment more? I
> downloaded the code into a
> UNO, but it
> error-ed out because it didn't
> have the sensors.
>
> I'd really like the ability
> to "drop back"
> to v22.
>
> Found
> SF9DOF_AHRS_update2.ZIP, but again
> it's the AHRS 1.41 update (as
> far as I understand).
>
> Thanks for the quick answers!
>
> Alan KM6VV
>
>
>
>
> On 3/11/2013 3:39 PM,
> Andrew Goldberg wrote:
> > http://code.google.com/p/
> sf9domahrs/downloads/list
>
> <http://code.google.com/p/__sf9domahrs/downloads/list <http://code.google.com/p/sf9domahrs/downloads/list>>
>
>
> >
> > On Monday, March 11, 2013
> 3:27:19 PM
> UTC-7, km...@arrl.net
> <https://groups.google.com/d/__topic/sf_9dof_ahrs_update/__UTKcazbBKyM/unsubscribe?hl=en
> <https://groups.google.com/d/topic/sf_9dof_ahrs_update/UTKcazbBKyM/unsubscribe?hl=en>>__.
>
>
> > To unsubscribe from this
> group and all its
> topics, send an email to
> > sf_9dof_ahrs_update+
> unsub...@googlegroups.com
> <mailto:unsub...@googlegroups.com>.
> > For more options, visit
> https://groups.google.com/ groups/opt_out
>
> <https://groups.google.com/__groups/opt_out
> <https://groups.google.com/groups/opt_out>>.
> >
> >
>
> --
> You received this message
> because you are
> subscribed to the Google Groups
> "sf_9dof_ahrs_update" group.
> To unsubscribe from this group
> and stop
> receiving emails from it, send
> an email to
> sf_9dof_ahrs_upd...@googlegroups.com
> <mailto:sf_9dof_ahrs_update%2Bunsu...@googlegroups.com>.
> For more options, visit
> https://groups.google.com/__groups/opt_out
> <https://groups.google.com/groups/opt_out>.
>
>
>
> --
> You received this message because you
> are subscribed
> to the Google Groups
> "sf_9dof_ahrs_update" group.
> To unsubscribe from this group and stop
> receiving
> emails from it, send an email to
> sf_9dof_ahrs_upd...@googlegroups.com
> <mailto:sf_9dof_ahrs_update%2Bunsu...@googlegroups.com>
>
> <http://mc/compose?to=sf_9dof___ahrs_update+unsubscribe@__googlegroups.com
> <http://mc/compose?to=sf_9dof_ahrs_up...@googlegroups.com>>.
>
> For more options, visit
> https://groups.google.com/__groups/opt_out
> <https://groups.google.com/groups/opt_out>.
>
>
> --
> You received this message because you are
> subscribed to a
> topic in the Google Groups
> "sf_9dof_ahrs_update" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/__topic/sf_9dof_ahrs_update/__UTKcazbBKyM/unsubscribe?hl=en
> <https://groups.google.com/d/topic/sf_9dof_ahrs_update/UTKcazbBKyM/unsubscribe?hl=en>.
> To unsubscribe from this group and all its
> topics, send
> an email to
> sf_9dof_ahrs_upd...@googlegroups.com
> <mailto:sf_9dof_ahrs_update%2Bunsu...@googlegroups.com>
>
> <http://mc/compose?to=sf_9dof___ahrs_update+unsubscribe@__googlegroups.com
> <http://mc/compose?to=sf_9dof_ahrs_up...@googlegroups.com>>.
>
> For more options, visit
> https://groups.google.com/__groups/opt_out
> <https://groups.google.com/groups/opt_out>.
>
>
>
> --
> You received this message because you are
> subscribed to
> the Google Groups "sf_9dof_ahrs_update" group.
> To unsubscribe from this group and stop
> receiving emails
> from it, send an email to
> sf_9dof_ahrs_upd...@googlegroups.com
> <mailto:sf_9dof_ahrs_update%2Bunsu...@googlegroups.com>
>
> <mailto:sf_9dof_ahrs_update%__2Buns...@googlegroups.com
> <mailto:sf_9dof_ahrs_update%252Buns...@googlegroups.com>__>.
>
> For more options, visit
> https://groups.google.com/__groups/opt_out
> <https://groups.google.com/groups/opt_out>.
>
>
> --
> You received this message because you are
> subscribed to the
> Google Groups "sf_9dof_ahrs_update" group.
> To unsubscribe from this group and stop receiving
> emails from
> it, send an email to
> sf_9dof_ahrs_upd...@googlegroups.com
> <mailto:sf_9dof_ahrs_update%2Bunsu...@googlegroups.com>
>
> <mailto:sf_9dof_ahrs_update%__2Buns...@googlegroups.com
> <mailto:sf_9dof_ahrs_update%252Buns...@googlegroups.com>__>.
>
> For more options, visit
> https://groups.google.com/__groups/opt_out
> <https://groups.google.com/groups/opt_out>.
>
>
>
> --
> You received this message because you are subscribed to
> a topic in
> the Google Groups "sf_9dof_ahrs_update" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/__topic/sf_9dof_ahrs_update/__UTKcazbBKyM/unsubscribe?hl=en
> <https://groups.google.com/d/topic/sf_9dof_ahrs_update/UTKcazbBKyM/unsubscribe?hl=en>.
> To unsubscribe from this group and all its topics, send
> an email
> to sf_9dof_ahrs_upd...@googlegroups.com
> <mailto:sf_9dof_ahrs_update%2Bunsu...@googlegroups.com>
>
> <mailto:sf_9dof_ahrs_upd...@googlegroups.com
> <mailto:sf_9dof_ahrs_update%2Bunsu...@googlegroups.com>>.
>
> For more options, visit
> https://groups.google.com/__groups/opt_out
> <https://groups.google.com/groups/opt_out>.
>
>
>
> --
> You received this message because you are subscribed to the
> Google
> Groups "sf_9dof_ahrs_update" group.
> To unsubscribe from this group and stop receiving emails
> from it,
> send an email to
> sf_9dof_ahrs_upd...@googlegroups.com
> <mailto:sf_9dof_ahrs_update%2Bunsu...@googlegroups.com>
>
> <mailto:sf_9dof_ahrs_update%__2Buns...@googlegroups.com
> <mailto:sf_9dof_ahrs_update%252Buns...@googlegroups.com>__>.
>
> For more options, visit
> https://groups.google.com/__groups/opt_out
> <https://groups.google.com/groups/opt_out>.
>
>
>
> --
> You received this message because you are subscribed to a topic
> in the
> Google Groups "sf_9dof_ahrs_update" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/__topic/sf_9dof_ahrs_update/__UTKcazbBKyM/unsubscribe?hl=en
> <https://groups.google.com/d/topic/sf_9dof_ahrs_update/UTKcazbBKyM/unsubscribe?hl=en>.
> To unsubscribe from this group and all its topics, send an email to
> sf_9dof_ahrs_upd...@googlegroups.com
> <mailto:sf_9dof_ahrs_update%2Bunsu...@googlegroups.com>.
> For more options, visit
> https://groups.google.com/__groups/opt_out
> <https://groups.google.com/groups/opt_out>.
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "sf_9dof_ahrs_update" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to sf_9dof_ahrs_upd...@googlegroups.com
> <mailto:sf_9dof_ahrs_update%2Bunsu...@googlegroups.com>.
> For more options, visit https://groups.google.com/__groups/opt_out
> <https://groups.google.com/groups/opt_out>.
>
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sf_9dof_ahrs_update" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sf_9dof_ahrs_update/UTKcazbBKyM/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to
> sf_9dof_ahrs_up...@googlegroups.com.

KM6VV

unread,
Mar 12, 2013, 3:34:21 PM3/12/13
to sf_9dof_a...@googlegroups.com
thanks! I'll try it.

Alan KM6VV
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sf_9dof_ahrs_update" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sf_9dof_ahrs_update/UTKcazbBKyM/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to

KM6VV

unread,
Mar 12, 2013, 3:50:24 PM3/12/13
to sf_9dof_a...@googlegroups.com
Finally found the tmp for the Arduino compile:

C:\Documents and Settings\Alan\Local
Settings\Temp\build8444526248636544217.tmp

Alan KM6VV
Reply all
Reply to author
Forward
0 new messages