coospo bc200 - bike computer from aliexpress
PCB revision: v5.4
test fw based on zephyr os (build instructions)
works:
jlink connected to SDO and SCLK testpoints
erase all data (exclude qspi flash) and protection, and programm only full flash exclude protection
nrfjprog -f NRF52 --log --recover
nrfjprog -f NRF52 --log --program full_flash.bin
switch NFC antenna pins to GPIOs - used as buttons (first cmd enable write possibility to UICR,second - write needed value)
nrfjprog -f NRF52 --ramwr 0x4001E504 --val 0x00000001
nrfjprog -f NRF52 --ramwr 0x1000120C --val 0xfffffffe
https://mysensors-rus.github.io/Blue-pill-to-JLink/
https://github.com/GCY/JLINK-ARM-OB
http://forum.easyelectronics.ru/viewtopic.php?p=651817#p651817
https://github.com/atc1441/ESP32_nRF52_SWD
https://limitedresults.com/2020/06/nrf52-debug-resurrection-approtect-bypass/
faketime -f "x0.1" ./nrfjprog --jdll <full path>/JLink_Linux_V752a_x86_64/libjlinkarm.so -f NRF52 --log --qspiini nrfjprog_qspi_gd25q127c.ini --readqspi qspi.bin
faketime -f "x0.1"
- need because nrfjprog work with my defective jlink from bluepill continuously only 32sec and this time is not enough for reading qspi flash
util for decrypt and encrypt firmware and font for usb upgrade
fw start from 0x31000
spi flash contain font from 0 offset and fatfs disk from 0x380000 offset