Skip to content

STM32F103RET6 #556

Closed
Closed

Description

@enesbcs

Board description:

"STM32F103xE" define can be found in some places in the Arduino_Core_STM32 but currently there are no board definitions for it.

Activity

  1. added
    new variant
    on Jul 2, 2019
  2. BennehBoy commented on Jul 2, 2019

    @BennehBoy
    Contributor

    It should be fairly simple to add this by following the guide -> https://github.com/stm32duino/wiki/wiki/Add-a-new-variant-(board)

    Best for someone who has the board to do it for ease of testing...

  3. enesbcs commented on Jul 6, 2019

    @enesbcs
    Author

    I am afraid we have completely different idea of what it means to be "simple". :) I doubt that i will be the "someone", it is way beyond my hardware knowledge, sorry.

  4. cdrose commented on Jul 13, 2019

    @cdrose

    I need to do a board definition for a 103ZET6 at some point too, I will eventually get round to it but if someone has time to look at the RET6, I would expect the ZET6 to be very similar too (hint hint ;-))

  5. added
    help wanted 🙏
    on Jul 24, 2019
  6. pkourany commented on Jul 25, 2019

    @pkourany
    Contributor

    I have started work on a 103RCT6 variant but need to figure out the pin mappings for the variant.x files. The only difference with the RET6 is the flash size. Hopefully I can finish it in the next week or so if that helps any.

  7. pkourany commented on Aug 6, 2019

    @pkourany
    Contributor

    I believe I have the 103RCT6 variant working. My board has no need for Arduino pins as nothing is broken out. The Blue Button board has almost everything broken out. This simply affects the way Arduino pin designations are allocated in variant.c and variant.h. Does anyone care about a specific allocation or I'll simply define them based on left/righ headers and a zig-zag numbering scheme?

  8. enesbcs commented on Aug 6, 2019

    @enesbcs
    Author

    I am currently using Roger Clark's Core which simply numbers sequentially the pins from PA0=0,PA1=1 .. PD2=50
    https://github.com/rogerclarkmelbourne/Arduino_STM32/blob/master/STM32F1/variants/generic_stm32f103r/board/board.h
    But as you wish. :)

  9. pkourany commented on Aug 6, 2019

    @pkourany
    Contributor

    Yup, that's what I did for my board. I'll start work in the STM32F103RET6 variant with that approach.

  10. pkourany commented on Aug 7, 2019

    @pkourany
    Contributor

    Ok, I believe this RET6 variant is good. I have attached a zip of the variant folder. Do not rename this folder. The following needs to be added to the boards.txt file under the Generic F1 section of the file:

    # BLUEBUTTON_F103RET6 board
    GenF1.menu.pnum.BLUEBUTTON_F103RET6=Blue Button F103RET6
    GenF1.menu.pnum.BLUEBUTTON_F103RET6.upload.maximum_size=524288
    GenF1.menu.pnum.BLUEBUTTON_F103RET6.upload.maximum_data_size=65536
    GenF1.menu.pnum.BLUEBUTTON_F103RET6.build.board=NUCLEO_F103RB
    GenF1.menu.pnum.BLUEBUTTON_F103RET6.build.product_line=STM32F103xE
    GenF1.menu.pnum.BLUEBUTTON_F103RET6.build.variant=BLUEBUTTON_F103RET6
    

    BLUEBUTTON_F103RET6.zip

    Let me know how it goes!

  11. enesbcs commented on Aug 7, 2019

    @enesbcs
    Author

    Thanks, but when i tried to compile the Blink sample i got the following error:

    /home/enes/.arduino15/packages/STM32/hardware/stm32/1.6.1/cores/arduino/stm32/timer.c: In function 'TIM8_UP_IRQHandler':
    /home/enes/.arduino15/packages/STM32/hardware/stm32/1.6.1/cores/arduino/stm32/timer.c:1328:21: error: 'TIMER13_INDEX' undeclared (first use in this function); did you mean 'TIMER3_INDEX'?
       if (timer_handles[TIMER13_INDEX] != NULL) {
                         ^~~~~~~~~~~~~
                         TIMER3_INDEX
    
  12. pkourany commented on Aug 7, 2019

    @pkourany
    Contributor

    Yup. There is a bug in one of the Core files. See this issue #585 for the fix.

  13. enesbcs commented on Aug 7, 2019

    @enesbcs
    Author

    OK, now the Blink example compiles without error.
    But after i've uploaded the sketch to the device through Maple DFU Bootloader 2.0, neither the LED blinking starts, nor the DFU port appears. I guess i have to reupload the bootloader to it with a serial bootloader again.

  14. pkourany commented on Aug 7, 2019

    @pkourany
    Contributor

    I don't use a bootloader so that's as far as I can help.

  15. 17 remaining items

  16. enesbcs commented on Aug 28, 2019

    @enesbcs
    Author

    Thank you I've made some tests, it looks like almost perfect, only the HID upload method is failing.
    Blink sketch with

    • Serial upload: Upload OK, after restart Serial print works, LED blinking OK
    • HID 2.2.1 upload: Upload OK, after restart nor serial, neither blinking works
    • DFU 2.0 upload: Upload OK, after restart Serial print works, LED blinking OK
  17. fpistm commented on Aug 28, 2019

    @fpistm
    Member

    @enesbcs thanks for the test.

    • HID 2.2.1 upload: Upload OK, after restart nor serial, neither blinking works

    The bootloader is for a C8 or CB so this is normal, I guess. @Serasidis do you confirm?

  18. Serasidis commented on Aug 29, 2019

    @Serasidis
    Contributor
    * HID 2.2.1 upload: Upload OK, after restart nor serial, neither blinking works
    

    Burn again the HID bootloader and then, select from Arduino IDE:
    Tools > USB Support (if available) > CDC (generic 'Serial' supersede U(S)ART)

    Upload your Blink sketch through HID Bootloader 2.2

    arduino_ide

    I did a successful test on my STM32F103RBT6 by using the hid_generic_pc13.bin file
    https://github.com/Serasidis/STM32_HID_Bootloader/releases/download/2.2.1/stm32_binaries.zip

  19. fpistm commented on Aug 29, 2019

    @fpistm
    Member

    Thanks @Serasidis

  20. Serasidis commented on Aug 29, 2019

    @Serasidis
    Contributor

    After a second glance, I noticed that @enesbcs uses the F103RET MCU that is a high density device.
    The F103RET has 2k flash sectors instead of 1k flash sectors that have the F103C8T6 and F103RBT6
    That means that the high density F103 devices need different handling during programming.

    I will fix that

  21. added a commit that references this issue on Aug 30, 2019
    f49877a
  22. removed
    on going
    on Aug 30, 2019
  23. added this to the 1.7.0 milestone on Aug 30, 2019
  24. Serasidis commented on Aug 30, 2019

    @Serasidis
    Contributor

    @enesbcs Could you please test this bootloader file ?

    hid_bootloader_f103rct.zip

  25. Serasidis commented on Aug 30, 2019

    @Serasidis
    Contributor

    STM32 HID Bootloader v2.2.2 (Support for High Density F103 Devices)
    Serasidis/STM32_HID_Bootloader@161fb7d#diff-04c6e90faac2675aa89e2176d2eec7d8

  26. enesbcs commented on Aug 30, 2019

    @enesbcs
    Author

    @enesbcs Could you please test this bootloader file ?

    Sure, i will try it tonight.

  27. enesbcs commented on Aug 30, 2019

    @enesbcs
    Author

    Thank you @Serasidis it works flawlessly! All RET owner owe you a coffee! :)
    Thanks also to @pkourany and @fpistm for expanding the core with new board support!

  28. added
    enhancement
    and removed on Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wanted 🙏new variant

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions