Search found 20 matches

by logd32
Sun Dec 24, 2017 3:34 pm
Forum: General discussion
Topic: DFU bootloader in F4
Replies: 26
Views: 892

Re: DFU bootloader in F4

@fpiSTM OK, thanks, i tested the same mecanism for STM32F303, only replacing SRAM flag by RTC backup register since the F303CC doesnt have backup SRAM (so it was not working as is), the STM32F303 now resets on CDC 1200bps touch and can detect the DFU mode after reset.However, i still have a problem ...
by logd32
Fri Dec 22, 2017 12:29 pm
Forum: General discussion
Topic: DFU bootloader in F4
Replies: 26
Views: 892

Re: Rebooting to DFU bootloader in F4 and others.

FYI, Dfu for F4 was implemented for the Otto: https://github.com/arduino-org/arduino-core-stm32f4 To enter in dfu, no need user action, set seialusb config to 1200: https://github.com/arduino-org/arduino-core-stm32f4/blob/master/variants/otto/usb/usbd_cdc_if.c#L261 Then, set a dedicated magic code ...
by logd32
Fri Dec 22, 2017 11:46 am
Forum: IDE's
Topic: Bootloader imported in SW4STM32 compiles but stuck after usb_init
Replies: 14
Views: 481

Re: Bootloader imported in SW4STM32 compiles but stuck after usb_init

The Blackmagic probe has a DFU bootloader and uses LibOpenCM3, but it only supports F1. They used to also support F4, but dropped support for it ages ago, before they did a major code reorganisation You should be able to modify their F1 bootloader to run in F4 etc, but it isn’t quite the same as th...
by logd32
Fri Dec 22, 2017 11:27 am
Forum: IDE's
Topic: Bootloader imported in SW4STM32 compiles but stuck after usb_init
Replies: 14
Views: 481

Re: Bootloader imported in SW4STM32 compiles but stuck after usb_init

I then created a new SW4STM32 project selecting the "Make project from existing makefile". I selected the directory of the github source . I was able to create a new build target 'generic-pc13' I did a clean and build. It also worked fine. It isn't a "true" eclipse project but it allows you to use ...
by logd32
Wed Dec 06, 2017 12:14 pm
Forum: STM32generic
Topic: STM32GENERIC Arduino implementation
Replies: 20
Views: 1449

Re: STM32GENERIC Arduino implementation

now i want to merge this and the USB DFU bootlader,i contacted Hua Wei to ask him about what bootloader he uses
by logd32
Wed Dec 06, 2017 11:27 am
Forum: IDE's
Topic: Bootloader imported in SW4STM32 compiles but stuck after usb_init
Replies: 14
Views: 481

Re: Bootloader imported in SW4STM32 compiles but stuck after usb_init

ohh, i was not aware of this https://github.com/stm32duino/Arduino_Core_STM32/tree/master/variants its probably the most up to date for F3/F4 and L4. OK the Chinese core is very very old, useless to check. I but that uses the HAL, and there is @danielef's core which is also HAL based. Is it a proble...
by logd32
Wed Dec 06, 2017 9:41 am
Forum: IDE's
Topic: Bootloader imported in SW4STM32 compiles but stuck after usb_init
Replies: 14
Views: 481

Re: Bootloader imported in SW4STM32 compiles but stuck after usb_init

yes F3 and F4 should be very close, once these L1 and F3 are done i will try to make L4. Please show the URL of chinese website, i may find a way to get it. Regarding the bootloader, after few tests i can see the registers are different on F3 than those used in bootlader so nothing works, i am in th...
by logd32
Wed Dec 06, 2017 1:30 am
Forum: IDE's
Topic: Bootloader imported in SW4STM32 compiles but stuck after usb_init
Replies: 14
Views: 481

Re: Bootloader imported in SW4STM32 compiles but stuck after usb_init

wow nice, thanks for all the testing, yes we are talking of F103CBT6 here. My bootloader source is outdated so its maybe the problem, I will download last rev and try making a new makefile project. I try to make a bootloader version for STM32L151C8 and STM32F303CC. I have defined the target rules an...
by logd32
Tue Dec 05, 2017 8:18 pm
Forum: IDE's
Topic: Bootloader imported in SW4STM32 compiles but stuck after usb_init
Replies: 14
Views: 481

Re: Bootloader imported in SW4STM32 compiles but stuck after usb_init

Thanks you for the hint, i tried with GCC 4.8 presumably shipped with XCode, but it didnt helped. I will try to find how to use the Arduino GCC instead. Regarding optimisations i already set to -O0, i wil try 01. Yes it still fits in the 8K EDIT:Afer a check, current version of Arduino gcc is 4.8.3-...
by logd32
Tue Dec 05, 2017 5:00 pm
Forum: IDE's
Topic: Bootloader imported in SW4STM32 compiles but stuck after usb_init
Replies: 14
Views: 481

Bootloader imported in SW4STM32 compiles but stuck after usb_init

Hi, I have setup a SW4STM32 project from the bootloader directory so it is more convenient to work on it, it compiles fine but unfortunately the STM32 stucks at usb_init, precisely as soon as the usb NVIC are setup, if I comment out the usb NVIC setup or the whole usb_init then the STM32 doe not stu...