Hynix Semiconductor Inc. of South Korea and Japan’s Toshiba Corp. declared an end to their legal battles Tuesday, signing accords to share semiconductor patents and products.

The two companies have been embroiled in litigation in Japan and the United States over NAND flash memory chips, used in digital products such as cameras, music players, personal digital assistants and memory cards.