scripts: runners: Introduce bflb_mcu_tool runner #89035
scripts: runners: Introduce bflb_mcu_tool runner #89035kartben merged 4 commits intozephyrproject-rtos:mainfrom
Conversation
|
Is there a HAL that this runner can be moved to? |
Why would this be in the HAL? |
If the runner is useless without sources originating from a HAL, it would limit the scope of the runner to that HAL, and reduce the maintenance for Zephyr itself. |
|
It is not useless without sources originating from the HAL, the runner is installable via pypi and comparable to minichlink or esptool.py. |
|
Someone is going to have to explain to me how i content ruff here, it hasn't accepted any of the possible orders. |
$ ruff check --fix scripts/west_commands/runners/bflb_mcu_tool.py
$ ruff format scripts/west_commands/runners/bflb_mcu_tool.py |
Thank you, that was a incredibly useless error message for what the issue was. I also disagree with the assessment that there should not be 2 line jumps between imports and the start of the code. |
589608c to
ec6f36f
Compare
Besides that, if you install the pypi package, it downloads an entire JLink executable + libraries. I doubt this desired/allowed. $ ls -la .venv/lib/python3.12/site-packages/bflb_mcu_tool/utils/jlink
.rwxr-xr-x 316k pdgendt 24 Apr 16:21 JLink.exe
.rw-r--r-- 19M pdgendt 24 Apr 16:21 JLink_x64.dll
.rw-r--r-- 18M pdgendt 24 Apr 16:21 JLinkARM.dll
.rw-r--r-- 16M pdgendt 24 Apr 16:21 libjlinkarm.dylib |
pdgendt
left a comment
There was a problem hiding this comment.
Putting a tentative -1 for now.
|
That is neither in the scope of this PR, a problem in this PR, or addressable in this PR. |
|
What pip package exactly is causing the trouble here? I don't see anything added to requirements? |
The package bflb-mic-tool needs to be installed for this runner to work, it's printed as an error if missing, |
But we have that for all tools. In fact we should use |
Please do that. Also there's additional info here: bouffalolab/bouffalo_sdk#93. Perhaps you can open an issue in that repo? After another look, I agree that bundling the JLink binaries may not be acceptable. |
I didnt know about that feature, ill looking making it a requirement style thing.
I dont disagree that it is a issue (and likely should not even be on pypi either), I have already contacted the vendor through a privileged channel and it might get fixed quickly. |
e5aa1ce to
fcd572c
Compare
|
I could flash the device but when install I got this error: Linux |
|
That's normal and not related to this, you can ignore it. |
|
Hi @VynDragon ,
It not seems to be the case, see below: That the dependency is too old and need to be updated, see install_requires=[
"toml==0.10.0",
"configobj==5.0.9",
"cryptography==37.0.4",
"pycklink>=0.1.1",
"pyserial==3.5",
- "pylink-square==0.5.0",
+ "pylink-square>=1.6.0",
"portalocker==2.0.0",
"telnetlib-313-and-up; python_version > '3.12'"
],
python_requires=">=3.6",
zip_safe=False, |
|
Right, ill mail them and ask. |
|
It should be good now, please check |
Introduces one of the official flash tools for bouffalolab platforms. Co-authored-by: Gerson Fernando Budke <nandojve@gmail.com> Signed-off-by: Camille BAUD <mail@massdriver.space>
Sets bflb_mcu_tool to be the tool used by default for flashing Signed-off-by: Camille BAUD <mail@massdriver.space>
Adds bflb_mcu_tool to import test Signed-off-by: Camille BAUD <mail@massdriver.space>
Sets bflb_mcu_tool to be the tool used by default for flashing Signed-off-by: Camille BAUD <mail@massdriver.space>
|



Introduces one of the official flash tools for bouffalolab platforms
Caveat: It does not like a python version above 3.11