Release of Gluonpilot with ver 0.1 hardware

Here is the place for all your dsPic or autopilot questions.

Moderator: lukasz

Release of Gluonpilot with ver 0.1 hardware

Postby TheBoD » Tue Sep 11, 2012 9:00 pm

Tom, you supplied me with a Gluonpilot module in June 2010 and I successfuuly installed it and did some testing in manual and stabilised modes in early 2011. However due to travel for work I did not get a chance to progress to trying autopilot flying . I now have some time again and I see that there is a more recent version of the hardware. My question is what is the most recent release of the gluonpilot software I should be using with original hardware ver 0.1 . I have downloaded and installed the most recent Gluonconfig program and it seems to run OK with the older hardware.

I also notice that you provide the releases as hex files - do you ever release the source code as you used to as I have tweaked the input detectioncode slightly. I am using MPLAB IDE 8.6 with ICD3. Thanks
TheBoD
 
Posts: 37
Joined: Mon Dec 07, 2009 8:45 pm

Re: Release of Gluonpilot with ver 0.1 hardware

Postby Tom » Tue Sep 11, 2012 9:47 pm

Hi,

The firmware is always compatible with all hardware revisions!

You can find the firmware on google code: you will need an SVN client such as tortoisesvn to download it: http://code.google.com/p/gluonpilot/source/checkout
User avatar
Tom
Site Admin
 
Posts: 1016
Joined: Fri Nov 13, 2009 6:27 pm
Location: Belgium

Re: Release of Gluonpilot with ver 0.1 hardware

Postby TheBoD » Sun Sep 23, 2012 11:32 pm

Tom, many thanks for this.

I did successfully download the source code but when I run it through the MPLAB compiler I get a build error as per attached - is there another file I need ? Many thanks in advance for your help on this.

Executing: "C:\Program Files\Microchip\MPLAB C30\bin\pic30-gcc.exe" -mcpu=33FJ256MC710 -x c -c "..\lib\i2c\i2c.c" -o"tmp\i2c.o" -I"../lib/FreeRTOS" -I"../lib" -g -Wall -DMPLAB_DSPIC_PORT -mlarge-code -mlarge-data -O1
Microchip MPLAB C30 License Manager Version v3.00 (Build Date Feb 28 2007).
Copyright (c) 2005 Microchip Technology Inc. All rights reserved.
The MPLAB C30 license has expired.
pic30-coff-cc1.exe: warning: Options have been disabled due to expired license
..\lib\i2c\i2c.c: In function 'i2c_init':
..\lib\i2c\i2c.c:99: error: 'I2CRCV' undeclared (first use in this function)
..\lib\i2c\i2c.c:99: error: (Each undeclared identifier is reported only once
..\lib\i2c\i2c.c:99: error: for each function it appears in.)
..\lib\i2c\i2c.c: In function 'send_i2c_byte':
..\lib\i2c\i2c.c:110: error: 'I2CTRN' undeclared (first use in this function)
..\lib\i2c\i2c.c: In function 'i2c_read_byte':
..\lib\i2c\i2c.c:148: error: 'I2CRCV' undeclared (first use in this function)
Halting build on first failure as requested.
TheBoD
 
Posts: 37
Joined: Mon Dec 07, 2009 8:45 pm

Re: Release of Gluonpilot with ver 0.1 hardware

Postby Tom » Mon Sep 24, 2012 7:14 am

Hello,

Which compiler and IDE are you using? I assume the microcontroller's header file which comes with the compiler might have changed.
User avatar
Tom
Site Admin
 
Posts: 1016
Joined: Fri Nov 13, 2009 6:27 pm
Location: Belgium

Re: Release of Gluonpilot with ver 0.1 hardware

Postby TheBoD » Tue Sep 25, 2012 1:34 am

Tom, I am using MPLAB IDE v 8.36 and compiler Microchip MPLAB C30 License Manager Version v3.00.
TheBoD
 
Posts: 37
Joined: Mon Dec 07, 2009 8:45 pm

Re: Release of Gluonpilot with ver 0.1 hardware

Postby Tom » Tue Sep 25, 2012 6:45 am

Hmmm,

Could you upgrade to MpLab X and the latest compiler and try again?
User avatar
Tom
Site Admin
 
Posts: 1016
Joined: Fri Nov 13, 2009 6:27 pm
Location: Belgium

Re: Release of Gluonpilot with ver 0.1 hardware

Postby TheBoD » Wed Sep 26, 2012 3:52 am

Tom, I installed MPLABx and XC16 complier and tried again. This time the compilation fails with a different error - I have pasted the last part of the output log below. Do you think need to download the source files again from SVN ? When I called up MPLABx and imported the project it seemed to convert OK. Are there any other settings I need in MPLAB to run this - many thanks for your help !



Program Memory [Origin = 0x200, Length = 0x2a9fe]

