HobbyKing.com New Products Flash Sale
Reply
Thread Tools
Old May 27, 2014, 04:09 AM
Registered User
Joined Oct 2012
286 Posts
Discussion
Bradwii on V202, V252, JD-385

Sometime ago the ability to reprogram an MCU for some micro-quads was discovered and hardware was documented: https://github.com/hackocopter/JD385_Documentation

I spent some time to port the smallest of known to me MultiWii inspired products - bradwii - to this platform, with intermediate help of existing port to STM32 by trollcop.

Now this project is in the initial stage - the copters fly, but not very enthusiastically. If you feel like hacking on the project, discuss it here and join at https://github.com/hackocopter/bradwii-jd385.
victzh is offline Find More Posts by victzh
Reply With Quote
Sign up now
to remove ads between posts
Old May 27, 2014, 04:34 AM
Registered User
Joined Apr 2014
12 Posts
subscribed!!
sramctc is offline Find More Posts by sramctc
Reply With Quote
Old May 27, 2014, 04:43 AM
Registered User
Joined Jan 2014
296 Posts
Just read quickly through the code and wow, I thought that the code to control these things would be a bit more complicated. But well, unless you're using Assembler, 16kb doesn't allow to fit that much code after compilation. Libraries probably take most of the room anyway..?

How much money is needed to get all the tools when starting from the scratch? Are the compilation etc tools also available in Linux/OSX as I don't have Windows installed to any of my computers?
mahagr is offline Find More Posts by mahagr
Reply With Quote
Old May 27, 2014, 04:59 AM
I Void Warranties
goebish's Avatar
France, Aquitaine, Bordeaux
Joined Feb 2010
1,899 Posts
subscribed

mahagr, I have a STM32F100 dev board with integrated STLink debugger (SWD):
http://www.ebay.com/itm/161074287093

I plugged it to a Hubsan H107 (same MCU than 202/252/385...) and it sounds like I can reflash it too (but will have to code drivers for the different hardware on this quad).

I think it's better to have Windows so you can use Keil uVision (free version is limited to 32KB, which is fine in our case ), there is an open source toolchain also, but I'm not sure you can use the hacked flashtool with it.
goebish is online now Find More Posts by goebish
Reply With Quote
Old May 27, 2014, 05:06 AM
I Void Warranties
goebish's Avatar
France, Aquitaine, Bordeaux
Joined Feb 2010
1,899 Posts
Ordered a JXD-388 yesterday, looks like it's the same FC as the 385, I hope I get it fast, but it's banggood ...
goebish is online now Find More Posts by goebish
Reply With Quote
Old May 27, 2014, 05:49 AM
Registered User
Joined Jan 2014
296 Posts
You can get JXD quads ~15€, body only, no batteries or spare parts:

http://www.aliexpress.com/item/4-Col...805974928.html
http://www.aliexpress.com/item/JXD-3...718288442.html

I also got V252 boards for 6.75€ including posting from China.

Well, as I said, I do not have any Windows computers, so I need to figure out how to flash those things with something else..
mahagr is offline Find More Posts by mahagr
Reply With Quote
Old May 27, 2014, 05:59 AM
I Void Warranties
goebish's Avatar
France, Aquitaine, Bordeaux
Joined Feb 2010
1,899 Posts
Thanks for the link, but I've always been reticent to order from those places that don't accept paypal.

I see the "flashtool" is only a script that send commands to the debugger actually (to unlock and erase flash), it may be easy (or not) to use it with open source tools (st-util ?) :
https://github.com/hackocopter/SWD-H...flashtools.ini
goebish is online now Find More Posts by goebish
Reply With Quote
Old May 27, 2014, 06:22 AM
Deviant
sbstnp's Avatar
Joined Jul 2012
1,190 Posts
Quote:
Originally Posted by goebish View Post
Thanks for the link, but I've always been reticent to order from those places that don't accept paypal.

I see the "flashtool" is only a script that send commands to the debugger actually (to unlock and erase flash), it may be easy (or not) to use it with open source tools (st-util ?) :
https://github.com/hackocopter/SWD-H...flashtools.ini
PM the seller, they usually accept PayPal.
sbstnp is online now Find More Posts by sbstnp
Reply With Quote
Old May 27, 2014, 06:29 AM
I Void Warranties
goebish's Avatar
France, Aquitaine, Bordeaux
Joined Feb 2010
1,899 Posts
Hey, hi sbstnp
(remember this discussion we had almost 1 year ago ? Took a lot of time but I finally took the plunge and started playing with ARM Cortex MCUs )

Yup, if banggood doesn't send the one I ordered yesterday by tomorrow I'll cancel this order and try to find something faster, thanks.
goebish is online now Find More Posts by goebish
Reply With Quote
Old May 27, 2014, 06:47 AM
Deviant
sbstnp's Avatar
Joined Jul 2012
1,190 Posts
Quote:
Originally Posted by goebish View Post
Hey, hi sbstnp
(remember this discussion we had almost 1 year ago ? Took a lot of time but I finally took the plunge and started playing with ARM Cortex MCUs )

Yup, if banggood doesn't send the one I ordered yesterday by tomorrow I'll cancel this order and try to find something faster, thanks.
Hehe, long time but it's never too late
sbstnp is online now Find More Posts by sbstnp
Reply With Quote
Old May 27, 2014, 08:51 AM
Registered User
Joined Jan 2014
296 Posts
In Linux this seems to work with STM32F100xx, no idea if it will do the task, though:

https://github.com/texane/stlink

This would work better in Linux, though:

http://www.ebay.com/itm/STM32L-DISCO...item2583878199

Would it do the task, or is it mandatory to use the older discovery board?
mahagr is offline Find More Posts by mahagr
Last edited by mahagr; May 27, 2014 at 09:00 AM.
Reply With Quote
Old May 27, 2014, 11:56 AM
Registered User
Joined Oct 2012
286 Posts
The plan is to definitely supply it with Linux and Windows compatible Makefiles, but for this project debugger seems to be indispensable, at least at the early stage.
victzh is offline Find More Posts by victzh
Reply With Quote
Old May 30, 2014, 03:50 AM
I Void Warranties
goebish's Avatar
France, Aquitaine, Bordeaux
Joined Feb 2010
1,899 Posts
mahagr, have a look at openocd, texane stlink is a gdb server, I'm not sure it can be used to unlock & erase chip.

Good news, banggood shipped the JXD-388 yesterday, it's in the slow boat now

Continuing to learn on the STM32, playing with a graphics LCD & Wii nunchuck today

Quote:
Originally Posted by mahagr View Post
Would it do the task, or is it mandatory to use the older discovery board?
Better have a "newer" board so you have a st-link v2 (this is a v1 on mine).
Just buy the board you want to play with
goebish is online now Find More Posts by goebish
Last edited by goebish; May 30, 2014 at 03:55 AM.
Reply With Quote
Old May 30, 2014, 02:31 PM
Registered User
Joined Jan 2014
296 Posts
Might really try this; I have a destroyed (eg. soldering practise) board of H107L, which has a few issues in it, but which still works unless you try to fly with it. Also have a few other compatible boards, including one V252 with a burned FET (needs a replacement) and one V272 with broken arms (kinda flies). And then I have 8 working boards to play with. The only thing I'm lacking is the time...

It's also been a while since I've flashed/worked with ARM processors and even then we had the environment all set up for us.

Are all V2x2 quads using N-gate fets? Might buy a few 4-6A transistors to replace the broken ones...
mahagr is offline Find More Posts by mahagr
Reply With Quote
Old May 30, 2014, 03:19 PM
Registered User
Joined Jan 2014
296 Posts
FYI: bought one STM32L discovery board from the above link.. Now I just need to start figuring out on how to unlock the chip and how to flash it.
mahagr is offline Find More Posts by mahagr
Reply With Quote
Reply


Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
Discussion JXD JD 385 Yaw Movement Too Slow Lunkprab Mini Multirotors 3 Nov 12, 2014 10:25 AM
Cool JXD JD-385 6-Axis Gyro 4CH 3D Mini Quadcopter RTF in four colors Justbe PriceAngels 1 Apr 12, 2014 03:11 AM
Sold JD-385 micro quad same as Hubsan Steph280 Aircraft - Electric - Multirotor (FS/W) 1 Mar 04, 2014 05:12 PM
Discussion Possible battery damage? (v252/v202/X4/H36 size) ajg23 Mini Multirotors 2 Dec 22, 2013 04:19 PM
Sold WL TOYS v252 RTF & JXD-385 RTF Jake8131 Aircraft - Electric - Multirotor (FS/W) 7 Oct 26, 2013 02:32 PM