Page 1 of 1

[wt51822_s4at] getting started

Posted: Thu Jul 19, 2018 7:54 am
by mcauser
I noticed the NRF port has now been merged! Woo!
https://github.com/micropython/micropyt ... /ports/nrf

In the readme it lists wt51822_s4at as one of the tested boards. I have one of these!

I used this breakout board on Oshpark to make it breadboard compatible:
https://oshpark.com/shared_projects/lRnmz9t2

I was wondering what the steps are to flash MicroPython to the device. The readme lists Manual under Flash util.
I don't have a Segger, but I do have a St-link (clone). Could I use that?

Code: Select all

cd ports/nrf
./drivers/bluetooth/download_ble_stack.sh
make BOARD=wt51822_s4at SD=s110 sd
make BOARD=wt51822_s4at flash
Any tips?

Re: [wt51822_s4at] getting started

Posted: Thu Jul 19, 2018 8:19 am
by shaoziyang
I think st-link can't do work, you may use jlink-OB instead.

Re: [wt51822_s4at] getting started

Posted: Thu Aug 02, 2018 2:11 am
by ayke
The ST-Link V2 clone can do it, I've used it often. You need to connect 3.3V, GND, SWDIO, and SWCLK to the correct pins. Then you can flash using OpenOCD. After that, connect a UART to the serial pins (check the datasheet) to enter the REPL.

Note: using *make flash" or "make SD" won't work with OpenOCD, you need to flash build-wt51822_s4at-s110/firmware.hex *and* the SoftDevice hex manually with OpenOCD.

I will post more detailed instructions soon.