Thread Tools
May 27, 2014, 03:09 AM
Registered User
Thread OP
Discussion

Bradwii on V202, V252, JD-385


For tutorials on the installation of this port of Bradwii on your own microheli please see an excellent tutorial thread by SeByDocKy:
https://www.rcgroups.com/forums/show....php?t=2278850

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.
Last edited by victzh; Mar 08, 2015 at 03:00 AM.
Sign up now
to remove ads between posts
May 27, 2014, 03:34 AM
Registered User
subscribed!!
May 27, 2014, 03:43 AM
Registered User
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?
May 27, 2014, 03:59 AM
I Void Warranties
goebish's Avatar
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.
May 27, 2014, 04:06 AM
I Void Warranties
goebish's Avatar
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 ...
May 27, 2014, 04:49 AM
Registered User
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..
May 27, 2014, 04:59 AM
I Void Warranties
goebish's Avatar
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
May 27, 2014, 05:22 AM
Registered User
sbstnp's Avatar
Quote:
Originally Posted by goebish
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.
May 27, 2014, 05:29 AM
I Void Warranties
goebish's Avatar
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.
May 27, 2014, 05:47 AM
Registered User
sbstnp's Avatar
Quote:
Originally Posted by goebish
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
May 27, 2014, 07:51 AM
Registered User
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?
Last edited by mahagr; May 27, 2014 at 08:00 AM.
May 27, 2014, 10:56 AM
Registered User
Thread OP
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.
May 30, 2014, 02:50 AM
I Void Warranties
goebish's Avatar
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
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
Last edited by goebish; May 30, 2014 at 02:55 AM.
May 30, 2014, 01:31 PM
Registered User
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...
May 30, 2014, 02:19 PM
Registered User
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.


Quick Reply
Message: