You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 ;-))
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.
Reacted by Frederic Pillon, Alexander Nagy and nopnop2002
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?
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:
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
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.
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.
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!
Activity
BennehBoy commentedon Jul 2, 2019
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...
enesbcs commentedon Jul 6, 2019
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.
cdrose commentedon Jul 13, 2019
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 ;-))
pkourany commentedon Jul 25, 2019
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.
pkourany commentedon Aug 6, 2019
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?
enesbcs commentedon Aug 6, 2019
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. :)
pkourany commentedon Aug 6, 2019
Yup, that's what I did for my board. I'll start work in the STM32F103RET6 variant with that approach.
pkourany commentedon Aug 7, 2019
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.txtfile under theGeneric F1section of the file:BLUEBUTTON_F103RET6.zip
Let me know how it goes!
enesbcs commentedon Aug 7, 2019
Thanks, but when i tried to compile the Blink sample i got the following error:
pkourany commentedon Aug 7, 2019
Yup. There is a bug in one of the Core files. See this issue #585 for the fix.
enesbcs commentedon Aug 7, 2019
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.
pkourany commentedon Aug 7, 2019
I don't use a bootloader so that's as far as I can help.
17 remaining items
enesbcs commentedon Aug 28, 2019
Thank you I've made some tests, it looks like almost perfect, only the HID upload method is failing.
Blink sketch with
fpistm commentedon Aug 28, 2019
@enesbcs thanks for the test.
The bootloader is for a C8 or CB so this is normal, I guess. @Serasidis do you confirm?
Serasidis commentedon Aug 29, 2019
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
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
fpistm commentedon Aug 29, 2019
Thanks @Serasidis
Serasidis commentedon Aug 29, 2019
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
Add Generic STM32F103Rx boards
Serasidis commentedon Aug 30, 2019
@enesbcs Could you please test this bootloader file ?
hid_bootloader_f103rct.zip
Serasidis commentedon Aug 30, 2019
STM32 HID Bootloader v2.2.2 (Support for High Density F103 Devices)
Serasidis/STM32_HID_Bootloader@161fb7d#diff-04c6e90faac2675aa89e2176d2eec7d8
enesbcs commentedon Aug 30, 2019
Sure, i will try it tonight.
enesbcs commentedon Aug 30, 2019
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!