-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
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
[FR] Need fixes for BTT SKR Mini E3 having a different MCU #15254
Comments
unsure about the E3, but the mini is RCT6 https://drive.google.com/file/d/13ReQ8lGl8vKstoi3IBOo9YVQePUI_WBr/view?usp=sharing |
else, should not be a problem unless you reach the firmware size, with some costly features like the USB composite. To fix that, remember to change the .ld script too buildroot/share/PlatformIO/ldscripts/STM32F1_SKR_MINI.ld |
with some touches
(from boy in a telegram channel) |
cc @bigtreetech |
well, consider you are lucky :p got a free bonus... but unfortunately, platformio cant be changed for all.. for now |
the entry for mini e3 is also wrong. the physical baord is also ret6. how can i change this? |
not tested. but: change this
to this
and the LD script like said @tpruvot |
any example of this? greetings |
i tried to change it to genericSTM32F103RE and the256k to 512k in STM32F1_SKR_MINI.ld. |
i see, maybe they didnt update their bootloader code... which do the SD update. So it could be more complicated, requires a stflash and.. basically you have to comment the .py script in the platformio.ini but... well a full backup of the chip may be required first... to rollback. To note, the stflash should use the 3.3V wire, not 5V (SWD connector) |
I have both a Mini and a DIP that I received about a week ago. Both have the same RET6 controller. |
yep i dont know, i dont even see a comment on their multiple shops, they all show RCT6 for now. |
My unit has been purchased in BTT Ali official store in 26 Aug |
Mine were ordered from "BIG TREE TECH Store" on Aug 20. |
this is the botloader compatible with RET6? http://docs.leaflabs.com/static.leaflabs.com/pub/leaflabs/maple-bootloader/maple_RET6_boot.bin taked from here http://docs.leaflabs.com/static.leaflabs.com/pub/leaflabs/maple-docs/latest/bootloader.html because BTT DIP have this https://github.com/bigtreetech/BIGTREETECH-SKR-E3-DIP-V1.0/tree/master/Firmware/mapleDrv-USBdriver |
you dont need to build it separately... Its included in normal Marlin build/firmware by default (without .py script) |
@tpruvot the USB composite you refer to, is that using the USB environment in VSCODE to build the firmware, so that you can communicate properly between the SKR Mini boards and say, a RPi (4 in my case) properly? |
niuuuu.... USB composite i refer to is usb pins without dedicated usb to serial chip (ftdi/ch340cg/... whatever, its not a real problem) But since a week, its one, i receive at least twice or twelve spams per day regarding a card i dont even own... the E3... dip or not.... which exist since a month or 2 ?? |
Is it worth adding a special entry to |
it might be, but its not so simple as they didnt update their bootloader to allow to flash a bigger firmware via the SD... means you need a stflash if doing that and stop using the custom .py... i do that on my longer3D here to avoid manual copies to a SD.. to the remote printer. What could be interesting is a generic F103RE entry (64 pins/512kb), without .py, and without .ld so |
Bootloader seems to work fine when build using RE (512K), with either STM32F103R_bigtree or STM32F103R_bigtree_USB with genericSTM32F103RE. I also made a new new environment; copy STM32F1_SKR_MINI.py to STM32F1RE_SKR_MINI.py STM32F1RE_SKR_MINI.id to STM32F1_SKR_MINI.id Builds fine However, i when i get the firmware and reboot, the firmware.bin file is left on SD. It reflashes every reboot. The FIRMWARE.CUR is missing sometimes. Sometimes its there. But firmware.bin is never deleted. I don't think this is related. It happens in any ENV i have managed to build. |
mvoss96 commented 12 days ago
the .ld/.py is not required at all, its just made to match the "original" customized bootloaders/firmwares to allow SD updates. Marlin pio builds can do the whole thing without these custom entries |
I have noticed some similar behavior on both E3 Mini and E3 DIP boards this morning, where the firmware.bin and FIRMWARE.CUR files are updated inconsistently. I don't know whether the firmware update actually occured properly in those cases, although it looked like it at least tried to update. I'm building with the default bf2 environments, nothing modified for RE. |
FIRMWARE.CUR is not used by marlin ... at all |
i am using E3 Dip also. |
this is all OK? |
all marlin stm32 firmwares include a "bootloader" code inside... these bootloader customisations are not even required... on the 256k chips, its understandable to save a few KBs.. not on 512k ones |
This is surprising to me as I did the same and all though the build was successful it would not boot. |
fyi, the RET6 has also more ram (64KB vs 48KB) |
@TimoBre because is a idea, is not a real code :) |
We can use preprocessor in the |
I just tried a slightly different tactic. After reading through the Platform.io scripting guide I quickly threw in an I found that the variable
if (env['BOARD_MCU'] == 'stm32f103rct6'):
env.Replace(LDSCRIPT_PATH="buildroot/share/PlatformIO/ldscripts/STM32F103RC_SKR_MINI.ld")
elif (env['BOARD_MCU'] == 'stm32f103ret6'):
env.Replace(LDSCRIPT_PATH="buildroot/share/PlatformIO/ldscripts/STM32F103RE_SKR_MINI.ld") Not a big change but it got the job done. If folks want/need me to submit a PR, I can do that... Otherwise one more contribution to the thought process. |
@brianredbeard — Does that change to the build script allow the build to work with no other changes? Or, will it only work if |
@thinkyhead Great question... I'm back tracking through because things have been rapidly developing with this board ;) I found that after #15476 (specifically 82027d1) and #15398 my local copy is working but could use a bit of a rework. I presently have another definition ( I'll need to spin this around in my head, because given the flexibility of PlatformIO there are a number of good ways to solve this. Does Marlin have any expressed minimum version of PlatformIO? If not (or if it's >= 4.1) then the best option would be to use the |
MarlinFirmware#15254 (comment) Signed-off-by: Marcelo Henrique Cerri <mhcerri@gmail.com>
MarlinFirmware#15254 (comment) Signed-off-by: Marcelo Henrique Cerri <mhcerri@gmail.com>
Let's say, 4.1, for now. The specific version requirement will get updated on each point-release. |
Hi. I want replace RCT to RET chip on my skr mini e3 v1.2. I will use stlink and TFT port for recording. |
The stock bootloader not work with firmwares >256k |
I’m understand, thanks. So I make a firmware greater than 256 kb and write it using stlink? What is the recording address? 0x080000(remove bootloader) or 0x0807000? |
you can do the two methods, but you need configure marlin for start in one or other address (modify the LD/.py scripts) (if you start from 0x080000 you lost the stock bootloader) greetings |
I'm good at soldering and electronics, but unfortunately I'm not good at programming. What script do I need to edit in marlin? Perhaps the one who has already made a modification will write a small guide. |
Closing this, as the PIO file has both RC and RE environments that can be used with these boards. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi
I just discover my SKR mini E3 DIP 1.0 have a different model of MCU than the configured in the platformio.ini file
in the platformio.ini
Marlin/platformio.ini
Lines 295 to 300 in f9961dd
my physical SKR Mini E3 DIP:
STM32F103 RET6
is a 512KB unithttps://www.mouser.es/ProductDetail/STMicroelectronics/STM32F103RET6?qs=tZXS5FmuAdnGL83bu1Xcew==
https://docs.platformio.org/en/latest/boards/ststm32/genericSTM32F103RE.html
but in the platformio is configured as
STM32F103 RCT6
, which is a 256KB unithttps://www.mouser.es/ProductDetail/STMicroelectronics/STM32F103RCT6?qs=sGAEpiMZZMuoKKEcg8mMKGCsvkp7Jpfjiil20HX4niM%3D
https://docs.platformio.org/en/latest/boards/ststm32/genericSTM32F103RC.html
I'm not sure if the SKR mini 1.1 and the E3 have the same problem
any througths?
greetings
The text was updated successfully, but these errors were encountered: