-
Notifications
You must be signed in to change notification settings - Fork 1k
STM32F103RET6 #556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
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... |
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. |
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? |
I am currently using Roger Clark's Core which simply numbers sequentially the pins from PA0=0,PA1=1 .. PD2=50 |
Yup, that's what I did for my board. I'll start work in the STM32F103RET6 variant with that approach. |
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
Let me know how it goes! |
Thanks, but when i tried to compile the Blink sample i got the following error:
|
Yup. There is a bug in one of the Core files. See this issue #585 for the fix. |
OK, now the Blink example compiles without error. |
I don't use a bootloader so that's as far as I can help. |
I've uploaded the compiled Blink sketch and uploaded directly to F103RET6 through serial, but it did not do anything: blinking do not start and there are no data coming from serial... this is the most basic sketch i know, do you have any suggestions for testing? |
Did you make sure to assign the correct pin for the built-in LED in the varian.h file? |
Honestly i never use built in LED definition, i know that my LED is located on PB11 so i am using this:
This code is working on the other core, led is blinking and "Loop" string arrives from serial, but on this official core, there are nothing happens after uploading&restart. I thought that at least the serial comm has to be working, but nope. |
I did not checked the variant provided by @pkourany but if the ldscript does not take in account the BL_SIZE then after a flash the bootloader is simply overwritten as it is wrote @0x8000000 |
@fpistm, that is most likely the cause as I am not using a bootloader in my scenario. |
That's why the ldscript is preprocessed then this is automatically handled.
Arduino_Core_STM32/variants/PILL_F103XX/ldscript.ld Lines 63 to 64 in 6d9575e
In platform.txt: Depending of the upload method the proper definitions are used: Lines 779 to 780 in 6d9575e
|
Could you provide a PR for this then I could review it/help. |
@pkourany, any update for this issue? Note link that could be used to reference it in the README.md thanks @ThomasGravekamp work. |
@fpistm are you looking to me to do the PR as I had not planned to do so? |
In fact I thought you will provide it, as I understood you've made the variant ❓ |
@fpistm, I did provide it (see earlier post attachment BLUEBUTTON_F103RET6.zip) but it seems it did not perfectly suit the OP's requirements. I am not sure what the final ldscript.ld and board.txt files look like since the OP has not provided feedback on your latest recommendations. I can do a PR once he does. |
what recommandations? |
@fpistm maybe it is a good time to provide some generic mcu variants, with more menu options like for esp8266 etc. , it will resolve lots of issues |
any PR's are welcome 😄 |
Four variants available: * STM32F103R8T6 * STM32F103RBT6 * STM32F103RCT6 * STM32F103RET6 Fixes stm32duino#556 Co-authored-by: Paul Kourany <[email protected]> Signed-off-by: Frederic Pillon <[email protected]>
I've made a PR based on @pkourany variant.
|
Thank you I've made some tests, it looks like almost perfect, only the HID upload method is failing.
|
@enesbcs thanks for the test.
The bootloader is for a C8 or CB so this is normal, I guess. @Serasidis do you confirm? |
Burn again the HID bootloader and then, select from Arduino IDE: 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 |
Thanks @Serasidis |
After a second glance, I noticed that @enesbcs uses the F103RET MCU that is a high density device. I will fix that |
Four variants available: * STM32F103R8T6 * STM32F103RBT6 * STM32F103RCT6 * STM32F103RET6 Fixes #556 Co-authored-by: Paul Kourany <[email protected]> Signed-off-by: Frederic Pillon <[email protected]>
@enesbcs Could you please test this bootloader file ? |
STM32 HID Bootloader v2.2.2 (Support for High Density F103 Devices) |
Sure, i will try it tonight. |
Thank you @Serasidis it works flawlessly! All RET owner owe you a coffee! :) |
Board description:
"STM32F103xE" define can be found in some places in the Arduino_Core_STM32 but currently there are no board definitions for it.
The text was updated successfully, but these errors were encountered: