~~NOCACHE~~ \\ ===== Quick Start Guide to flash a TQMLS1012AL on a STKLS1012AL ===== * [[https://ronetix.at/product/peedi-jtag-bdm-swd-flash-programmer|PEEDI JTAG/BDM/SWD Flash Programmer for Cortex]] * PEEDI Adapter ADAPTER_CORTEX10 [[https://ronetix.at/product/peedi-jtag-bdm-swd-flash-programmer|selectable in the "Adapters" drop down]] * PEEDI Firmware v20.3.1 or higher * TFTP server (e.g. [[http://tftpd32.jounin.net/|tftp64]] on the host computer with a network interface setup to IP address 10.250.250.1 * Terminal emulator (e.g. [[https://ttssh2.osdn.jp/|Tera Term]] on installed on the host. - Connect the PEEDI programmer to a free LAN port in the same network as the host computer setup before to get access to your TFTP server. - Connect the PEEDI programmer to a free COM port on the host. - Plug in the JTAG cable into the PEEDI programmer (nose on the connector is facing up). - Connect the JTAG cable to connector X18 on the STKLS1012AL (red strip to pin 1). - Connect the PEEDI power adapter to a power outlet. 1. Download the [[http://download.ronetix.at/peedi/cfg_examples/cortex-a/ls1012a.cfg|target configuration file for LS1012A]] and save it as "ls1012a.cfg" on a SD Card prepared with a FAT32 filesystem.\\ 2. Plug in the SD Card into the PEEDI programmer.\\ 3. Start the terminal emulator and establish a new connection to the COM port where the PEEDI is connected to the host. Setup the serial connection as follows:\\ ^ Baudrate | 115200 | ^ Data | 8 | ^ Parity | N | ^ Stop bits | 1 | 4. Type **card dir** to list the content of the SD card\\ 5. Type **transfer card://ls1012a.cfg eep://ls1012a.cfg** to copy the config file to the EEPROM\\ 6. Press and hold RESET button, then press both front panel buttons to restart and enter RedBoot command line.\\ 7. Type **fconfig** to set up the network connection as follows:\\ ^ DHCP | no | ^ Gateway | IP 10.250.250.1 | ^ Local IP | 10.250.250.2 | ^ Local IP mask | 255.255.255.0 | ^ Default TFTP IP | 10.250.250.1 | ^ Target configuration file path | %%://ls1012a.cfg%% | ^ DNS IP | leave blank | ^ Proxy | no | ^ Firmware update path | 1 | 8. Type **y** to save the new settings\\ 9. Press the RESET button on the PEEDI programmer.\\ * Put the binaries into the TFTP transfer folder * If the board is bricked because of a broken RCW, set the following DIP switches on the STKLS1012AL: * DIP switch S1-1 to on for RCW overwrite mode * DIP switch S1-2 to off to disconnect RESET_REQ# from board reset * Don't forget to switch back again after flashing * Power the STK1012AL with 24 V power supply * PEEDI should show some cpu information flash program tftp://10.250.250.1/u-boot-pbl-512mb-qspi-sd.bin 0x0 erase flash program tftp://10.250.250.1/ppa-tqmls1012al-mbls1012al.itb bin 0x00400000 erase flash program tftp://10.250.250.1/pfe_fw_sbl.itb bin 0x00A00000 erase flash program tftp://10.250.250.1/bl2_qspi.pbl bin 0x0 erase flash program tftp://10.250.250.1/fip_uboot.bin bin 0x00100000 erase flash program tftp://10.250.250.1/pfe_fw_sbl.itb bin 0x00A00000 erase