Carlos Pereira Atencio
7ce71f4c8d
Fix macOS locale env for adafruit-nrfutil invocations
...
Arduino IDE v2 invokes tools in an environment where `LANG=""` and `LC_ALL=`
are not set to a specific encoding, as described in:
https://github.com/arduino/arduino-ide/issues/1513#issuecomment-1293383639
The bundled adafruit-nrfutil binary is a PyInstaller-frozen app using Click,
which expects the encoding to be set to UTF-8, and throws the following error
on macOS:
Traceback (most recent call last):
File "__main__.py", line 317, in <module>
File "click/core.py", line 1134, in __call__
File "click/core.py", line 1040, in main
File "click/_unicodefun.py", line 100, in _verify_python_env
RuntimeError: Click will abort further execution because Python was
configured to use ASCII as encoding for the environment.
Consult https://click.palletsprojects.com/unicode-support/ for
mitigation steps.
This system supports the C.UTF-8 locale which is recommended.
You might be able to resolve your issue by exporting the following
environment variables:
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
So, prepends `env LANG=C.UTF-8 LC_ALL=C.UTF-8` to each invokation in macOS,
via a `.macosx` override, to force a valid locale.
To avoid duplication, the tool arguments have been moved into a `.args`
variable that is included in the normal call and the `.macosx` override.
2026-03-17 23:55:44 +01:00
hathach
03bb265434
Merge branch 'refs/heads/master' into add-feather-833
...
bootloader/circuitplayground_nrf52840/circuitplayground_nrf52840_bootloader-0.6.2_s140_6.1.1.hex
bootloader/circuitplayground_nrf52840/circuitplayground_nrf52840_bootloader-0.6.2_s140_6.1.1.zip
bootloader/circuitplayground_nrf52840/circuitplayground_nrf52840_bootloader-0.7.0_s140_6.1.1.hex
bootloader/circuitplayground_nrf52840/circuitplayground_nrf52840_bootloader-0.7.0_s140_6.1.1.zip
bootloader/circuitplayground_nrf52840/circuitplayground_nrf52840_bootloader-0.9.0_s140_6.1.1.zip
bootloader/clue_nrf52840/clue_nrf52840_bootloader-0.6.2_s140_6.1.1.hex
bootloader/clue_nrf52840/clue_nrf52840_bootloader-0.6.2_s140_6.1.1.zip
bootloader/clue_nrf52840/clue_nrf52840_bootloader-0.7.0_s140_6.1.1.hex
bootloader/clue_nrf52840/clue_nrf52840_bootloader-0.7.0_s140_6.1.1.zip
bootloader/clue_nrf52840/clue_nrf52840_bootloader-0.9.0_s140_6.1.1.hex
bootloader/feather_nrf52832/feather_nrf52832_bootloader-0.6.2_s132_6.1.1.hex
bootloader/feather_nrf52832/feather_nrf52832_bootloader-0.6.2_s132_6.1.1.zip
bootloader/feather_nrf52832/feather_nrf52832_bootloader-0.7.0_s132_6.1.1.hex
bootloader/feather_nrf52832/feather_nrf52832_bootloader-0.7.0_s132_6.1.1.zip
bootloader/feather_nrf52832/feather_nrf52832_bootloader-0.9.0_s132_6.1.1.hex
bootloader/feather_nrf52832/feather_nrf52832_bootloader-0.9.0_s132_6.1.1.zip
bootloader/feather_nrf52840_express/feather_nrf52840_express_bootloader-0.7.0_s140_6.1.1.hex
bootloader/feather_nrf52840_express/feather_nrf52840_express_bootloader-0.7.0_s140_6.1.1.zip
bootloader/feather_nrf52840_express/feather_nrf52840_express_bootloader-0.9.0_s140_6.1.1.hex
bootloader/feather_nrf52840_sense/feather_nrf52840_sense_bootloader-0.7.0_s140_6.1.1.hex
bootloader/feather_nrf52840_sense/feather_nrf52840_sense_bootloader-0.7.0_s140_6.1.1.zip
bootloader/feather_nrf52840_sense/feather_nrf52840_sense_bootloader-0.9.0_s140_6.1.1.hex
bootloader/feather_nrf52840_sense/feather_nrf52840_sense_bootloader-0.9.0_s140_6.1.1.zip
bootloader/itsybitsy_nrf52840_express/itsybitsy_nrf52840_express_bootloader-0.6.2_s140_6.1.1.hex
bootloader/itsybitsy_nrf52840_express/itsybitsy_nrf52840_express_bootloader-0.6.2_s140_6.1.1.zip
bootloader/itsybitsy_nrf52840_express/itsybitsy_nrf52840_express_bootloader-0.7.0_s140_6.1.1.hex
bootloader/itsybitsy_nrf52840_express/itsybitsy_nrf52840_express_bootloader-0.7.0_s140_6.1.1.zip
bootloader/itsybitsy_nrf52840_express/itsybitsy_nrf52840_express_bootloader-0.9.0_s140_6.1.1.hex
bootloader/itsybitsy_nrf52840_express/itsybitsy_nrf52840_express_bootloader-0.9.0_s140_6.1.1.zip
bootloader/ledglasses_nrf52840/ledglasses_nrf52840_bootloader-0.6.2_s140_6.1.1.zip
bootloader/ledglasses_nrf52840/ledglasses_nrf52840_bootloader-0.9.0_s140_6.1.1.hex
bootloader/ledglasses_nrf52840/ledglasses_nrf52840_bootloader-0.9.0_s140_6.1.1.zip
bootloader/metro_nrf52840_express/metro_nrf52840_express_bootloader-0.7.0_s140_6.1.1.hex
bootloader/metro_nrf52840_express/metro_nrf52840_express_bootloader-0.7.0_s140_6.1.1.zip
bootloader/metro_nrf52840_express/metro_nrf52840_express_bootloader-0.9.0_s140_6.1.1.zip
bootloader/particle_xenon/particle_xenon_bootloader-0.6.2_s140_6.1.1.hex
bootloader/particle_xenon/particle_xenon_bootloader-0.6.2_s140_6.1.1.zip
bootloader/particle_xenon/particle_xenon_bootloader-0.7.0_s140_6.1.1.hex
bootloader/particle_xenon/particle_xenon_bootloader-0.9.0_s140_6.1.1.hex
bootloader/raytac_mdbt50q_rx/raytac_mdbt50q_rx_bootloader-0.6.2_s140_6.1.1.hex
bootloader/raytac_mdbt50q_rx/raytac_mdbt50q_rx_bootloader-0.6.2_s140_6.1.1.zip
bootloader/raytac_mdbt50q_rx/raytac_mdbt50q_rx_bootloader-0.7.0_s140_6.1.1.zip
bootloader/raytac_mdbt50q_rx/raytac_mdbt50q_rx_bootloader-0.9.0_s140_6.1.1.hex
bootloader/raytac_mdbt50q_rx/raytac_mdbt50q_rx_bootloader-0.9.0_s140_6.1.1.zip
2024-06-05 16:31:16 +07:00
hathach
4f2c26a600
fix space in path issue when burning bootloader with IDE v2
2023-06-23 15:32:17 +07:00
hathach
2cf814ecb8
clean up
2022-07-14 14:12:35 +07:00
hathach
cc29a8c156
correct linker, add fill pattern for startup
2022-07-14 12:39:23 +07:00
hathach
4a2f1269ce
fix nrfjprog file not found on windows issue #639
2021-05-26 12:14:19 +07:00
hathach
41dd885972
upgrade bootloader binary to 0.2.9
2019-03-01 18:54:27 +07:00
hathach
aae490f92e
update bootloader to 0.2.7, added metro nrf52840 rev A
2019-02-01 00:10:10 +07:00
hathach
3463e383c3
solve #133 program via jlink
2019-01-10 11:56:17 +07:00
hathach
af5bc4000e
update bootloader to 0.2.6
2018-12-21 23:07:44 +07:00
hathach
15db2f475c
update binary for bootloader v0.2.5 SD v6.1.1 with new led pattern
2018-12-20 01:03:02 +07:00
hathach
ab2de918ff
update bootloader binary
...
fixed uploading issue with nrf52832 due to uart byte missing when
erasing.
2018-10-02 21:02:35 +07:00
hathach
eb11ab7d37
clean up
2018-08-21 16:38:33 +07:00
hathach
b6327f912c
Merge branch 'master' into develop
2018-08-20 22:56:52 +07:00
hathach
e96579ca2f
update boot burn tool to adafruit-nrfutil
2018-08-19 13:50:06 +07:00
hathach
b6379c644b
update bootloader + SD to 6.1.0
2018-08-09 12:46:54 +07:00
hathach
f00820325e
switch to adafruit-nrfutil
2018-08-07 16:39:35 +07:00
hathach
41b1cdeb97
rename feather52 to feather52832
2018-06-26 15:02:04 +07:00
hathach
2d04696be1
fix burn issue with osx
2018-01-17 12:48:46 +07:00
hathach
5f491c5239
update
2018-01-17 11:32:15 +07:00
hathach
475e4e07e3
remove s132 v2.0.1 in IDE menu, add 5.1.0 single option
2018-01-08 12:12:53 +07:00
hathach
bab71cccda
minor clean up
2017-12-23 00:13:26 +07:00
hathach
0500104c49
update bootloader to 5.1.0
2017-12-12 13:15:31 +07:00
hathach
8372de1592
update programmer tool to migrate bootloader easily
...
- add fwinfo sketch
2017-10-04 17:02:54 +07:00
hathach
bd897c9d50
clean up boards.txt & platform.txt for adding metro52
2017-06-28 23:14:49 +07:00
hathach
1b25c8215d
rename Jlink programmer
2016-11-24 19:33:30 +07:00
hathach
ae553fa4fc
able to burn bootloader with nrfjprog
2016-11-22 22:18:08 +07:00
hathach
6151838f8f
adding file from sandeepmistry/arduino-nRF5
2016-11-22 01:08:21 +07:00