Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
boards:microbit [2024/08/14 11:51] darronboards:microbit [2024/08/14 14:01] (current) – [Arduino] darron
Line 14: Line 14:
 256KB flash and 16KB RAM. 256KB flash and 16KB RAM.
  
-This page is a work-in-progress whilst I work out how to program this board +The MCU on this device is now obsolete and so are the `bare metal' development tools.
-using a Nordic SDK.+
  
-===Arduino=== +The most modern platform may be Arduino 1.8.19 which may give an insight as to 
- +how to create modernised SDK.
-[[tools:arduino#nordic_nrf5|Arduino IDE 1.8.19]] supports nRF5 micro-controllers and could be useful tool to develop applications on the micro:bit.+
  
 ===nRF51 SDK=== ===nRF51 SDK===
  
-Version 10.0.0 would appear to be the last SDK for just the nRF51 chipset,  and 12.3.0 +The nRF51 device and its [[tools:nrf51|SDK]] are now obsolete so hardly viable to 
-appears to be the last that includes the nRF51.+develop an application with.
  
-Here is an [[https://devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/introduction-to-nordic-nrf5-sdk-and-softdevice|overview]]. +===Arduino===
- +
-Go to the [[https://www.nordicsemi.com/Products/Development-software/nrf5-sdk/download|download]] page +
-and fetch 12.3.0. +
- +
-After unzipping the following files are found: +
- +
-<code> +
-nRF5SDK1230.zip +
-s130nrf51201.zip +
-s132nrf52310.zip +
-</code> +
- +
-`s130nrf51201.zip' is the BT software stack for the nRF51 (known as the Softdevice) +
-and `s130nrf51201.zip' is the SDK for nRF5x.+
  
-The Softdevice stack for the nRF52 named `s132nrf52310.zip' is not needed here.+[[tools:arduino#nordic_nrf5|Arduino IDE 1.8.19]] supports nRF5 micro-controllers and could be a useful tool to develop applications on the micro:bit and it appears to work.
  
-The GNU makefile `components/toolchain/gcc/Makefile.posix' in the SDK +[[https://github.com/sandeepmistry/arduino-nRF5|Install guide for nRF51]]
-sets up GNU_INSTALL_ROOT := /usr/local/gcc-arm-none-eabi-4_9-2015q3 +
-and this toolchain would appear to be an absolute requirement.+
  
-This toolchain is available [[https://launchpad.net/gcc-arm-embedded/4.9/4.9-2015-q3-update/+download/gcc-arm-none-eabi-4_9-2015q3-20150921-linux.tar.bz2|here]]but it's 32-bit for i386 only. +Zadig is required to provide LIBUSB to the IDEWhen using J-Linkthis is found as "BULK interface (Interface 2)".
-===Softdevice===+
  
-Not sure what to do with this yet.+When trying to flash the Softdevice there will be an error about  
 +fetching the zip file. To remedy this place the hex file in 
 +the Arduino AppData folder.
  
 <code> <code>
-md5sum s130_nrf51_2.0.1_softdevice.hex +AppData/Local/Arduino15/packages/sandeepmistry/hardware/nRF5/0.8.0/cores/nRF5/SDK/components/softdevice/s130/hex/s130_nrf51_2.0.1_softdevice.hex
-f63d43ae56cada5d5aaa14271fc76681  s130_nrf51_2.0.1_softdevice.hex+
 </code> </code>
  
-===Programming===+The Softdevice hex file is located in the [[tools:nrf51|SDK]].
  
-No idea about this+[[https://github.com/sandeepmistry/arduino-BLEPeripheral|Install guide for BLE]]
  
-<code> +[[https://github.com/sandeepmistry/arduino-BLEPeripheral/tree/master/examples|Example code]]
-https://www.nordicsemi.com/Products/Development-tools/nrf-command-line-tools/download +
-</code>+
 ===J-Link=== ===J-Link===
 +
 +[[:tools:segger|SEGGER J-Link]] on board is available for all flavours of the micro:bit to
 +enable a professional debug interface.
  
 Hold down reset and plug board into PC. Hold down reset and plug board into PC.
Line 141: Line 124:
  
 [[https://www.segger.com/products/debug-probes/j-link/models/other-j-links/bbc-microbit-j-link-upgrade/|SEGGER J-Link for micro:bit]] [[https://www.segger.com/products/debug-probes/j-link/models/other-j-links/bbc-microbit-j-link-upgrade/|SEGGER J-Link for micro:bit]]
- 
-[[https://nsscprodmedia.blob.core.windows.net/prod/software-and-other-downloads/product-briefs/nrf51822-product-brief.pdf|MCU product brief]] 
- 
-[[https://infocenter.nordicsemi.com/pdf/nRF51822_PS_v3.1.pdf|MCU data-sheet]] 
- 
-/* 
- 
-[[https://github.com/lancaster-university/microbit-samples/|micro:bit C++ API examples]] 
- 
-[[https://github.com/Spivoxity/baremetal-v1|Bare metal micro:bit]] 
- 
-*/ 
  
 [[https://github.com/carlosperate/awesome-microbit|Programming resources]] [[https://github.com/carlosperate/awesome-microbit|Programming resources]]