Search found 43 matches

by hanyazou
Fri Nov 03, 2017 9:57 pm
Forum: USB bootloader
Topic: Booloader/ DFU upload / reset run issues on OSX
Replies: 10
Views: 218

Re: Booloader/ DFU upload / reset run issues on OSX

Anyway now upload success is 100% on my OSX against 5% before. N.B. reset and run after upload now works normally, i only added few led strobes after dfuFinishUpload so unsure why it failed previously. Could you share your bootloader source code ? I'd like to know if it works on my Mac. The systemH...
by hanyazou
Mon Oct 30, 2017 1:00 pm
Forum: USB bootloader
Topic: Booloader/ DFU upload / reset run issues on OSX
Replies: 10
Views: 218

Re: Booloader/ DFU upload / reset run issues on OSX

I can upload blink.ino sketch to STM32 board with my modifications.
You don't have to push the reset button. Please see this video.

https://www.youtube.com/watch?v=b_IgPVzI7hU
by hanyazou
Mon Oct 30, 2017 12:55 pm
Forum: USB bootloader
Topic: Booloader/ DFU upload / reset run issues on OSX
Replies: 10
Views: 218

Re: Booloader/ DFU upload / reset run issues on OSX

I have a subsidiary question regarding reset/run after upload, i noticed the board never resets nor run properly after DFU upload, it has to be reset manually. I have tried to replace systemHardReset(); (after dfuFinishUpload();) by some LED blink and i can see this point is reached, i also tested ...
by hanyazou
Sat Jun 03, 2017 1:24 am
Forum: Maple & Maple mini etc
Topic: My Maple mini (clone?) has a pattern for USB micro B
Replies: 0
Views: 287

My Maple mini (clone?) has a pattern for USB micro B

I bought this Maple mini on the ebay (http://www.ebay.com/itm/400569863658) and I found that this had a pattern for USB micro B connector. It seems that the original Maple mini's maplemini.brd does not have this pattern. (https://github.com/leaflabs/maplemini) https://s-media-cache-ak0.pinimg.com/or...
by hanyazou
Fri Jun 02, 2017 11:54 pm
Forum: STM32F103 Boards
Topic: USB Observations
Replies: 90
Views: 2965

Re: USB Observations

I do not know what chance you change has to be accepted by the community. But if you submit a PR for one board e.g. The BluePill, it will allow the community to test it, and if there is an overwhelming majority in favour of the change it may become part of the core. Although I host the LibMaple cor...
by hanyazou
Fri Jun 02, 2017 10:04 pm
Forum: STM32F103 Boards
Topic: USB Observations
Replies: 90
Views: 2965

Re: USB Observations

Do you mean you think the latter simple patch is better? I must change all of STM32F1/variants/*/wirish/ if I change main() in STM32F1/cores/maple/main.c.
by hanyazou
Fri Jun 02, 2017 9:49 pm
Forum: STM32F103 Boards
Topic: USB Observations
Replies: 90
Views: 2965

Re: USB Observations

I'd like to send PR of fix this USB initialization problem. I've added init_2nd() and board_setup_usb_2nd() like below, diff --git a/STM32F1/cores/maple/boards_private.h b/STM32F1/cores/maple/boards_private.h index 49867ca..690577a 100644 --- a/STM32F1/cores/maple/boards_private.h +++ b/STM32F1/core...
by hanyazou
Mon May 29, 2017 3:54 pm
Forum: STM32F103 Boards
Topic: USB Observations
Replies: 90
Views: 2965

Re: USB Observations

Did you step through with a debugger? __libc_init_array() is called both in 1. and 5. steps? You can check the map file which is produced in link process. Here is a part of Blink.ino.map. 0x0000000008004e34 __preinit_array_start = . *(.preinit_array) 0x0000000008004e34 __preinit_array_end = . 0x000...
by hanyazou
Sun May 28, 2017 12:16 pm
Forum: STM32F103 Boards
Topic: USB Observations
Replies: 90
Views: 2965

Re: USB Observations

cant we just make the _hasBegun property static? Yes we can. This patch works well also. I've tested this on my Mac and PB. But this may depend on the toolchain behavior. I don't recommend that we call Serial.begin() from the init() because init() shall be called before any constructors. We should ...