Files
Adafruit_nRF52_Arduino/tools
hathach 18f3a82e4c fix #9
Looking closely at the bootloader update progress.

- After transferring the image, the nrf52 save new image in bank1, which
it will perform crc check

- If success then COPY new firmware from bank1 to bank0, erasing bank 0
and writing to bank 0

The issue is after sending the firmware and getting confirm that crc is
matched, nrfutil finished. And Arduino IDE re-open Serial which cause
nrf52 reset while in the middle of erasing bank 0 & writing bank 0. The
solution is simple calculate the delay which is time to erase + time to
write bank0

Worst Erase Page Time is 90 ms
Worst Write One Word Time is 338 us
2017-01-21 19:01:47 +07:00
..
2016-12-17 02:21:54 +01:00
2017-01-21 19:01:47 +07:00
2017-01-19 19:43:20 +07:00

Windows 32-bit Python side-by-side 64-bit Python

Typically on Windows you will install the 64-bit version of Python, however this presents a challenge when building binaries with cx_Freeze since it will use this 64-bit version of Python exclusively. To generate a 32-bit binary you will need to install a 32-bit version of Python side-by-side the 64-bit version. Unfortunately this is a tricky process but it can be simplified using the virtualenv tool.

The steps below outline a general process for installing 64-bit Python as the main Python interpretor and using a 32-bit Python virtualenv side-by-side to build 32-bit executables with cx_Freeze.

First install Python 2.7 x64 in its normal C:\Python27 location.

Next install Python 2.7 x86 but override the location to be something unique like C:\Python27-x86. Also you must set the register extensions option in the installer to disabled/not installed (this will prevent the 32-bit version taking over the default path, etc.).

Now open a command window and navigate to the path that Python 32bit was installed and run the scripts/pip.exe to install virtualenv in 32bit python:

c:\Python27-x86\Scripts\pip.exe install virtualenv

To create a virtualenv use the virtualenv.exe (also installed in the Scripts folder) like normal. For example to create a new virtual environment called py32 open a terminal in your home directory and run:

c:\Python27-x86\Scripts\virtualenv.exe py32

The created virtualenv will have a Scripts subdirectory with an activate.bat. When this bat file is run it will setup the environment to use Python 32-bit. For example from your home directory run in a command terminal:

.\py32\Scripts\activate.bat

Now Python, pip, etc. should all be using the 32-bit Python virtual environment. You can build software with cx_Freeze etc and it will use this 32-bit version of Python.