Post Go back to editing

Minimal assembly code for ADAU1860 TDSP

Category: Hardware
Product Number: ADAU1860

I am utilizing ADAU1860/1 and need to know how to program TDSP and reset the device to run TDSP program.

What is an minimal assembly code for the TDSP to toggle GPO14 of ADAU1860/1?

I am intended to use the following command to convert the compiled assembly code to the hex file for LarkStudio:

xt-dumpelf --base=0x60000000 --width=32 --full --size=0x30000 --little-endian .\minimal.bin > minimal.hex

LarkStudio

Download the minimal.hex file at 0x60000000

Reset at 0x6000000

Also, let me know all the necessary files and their contents such as memmap.xmm or a link script.

Thank you for your help in advance.

  • Hello Choe,

    Currently, we only offer support for programming in C. However, you can use the -S compiler flag to generate the corresponding assembly code if needed.

    int main( int argc, char **argv )
    {
    	*(unsigned char *)0x4000C128 = 0x02; /* MP14 as General Purpose Output from GPIOx_OUT register */
    	while(1){
    		*(unsigned char *)0x4000C131 |= 1 << 6; /* set MP14  */
    		*(unsigned char *)0x4000C131 &= ~(1 << 6); /*  clear MP14 */
    	}
    	return 0;
    }

    You can use the memmap and linker scripts that you will find inside of gdbio_custom in this project:  ADAU1860: Using SDK to configure Audio Path 

    0x60000000 as base address is correct, but I think reset address should be 0x60000400.

    Best regards,
    Roberto

  • Hello Roberto,

    Thank you for your quick reply and the information.

    I am looking forward to trying. However, I don't have the following tools packages:

    1. hifi3z_lark_win32_redist.tgz
    2. Lark SDK v(version) Setup.exe
    3. xt-ocd-12.0.5-windows-installer.exe
    4. XtensaTools_RG_2017_5_win32.tgz

    According to the "ADAU1860 Xtensa Windows Tools Quick Start Guide" that was found from the link you have provided, the above four tools packages are needed.

    Currently, I have installed "Xplorer-9.0.18-windows-installer.exe" and "Lark Studio Setup 2.4.4.exe". It appears that the above four packages are missing. Additionally,  "Lark SDK v(version) Setup.exe" and "Lark Studio Setup 2.4.4.exe" are the same?

    Can you tell me where I can obtain the remaining packages? They look like tools that are specific to ADAU1860/1.

    Regards,

    Choe

  • Hello Roberto,

    Materials in the "Audio Path" link contain hifi3z_lark as XTENSA_CORE when handling memmap to generate linker scripts. Is it different from or compatible to hifi3z_ss_spfpu_7?

    Or can you tell me which of the following should be used for ADAU1860/1?

    1. elf32xtensa.x 
    2. elf32xtensa.xbn 
    3. elf32xtensa.xn 
    4. elf32xtensa.xr 
    5. elf32xtensa.xu

    Regards,

    Choe