CYW4390x commands
The CYW4390x chip supports only limited subset of flash-related commands. Currently, the following flash programming commands are supported:
program
Programs a given binary programming into the flash of the target device.
program <filename> [reset] [exit]
The only required parameter is filename; the others are optional.
reset
– Calls
reset run
(see
reset [run] [halt] [init]
for details)
exit
– Shuts down OpenOCD
Limitations compared to standard
program
command:
Only binary files are supported. Files in any format other than binary will be programmed as a binary data. For example, if a HEX file is programmed, the flash will contain textual representation of the file.
The
preverify
,
verify
, and
offset
parameters are not supported. Verification is done automatically during programming.
Example:
The next example connects ModusToolbox™ OpenOCD CLI to the CYW9WCD1EVAL1 board with the CYW4390x MCU target, programs the flash with the
firmware.bin
file, resets the target, and finally shuts down the OpenOCD programmer.
openocd -s ../scripts -f board/cyw9wcd1eval1.cfg -c "program d:/firmware.bin reset exit"
Note:
For erasing CYW4390x chip use the
erase_all
command.