C
Flashing instructions for Nuvoton boards
Connect the board to the host PC using an IAR I-jet debugger hardware with 20-pin JTAG connector and power on the board.
- Create an empty flash_application.bat file and copy-paste the below contents:
set QUL_ROOT=C:\Qt\QtMCUs\3.0.0 set IAR_TOOLCHAIN_DIR="C:\Program Files (x86)\IAR Systems\Embedded Workbench 9.2" "%IAR_TOOLCHAIN_DIR%/common/bin/cspybat" "%IAR_TOOLCHAIN_DIR%/arm/bin/armproc.dll" "%IAR_TOOLCHAIN_DIR%/arm/bin/armJET.dll" ^ --plugin %IAR_TOOLCHAIN_DIR%/arm/bin/armbat.dll ^ --device_macro %IAR_TOOLCHAIN_DIR%/arm/config/debugger/Nuvoton/KM2KSD4XXX(Gerda-4L).dmac ^ --flash_loader "%IAR_TOOLCHAIN_DIR%/arm/config/flashloader/Nuvoton/Gerda-4L.board" ^ --debug_file=%APPLICATION_ELF_BINARY_PATH% ^ --leave_target_running ^ --backend ^ --endian=little ^ --cpu=Cortex-M7 ^ --drv_vector_table_base=0x0 ^ --fpu=VFPv5_D16 ^ -p %IAR_TOOLCHAIN_DIR%/arm/config/debugger/Nuvoton/KM2KSD4XXX(Gerda-4L).ddf ^ --drv_verify_download ^ --semihosting ^ --device=KM2KSD4XXX(Gerda-4L) ^ --multicore_nr_of_cores=1 ^ --jet_standard_reset=9,0,0 ^ --reset_style=\"0,-,0,Disabled__no_reset_\" ^ --reset_style=\"1,-,0,Software\" ^ --reset_style=\"2,-,0,Hardware\" ^ --reset_style=\"3,-,0,Core\" ^ --reset_style=\"4,-,0,System\" ^ --reset_style=\"9,ConnectUnderReset,1,Connect_during_reset\" ^ --drv_catch_exceptions=0xff0 ^ --jet_board_cfg=%IAR_TOOLCHAIN_DIR%/arm/config/debugger/Nuvoton/KM2KSD4XXX(Gerda-4L).ProbeConfig ^ --drv_trace_settings=None ^ --drv_trace_size=25 ^ --board_file=%IAR_TOOLCHAIN_DIR%/arm/config/flashloader/Nuvoton/Gerda-4L.board - Edit the paths
APPLICATION_ELF_BINARY_PATHandIAR_TOOLCHAIN_DIR. - Open command prompt and run the
flash_application.batscript as shown below:flash_application.bat
Available under certain Qt licenses.
Find out more.