I have few BLE tags, with button+led+buzzer (AKA "iTag"), I opened them up and saw it's based on one chip: BEKEN BK3431. I have access to the following JTAG/test pads:

VCC3V | GND | P05 | P04 | P06 | P07 | PROG | RSTN | TXD | RXD

I searched online and could not find an references for programming it. I want to build a simple costume firmware (in c/c++), and make the tag broadcast custom data. What development tools/hardware and software do i need to upload my own firmware on this BK3431 tag? Is anyone familiar with this chip? Thanks

  • \$\begingroup\$ i found that pin3-7 is JTAG for spi programming, but i'm still not sure on programmer type and software... \$\endgroup\$ – itai Dec 19 '16 at 19:03
  • \$\begingroup\$ datasheetspdf.com/PDF/BK3431/945631/10 \$\endgroup\$ – itai Dec 19 '16 at 19:04
  • \$\begingroup\$ I'm voting to close this old, unresolved question because it does not fit within the mission of Stack Exchange. The practical details of composing a program for a particular embedded device and loading it into the silicon are far, far beyond what can fit in an SE answer. And questions which seek pointers to offsite resources are a prohibited category. SE sites are by design limited in mission to only those questions which can be meaningfully answered right here - and this is not an example of one. \$\endgroup\$ – Chris Stratton Jun 20 '18 at 2:55

Looks like a neat little IC, already packaged. I'm interested in doing the same, but where is this "relevant file" referred to below?

It is SPI not JTAG, as it does not have the "JTAG_MODE" (pin 24) or "JTAG_RST" (P03, pin 1) pins broken out.

From the datasheet:

"128K bytes FLASH memory is used for storing program code. It can be accessed through a simple SPI interface. Four GPIO P0.4, P0.5, P0.6 and P0.7 are used for program FLASH in program mode. You can read, write or erase the FLASH space with different SPI command. For detail information, please refer to the relevant file. After erase, all the data in the FLASH are 0xFF, customer can write their program into the FLASH. Also, the data in the FLASH can be read out for debug. Once the developing process is done, the access for the FLASH can be forbbided by writing 0x12345678 into the last four addresses. ([128k-4]~[128k])"

, so maybe it has been "forbidded"?

FLASH programming: JTAG, I2C, SPI and UART interface.

It looks like P04, 5, 6 & 7 are connected to the SPI (4-MOSI, 5-MISO, 6-SCK & 7-CSI (CE)), while the UART interface is also broken out. PROG sets "Flash Program Mode selection; 0: Flash in normal mode & 1: Flash in program mode"???

I think this a dead end, but it was fun trying...


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.