SMALL - espritmodel.com SMALL - Telemetry SMALL - Radio
Reply
Thread Tools
Old Nov 12, 2012, 01:11 AM
Master of Flash
LazyZero's Avatar
Alsdorf/Eifel, Germany
Joined Jun 2005
1,554 Posts
Quote:
Originally Posted by simonk View Post
Ok, I see it with git HEAD bs_nfet.hex and avrdude 5.11.1 as well:

avrdude.stock: verification error, first mismatch at byte 0x0840
0xff != 0x95

It actually seems to be writing the same thing, just verifying incorrectly. The bug seems to be in the optimization for jumping over holes. Flashing unfinished pages is fine, and flashing a small single-part .hex is fine, but when flashing a .hex file with holes or pages with just 0xff, it complains about the parts in the middle that it never flashed containing non-0xff data. This didn't show up before because the main code segment hasn't shrunk since the boot-loader addition until now.

The problem is that the writing part still optimizes all-0xff pages away (the same as the address not being specified), but the verification still forgets about it (even with -D(on't erase)), so I don't see a way of working around avrdude's bug unless I make the boot loader try to tidy up after the end of the main segment before avrdude can read it back. It works if we pad it with nops (0x00) instead...or I guess I could just only release new versions when there are enough new features to make it bigger.
Did you also try the avrdude I am bundling with the kkflashtool? It is SVN version build after the 5.11.1 was released. I unfortunately don't remember the revision number.

Best Christian
LazyZero is offline Find More Posts by LazyZero
Reply With Quote
Sign up now
to remove ads between posts
Old Nov 12, 2012, 01:44 AM
Registered User
Scotland
Joined May 2005
2,062 Posts
Quote:
Originally Posted by ABLomas View Post
it's the same as RedBrick 200A, just much cheaper. Used birdie70a.hex (again with SLOW_THROTTLE, BRAKE) - works OK, but didn't tested with more than 40A (no spare motor that could take such current). Only problem - MLF package, not so easy to solder pins...
No! The picture on your post shows a voltage doubler supplying the IR2101 drivers at <10V. The 200A controllers have an XXXX662 voltage tripler whioch can supply 12V with a lot more current.
George Shering is offline Find More Posts by George Shering
Reply With Quote
Old Nov 12, 2012, 02:04 AM
Registered User
Scotland
Joined May 2005
2,062 Posts
Quote:
Originally Posted by simonk View Post
The problem is that the writing part still optimizes all-0xff pages away (the same as the address not being specified), but the verification still forgets about it (even with -D(on't erase)), so I don't see a way of working around avrdude's bug unless I make the boot loader try to tidy up after the end of the main segment before avrdude can read it back. It works if we pad it with nops (0x00) instead...or I guess I could just only release new versions when there are enough new features to make it bigger.
Offer smaller versions without the bootloader? And a separate bootloader?
George Shering is offline Find More Posts by George Shering
Reply With Quote
Old Nov 12, 2012, 02:27 AM
g0t rabb1t?
ABLomas's Avatar
Lietuva, Vilnius
Joined Jul 2011
1,462 Posts
Quote:
Originally Posted by George Shering View Post
No! The picture on your post shows a voltage doubler supplying the IR2101 drivers at <10V. The 200A controllers have an XXXX662 voltage tripler whioch can supply 12V with a lot more current.
Well, probably.
But they still rated as "200A peak" @ HiModel and other places. Currently i do not have setup requiring such current, but should get one motor soon - needs ~160A peak, will be good test...
ABLomas is offline Find More Posts by ABLomas
Reply With Quote
Old Nov 12, 2012, 08:39 AM
Registered User
LittleMo's Avatar
United States, VA
Joined Dec 2006
1,488 Posts
Quote:
Originally Posted by simonk View Post
The problem is that the writing part still optimizes all-0xff pages away (the same as the address not being specified), but the verification still forgets about it (even with -D(on't erase)), so I don't see a way of working around avrdude's bug unless I make the boot loader try to tidy up after the end of the main segment before avrdude can read it back. It works if we pad it with nops (0x00) instead...or I guess I could just only release new versions when there are enough new features to make it bigger.
Is the problem the completely blank pages? I thought it's just those few bytes at the end of the current page, those need to be set to 0xFF like I think the Arduino bootloader does (maybe I'm wrong). In other words if a write comes in and doesn't completely fill the page then 0xFF padding needs to be added at the end. Whole empty 0xFF pages don't need to be padded though because avrdude won't verify them. I don't know, I'm just guessing.

I actually have never looked at how the STK500 protocol works so I don't really know what I'm talking about. If there is no such thing as page alignment of a specific size then it would be impossible to tell how much padding needs to be added.
LittleMo is offline Find More Posts by LittleMo
Reply With Quote
Old Nov 12, 2012, 11:19 AM
manuLRK
Belgium
Joined Sep 2004
1,529 Posts
He is using long phase wires, laying around in circles, could the bemf be perturbed in that case?

manu
Quote:
Originally Posted by alll View Post
For Simon?

manu

Esc - motor - prop compability
http://www.rcgroups.com/forums/showp...&postcount=236
alll is offline Find More Posts by alll
Reply With Quote
Old Nov 12, 2012, 12:27 PM
Registered User
Joined Feb 2012
16 Posts
Tip: Way to Test ESC

Hi-

Simon came up with this:
When you want to test the ESC reaction on fast throttle changes it might not be sufficient to use a servo tester or just move the throttle stick.
Just program your transmitter such, that a switch sets the throttle to max.

I used a mix of a 100% switch to my normal throttle, so I can set the throttle from what ever the stick input is to 100% with the flip of this switch- easy and efficient!



Greets
RQuad is offline Find More Posts by RQuad
Reply With Quote
Old Nov 13, 2012, 02:17 AM
hacker
Canada, BC, North Vancouver
Joined Dec 2010
934 Posts
Quote:
Originally Posted by LittleMo View Post
Is the problem the completely blank pages?
It doesn't matter if the page is full or not. It's the fact that it is verifying pages that it never flashed. It skips verification properly if you only write one segment with no gaps, so what George suggested would work, but this would make it more complicated for people to flash since it would turn into a two-step process. So, hmmm....

Quote:
Originally Posted by alll View Post
He is using long phase wires, laying around in circles, could the bemf be perturbed in that case?
Hey manu Actually, longer wires (higher resistance) typically helps the issue. Meanwhile, I commented on the video and he replied that it works fine with the latest release.
simonk is offline Find More Posts by simonk
Reply With Quote
Old Nov 13, 2012, 03:17 AM
Registered User
Joined Nov 2012
198 Posts
Hello, can please someone advice with my problem?

I have HobbyWing Pentium 40A ESC connected to RCTimer BC3536-11 motor.
I have issues with this configuration and unfortunately it seems that this ESC cannot handle this motor
I'm building a HEXa so I have 6 motors and 6 ESC's.. tried almost all of them with same results.

Problem stock firmware: When applying throttle, it works fine until about 50%. If pushing more, motor is having erratic power dropouts and actually can slow down so much that it almost stops - its unusable.

SimonK tp_nfet.hex: Situation improved, but still a lot of drop outs (with strange sounds) and sometime even erratic behaviour.

I have modified tp_nfet.hex to 8Mhz as I have seen someone proposed this solution. I have set lfuse=0xa4 hfuse=0xdf.
This has improved the overall performance, but still when the throttle is at about 75% the motor looses power and it didn't catch up until 100% - then it turns on to full speed.
I have tried to modify the value MOTOR_ADVANCE - currently it is at 30.

WORTH to mention - when there is no propeller on motor, it works fine (even with stock firmware)

Please see the attached video with latest setup (best so far).

Hobbywing Pentium 40a ESC SimonK firmware (0 min 45 sec)
alfi666 is offline Find More Posts by alfi666
Reply With Quote
Old Nov 13, 2012, 04:13 AM
Registered User
LittleMo's Avatar
United States, VA
Joined Dec 2006
1,488 Posts
Quote:
Originally Posted by simonk View Post
It doesn't matter if the page is full or not. It's the fact that it is verifying pages that it never flashed. It skips verification properly if you only write one segment with no gaps, so what George suggested would work, but this would make it more complicated for people to flash since it would turn into a two-step process. So, hmmm....
I don't know why I didn't try this in the first place but I just tried flashing it with the Arduino bootloader and it fails also so yes, you're correct. I wouldn't worry about it then, nothing that can be done.

Just one of those things that will have to be a known issue. "Upgrade your avrdude."
LittleMo is offline Find More Posts by LittleMo
Reply With Quote
Old Nov 13, 2012, 05:25 AM
Registered User
LittleMo's Avatar
United States, VA
Joined Dec 2006
1,488 Posts
Quote:
Originally Posted by LazyZero View Post
Did you also try the avrdude I am bundling with the kkflashtool? It is SVN version build after the 5.11.1 was released. I unfortunately don't remember the revision number.
I couldn't try the Linux version (libusb version fail) but I ran the Windows version via WINE and it worked. I believe I was using version 0.70beta8 of your tool. I just tested the bundled version of avrdude.exe directly, not the whole kkflashtool.
LittleMo is offline Find More Posts by LittleMo
Reply With Quote
Old Nov 13, 2012, 05:29 AM
Master of Flash
LazyZero's Avatar
Alsdorf/Eifel, Germany
Joined Jun 2005
1,554 Posts
Quote:
Originally Posted by LittleMo View Post
I couldn't try the Linux version (libusb version fail) but I ran the Windows version via WINE and it worked. I believe I was using version 0.70beta8 of your tool.
Very good too know. But what is the problem with libusb

Christian
LazyZero is offline Find More Posts by LazyZero
Reply With Quote
Old Nov 13, 2012, 05:35 AM
Registered User
LittleMo's Avatar
United States, VA
Joined Dec 2006
1,488 Posts
Quote:
Originally Posted by LazyZero View Post
Very good too know. But what is the problem with libusb
The bundled Linux avrdude is 32-bit and I don't have a 32-bit version of libusb (Arch Linux).
LittleMo is offline Find More Posts by LittleMo
Reply With Quote
Old Nov 13, 2012, 02:34 PM
hacker
Canada, BC, North Vancouver
Joined Dec 2010
934 Posts
Quote:
Originally Posted by alfi666 View Post
I have HobbyWing Pentium 40A ESC connected to RCTimer BC3536-11 motor.
Problem stock firmware: When applying throttle, it works fine until about 50%. If pushing more, motor is having erratic power dropouts and actually can slow down so much that it almost stops - its unusable.

SimonK tp_nfet.hex: Situation improved, but still a lot of drop outs (with strange sounds) and sometime even erratic behaviour.

I have modified tp_nfet.hex to 8Mhz as I have seen someone proposed this solution. I have set lfuse=0xa4 hfuse=0xdf.
Hello! Hmm, I do not have that motor or that board (and it is no longer available). I have not heard that sort of sound before. There definitely seems to be a problem with the sense feedback, or maybe with the signal input. You say this happens with all of the boards and motors, right? Does the logic side of the board look like this image? If not, please take and post a picture of it. Have you tried with a servo tester just to rule out input signal problems?
simonk is offline Find More Posts by simonk
Reply With Quote
Old Nov 13, 2012, 03:08 PM
not insane; Mom had me tested
hallstudio's Avatar
Marietta Ga.
Joined Apr 2005
818 Posts
might sound stupid but i had a sim problem. ended up being a bad connector. the bullet was hanging on by a coulpe of strands and under load the motor would scream and die. Lovin the simonk software. i love it more than my kids (there teenagers)
hallstudio is offline Find More Posts by hallstudio
Reply With Quote
Reply


Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
Discussion Rctimer 30A esc cutting out with KK board Efliernz Multirotor Talk 2 May 26, 2011 02:20 PM
Sold FS: Tricopter Parts- HK401b, Pentium 30A ESC, rctimer 750kv motors pwu_1 Aircraft - General - Miscellaneous (FS/W) 2 Jan 18, 2011 09:58 PM
Sold RCTimer 2826-6 + ESC 30A New in packaging will trade as well Pics Added! planebldr Aircraft - Electric - Power Systems (FS/W) 4 May 25, 2010 09:54 PM
Discussion RCTimer 30A Programmable ESC hunter7193 Power Systems 8 Jan 02, 2010 02:27 PM
For Sale Several New ESC's - 10a, 20a, 30a - Reduced Callen9345 Aircraft - Electric - Power Systems (FS/W) 0 Apr 20, 2009 02:31 PM