Difference between revisions of "Programming Senoko DVT"

From Studio Kousagi Wiki
Jump to: navigation, search
(Created page with "# clone and build https://github.com/xobs/stm32flash # clone and build https://github.com/xobs/senoko-chibios ## go to ./projects/kosagi-senoko and do a make -j4 ## hold down res...")
(No difference)

Revision as of 09:01, 21 February 2014

  1. clone and build https://github.com/xobs/stm32flash
  2. clone and build https://github.com/xobs/senoko-chibios
    1. go to ./projects/kosagi-senoko and do a make -j4
    2. hold down reset and program buttons on senoko, and run ./reset.sh to enter STM32 programming mode over UART
  3. from the kosagi-senoko directory, run:
<path-to>/stm32flash/stm32flash -b 115200 -w build/senoko.hex /dev/ttymxc3
  1. then run
 ./reset.sh
screen /dev/ttymxc3 115200
  1. from the serial console talking to senoko, run
ch> chg 1000 12600 3000

The above command powers up the gas gauge so you can program it (powered up via the charger, the battery pack is in safe mode)

ch> gg setup 3 3000

The above command sets 3 cells and 3000mAh as the capacity for the gas gauge.