section address length (PC units) length (bytes) (dec)
------- ------- ----------------- --------------------
.text 0x200 0x2ad2 0x403b (16443)
build/default/production/_ext/1472/gluonscript.o(.text+0x2ba): In function `.LSM76':
.const 0x2cd2 0x4082 0x60c3 (24771)
.text 0x6d54 0x576e 0x8325 (33573)
: undefined reference to `_flightplan_switch_handle_gluonscriptcommand'
.dinit 0xc4c2 0x758 0xb04 (2820)
.text 0xcc1a 0x45ba 0x6897 (26775)
build/default/production/_ext/1472/gluonscript.o(.text+0x2bc): In function `.LSM76':
: undefined reference to `_flightplan_switch_handle_gluonscriptcommand'

Total program memory used (bytes): 0x197be (104382) 39%


Data Memory [Origin = 0x800, Length = 0x7800]

section address alignment gaps total length (dec)
------- ------- -------------- -------------------
.nbss 0x800 0 0x2 (2)
.bss 0x802 0 0x2c26 (11302)
.data 0x3428 0 0x3fe (1022)
.bss 0x3826 0 0xa58 (2648)
.data 0x427e 0 0x200 (512)
.data._powers_ 0x447e 0 0x160 (352)
.bss 0x45de 0 0x32e (814)
.data.dpowers 0x490c 0 0xa0 (160)
.bss 0x49ac 0 0x11e (286)
.bss 0x4aca 0 0x78 (120)
.data._iob 0x4b42 0 0x26 (38)
.bss 0x4b68 0 0x24 (36)
.bss 0x4b8c 0 0x20 (32)
.data 0x4bac 0 0xb6 (182)
.bss 0x4c62 0 0xa (10)
.bss 0x4c6c 0 0x4 (4)
.data 0x4c70 0 0x6 (6)
.bss 0x4c76 0 0x2 (2)
.data.__C30_UART 0x4c78 0 0x2 (2)
.heap 0x4c7a 0 0x2800 (10240)
_03899AE05062793f 0x7e00 0 0x90 (144)
.bss 0x7e90 0 0x4e (78)
.data 0x7ede 0 0x20 (32)
.bss 0x7efe 0 0x2 (2)
_03899CC05062793f 0x7f00 0 0x90 (144)
.bss 0x7f90 0 0x44 (68)
.data 0x7fd4 0 0x2a (42)
.data 0x7ffe 0 0x2 (2)

Total data memory used (bytes): 0x6e7a (28282) 92%


Dynamic Memory Usage

region address maximum length (dec)
------ ------- ---------------------
heap 0x4c7a 0x2800 (10240)
stack 0x747a 0x986 (2438)

Maximum dynamic memory (bytes): 0x3186 (12678)

make[2]: Leaving directory `C:/Users/Brian/Gluonpilot Oct 2012 firmware/rtos_pilot/rtos_pilot.X'
make[1]: Leaving directory `C:/Users/Brian/Gluonpilot Oct 2012 firmware/rtos_pilot/rtos_pilot.X'
make[2]: *** [dist/default/production/rtos_pilot.X.production.hex] Error 255
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

BUILD FAILED (exit value 2, total time: 3m 34s)
TheBoD
 
Posts: 37
Joined: Mon Dec 07, 2009 8:45 pm

Re: Release of Gluonpilot with ver 0.1 hardware

Postby penguin » Fri Sep 28, 2012 3:17 pm

Hi TheBoD,

I had the same error...
Importing and compiling first rtos_pilot with MPLAB X and afterwards(!) opening and compiling rtos_pilot.x
is the reason for the errors.

I solved it by deleting the hole GP Tortoise path, then create the path again and checkout hole project again.
Deleting some files or paths within the Tortoise path or SVN update didn't solve it.

Regards,
Rainer
penguin
 
Posts: 31
Joined: Sun Sep 02, 2012 9:15 pm

Re: Release of Gluonpilot with ver 0.1 hardware

Postby TheBoD » Sun Sep 30, 2012 9:36 pm

Penguin, many thanks for your help. I have done this and successfully compiled and linked with MPLABX and C30. Did you use XC16 compiler or C30 ? All I have to do now is find the ICD3 drivers to install them under Windows 7 . Thanks again :D
TheBoD
 
Posts: 37
Joined: Mon Dec 07, 2009 8:45 pm

Re: Release of Gluonpilot with ver 0.1 hardware

Postby Rico21 » Mon Oct 15, 2012 6:21 am

Hi all,
Since few days I try to build the firmware version v0.8 and I can not do it despite your instructions. The compiler looks for a file requested by FreeRTOS.h: "mpu_wrappers.h" and can not find it, as me.
Please can you help me.
I use MPLAB X, XC16 or C30, fixed_wing.
thank you

Eric
Rico21
 
Posts: 30
Joined: Fri Nov 27, 2009 5:06 pm
Location: France

Next

Return to Firmware

Who is online

Users browsing this forum: No registered users and 4 guests

cron