Skip to content
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

Unable to write to nRF52(Windows, xiao) #1207

Closed
NW-Lab opened this issue Sep 10, 2023 · 3 comments
Closed

Unable to write to nRF52(Windows, xiao) #1207

NW-Lab opened this issue Sep 10, 2023 · 3 comments

Comments

@NW-Lab
Copy link
Contributor

NW-Lab commented Sep 10, 2023

Hello,

I cannot write to nRF52 (xiao) on Windows.
xiao writes and recognizes the bootloader.
image

When I write Examples/helloworld, the Volume name seems different and I have to wait.
image

I think "waiting for volume MODDABLE4" is incorrect and should be "MODDABLEnRF".

Thanks,

@mkellner
Copy link
Collaborator

Thank you for the bug report. You are right. The nmake.nrf52.mk file does not handle the UF2_VOLUME_NAME variants. I will fix that.

@mkellner
Copy link
Collaborator

It will be fixed in the next repository update.

You can make the following changes until then:

diff --git a/tools/mcconfig/nmake.nrf52.mk b/tools/mcconfig/nmake.nrf52.mk
index 744cd06c6..29ddb5584 100644
--- a/tools/mcconfig/nmake.nrf52.mk
+++ b/tools/mcconfig/nmake.nrf52.mk
@@ -94,7 +94,9 @@ OBJCOPY = $(TOOLS_BIN)\arm-none-eabi-objcopy
 SIZE = $(TOOLS_BIN)\arm-none-eabi-size

 PLATFORM_DIR = $(MODDABLE)\build\devices\nrf52
+!IF "$(UF2_VOLUME_NAME)"==""
 UF2_VOLUME_NAME = MODDABLE4
+!ENDIF
 WAIT_FOR_M4 = $(PLATFORM_DIR)\config\waitForVolumeWindows.bat $(UF2_VOLUME_NAME) $(TMP_DIR)\_drive.tmp $(TMP_DIR)\_port.tmp $(M4_VID) $(M4_PID)
 DO_COPY = -for /F "tokens=1" %%i in ( $(TMP_DIR)\_drive.tmp ) do @copy $(BIN_DIR)\xs_nrf52.uf2 %%i
 ECHO_GIT_AND_SIZE = $(PLATFORM_DIR)\config\echoGitTagAndSizeWindows.bat $(TMP_DIR)\_size.tmp $(MODDABLE) $(NRF52_HEAP_SIZE)

@NW-Lab
Copy link
Contributor Author

NW-Lab commented Sep 10, 2023

@mkellner san
thank you for your reply.
After I fixed it, it worked.
thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants