dev r1129 is too large :(

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
ronco
Posts: 317
Joined: Thu Aug 18, 2011 2:58 pm

dev r1129 is too large :(

Post by ronco »

Hi,

i tested the r1129 on the atmega32u4's .. and even if the code improvements are nice (new baro and serial code) it is too large for the most 10dof promicro setups :(

for example the code for the microwii is now 28.906 (max is 28.672) it uses MS baro HMC5883 MPU 6050

i noticed that not just the baro and serial code growth .. even the IMU seems to be ~300byte larger now (with just a MPU 6050)

im not that up to date with new features ATM.. are there things that comes active on default now?


regards

felix

fiendie
Posts: 151
Joined: Fri Apr 20, 2012 4:22 pm

Re: dev r1129 is too large :(

Post by fiendie »

ronco wrote:Hi,

i tested the r1129 on the atmega32u4's .. and even if the code improvements are nice (new baro and serial code) it is too large for the most 10dof promicro setups :(
for example the code for the microwii is now 28.906 (max is 28.672) it uses MS baro HMC5883 MPU 6050
i noticed that not just the baro and serial code growth .. even the IMU seems to be ~300byte larger now (with just a MPU 6050)
im not that up to date with new features ATM.. are there things that comes active on default now?

regards
felix


Same thing here. Had to disable I2C_GPS on my Teensy-board. The sensors are the same as the ones Felix uses.

skytor
Posts: 48
Joined: Tue May 29, 2012 5:14 pm

Re: dev r1129 is too large :(

Post by skytor »

Hi @ALL

same here on MicroWii.. ATmega32u4 Based 10DOF FC

i must deaktivate the barolevel sektion ... then it ""works"" but the PIN assignment are confused ... and some new (not understanding ) things in GUI :-(

doughboy
Posts: 252
Joined: Tue Sep 04, 2012 7:20 am

Re: dev r1129 is too large :(

Post by doughboy »

if the leonardo works the same way as the UNO or promini, you can program via ICSP and get the full 32k. you lose your bootloader though, and you always have to program via ICSP unless you reburn the bootloader.

skytor
Posts: 48
Joined: Tue May 29, 2012 5:14 pm

Re: dev r1129 is too large :(

Post by skytor »

Hi doughboy

maybe ICSP is a way .. but

1.) MicroWii (Leonardo) have Onboard FDTI (and i like to use this)
2.) MultiWii normal way ist to work with FTDI upload
3.) most people dont have the hardware / skill level make updates via ICSP

thanks for the idea ... but i think thats not the normal way für MultiWii

regards thorsten

Alexinparis
Posts: 1630
Joined: Wed Jan 19, 2011 9:07 pm

Re: dev r1129 is too large :(

Post by Alexinparis »

Hi,

This should be again ok with r1137. I reduced a little bit the code, enough to fit in a microwii.
The main reason is the recent alt hold code change which is quite big and not yet optimized.
There are some parts of this code inside the attitude code (not altitude), which explains also the growing code without BARO.

User avatar
ezio
Posts: 827
Joined: Sun Apr 01, 2012 11:03 pm
Location: Paris
Contact:

Re: dev r1129 is too large :(

Post by ezio »


copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: dev r1129 is too large :(

Post by copterrichie »

ezio wrote:we can use smaller bootloader http://spiffie.org/know/arduino_1k_boot ... tart.shtml


This is good and a step in the right direction however, if a person has the ability to flash a new bootloader, they don't need the bootloader. With a few modifications, it is possible to flash the MWC firmware directly to the chip bypassing the bootloader all together. So that would free up 2K verse 1K.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: dev r1129 is too large :(

Post by copterrichie »

P.S. At some point, there will have to be a line drawn in the sand and a decision made to upgrade.

Goetz
Posts: 82
Joined: Sun Mar 04, 2012 3:40 pm

Re: dev r1129 is too large :(

Post by Goetz »

changing the bootloader please have in mind, that leonardo has problems with some bootloaders in getting up fast enough, ending in problems with ESC-initialisation... ...ther are differnet Versions of Felix Board with differnet bootloaders, depending on the development.... ...the first ones had the "normal" one, the following ones specialised ones with special features...

fiendie
Posts: 151
Joined: Fri Apr 20, 2012 4:22 pm

Re: dev r1129 is too large :(

Post by fiendie »

ezio wrote:we can use smaller bootloader http://spiffie.org/know/arduino_1k_boot ... tart.shtml

The bootloader on the Teensy is locked.

doughboy
Posts: 252
Joined: Tue Sep 04, 2012 7:20 am

Re: dev r1129 is too large :(

Post by doughboy »

ezio wrote:we can use smaller bootloader http://spiffie.org/know/arduino_1k_boot ... tart.shtml


this link is for an atmega328 bootloader. so make sure you don't use this on leonardo. in fact, that info is old, because the optibootloader for the atmega328 is even half that at 512 bytes only.

icsp programmer costs around $3-$4 on ebay. so there is no excuse not to get one.
all that is needed to use the USBAsp avr programmer is to select menu Tools->Programmer->USBAsp on the 1.0.1 arduino IDE, and everything else works the same as before (well obviously you use the ICSP connection instead of serial ftdi and the com port selection now becomes irrelevant). So not knowing how to do this is also not an excuse.

a little more "can-do" attitude won't hurt. it's not rocket science.

timecop
Posts: 1880
Joined: Fri Sep 02, 2011 4:48 pm

Re: dev r1129 is too large :(

Post by timecop »

fiendie wrote:
ezio wrote:we can use smaller bootloader http://spiffie.org/know/arduino_1k_boot ... tart.shtml

The bootloader on the Teensy is locked.


great open sores support.

User avatar
mbrak
Posts: 136
Joined: Sat Dec 03, 2011 8:08 pm
Location: Germany, Lemgo

Re: dev r1129 is too large :(

Post by mbrak »

hi

r1139 (i2c gps, baro(bmp085),mag,mpu6050) will fit on a nanowii :)
also with the new alt-hold routine but without oled :(

Post Reply