gigaset_elements_bl26_opens.../src/dialog
Harald Welte e6c0007580 cr16boot/curl: remove generated/compiled files from git index 2022-12-12 21:51:46 +01:00
..
cr16boot cr16boot/curl: remove generated/compiled files from git index 2022-12-12 21:51:46 +01:00
loader initial checkin 2022-12-11 22:58:24 +01:00
uart remove .deps (build results) from git index 2022-12-12 21:51:46 +01:00
Makefile initial checkin 2022-12-11 22:58:24 +01:00
README initial checkin 2022-12-11 22:58:24 +01:00
cr16_boot_prog.sh initial checkin 2022-12-11 22:58:24 +01:00
cr16boot.mk initial checkin 2022-12-11 22:58:24 +01:00
doxygen.h initial checkin 2022-12-11 22:58:24 +01:00
loader.mk initial checkin 2022-12-11 22:58:24 +01:00
uart.mk initial checkin 2022-12-11 22:58:24 +01:00

README

 
The Bootloader upgrade proccess from UART involves 3 binaries.

1) BUILD the loader binary. This is the binary that runs in 452, 
reads from UART and writes the actual bootloader to flash

  cd loader/
  make sc14452loader

2) Build the actual bootloader

  cd cr16boot/
  make sc14452reef_config
  make  all
  make image_452

3) Build the host PC application that communicates with UART.
  cd uart/host
  Make sure #define MODEMDEVICE "/dev/ttyS0" corresponds to the actual UART device.
  make all
  if you want to run binary from Windows use WinHost.tar
  
3a) Build target UART application
    cd uart/target
    make all

4) Make sure 452 is in boot mode: Short UART TX with GRND (the 2 pins in uart 
    connector edges) while you power ON the device. The UART RX led will start blinking.


5) Please copy all files needed to flash into one place:
    a) uart/host/uartfp
    b) uart/target/452fp.bin
    c) cr16boot/image452.bin

   You can flash target with command:

    On linux host use following command:
	./uartfp 452fp.bin image452.bin
	
    If running in Windows host type:
   uart.exe  31  452fp.bin image452.bin    (31 is COM port number)
   

You should see the following output

Programmer File Size 3292
Programmer File CRC 0x95
Image File Size 82224
Image File CRC 0xE0
state IDLE rec: 0x02
Downloading programmer ...
state WAIT_ACK rec: 0x06
state WAIT_CRC rec: 0x95
state CHANGE_UART_BPS
state PROG_IDLE rec: 0x05
Downloading image ...
state PROG_WAIT_ACK rec: 0x07
state PROG_WAIT_CRC rec: 0xE0
Programming image ...
state PROG_WAIT_COMP rec: 0x17
Flash programmed successfully

A reset of the board twice will give:



                 @@@           @@                  @@
                @@@@@          @@   @@             @@
                @@@@@          @@                  @@
      .@@@@@.  @@@@@      @@@ @@   @@     @@@@    @@     @@@       @@@
     @@@@@@   @@@@@@@    @@   @@@   @@        @@   @@   @@   @@   @@   @@
    @@@@@    @@@@@@@@    @@    @@   @@    @@@@@@   @@   @@   @@   @@   @@
   @@@@@@     @@@@@@@    @@    @@   @@   @@   @@   @@   @@   @@   @@   @@
   @@@@@@@@     @@@@@    @@   @@@   @@   @@   @@   @@   @@   @@   @@   @@
   @@@@@@@@@@@    @@@     @@@@ @@   @@    @@@@@    @@     @@@       @@@@@
    @@@@@@@@@@@  @@@@                                                  @@
    @@@@@@@@@@@@@@@@                                                  @@
     @@@@@    S  E  M  I  C  O  N  D  U  C  T  O  R     @@@@@


Sitelboot 1.0.3 (Nov 27 2012 - 15:16:59)

Runing on SC14452 SoC

SiTelboot
                code: 00f00000 -> 00f0ec58
                data: 00f124b8 -> 00f14444
DRAM Configuration:
Bank #0: 00020000 15 MB
WINBOND: W25Q32 (32-megabit)
FLASH Configuration:
Bank #0: 00000000 4 MB
Hit any key to stop autoboot:  0
SiTel #