Code Monkey home page Code Monkey logo

freertos-hifi4-dsp's Issues

Allwinner T113-s3 DSP static DRAM interleave fix proposal.

Then I fill data ram of embedded DSP, address translation discovered.
You can integrate these functions:

// HiFI4 DSP-viewed address offset translate to host cpu viewwed
static ptrdiff_t xlate_dsp2mpu(ptrdiff_t a)
{
	const ptrdiff_t BANKSIZE = 0x08000u;
	const ptrdiff_t CELLBASE = 0x10000u;
	const ptrdiff_t CELLSIZE = 16;
	const ptrdiff_t cellbank = (a - CELLBASE) / BANKSIZE;
	const ptrdiff_t cellrow = (a - CELLBASE) % BANKSIZE / CELLSIZE;	// 16 bytes granularity
	const unsigned cellpos = (a % CELLSIZE);	// 16 bytes granularity

	if (a < CELLBASE)
		return a;	/* translation not needed. */

	return CELLBASE +
			cellbank * BANKSIZE +
			CELLSIZE * ((cellrow % 2) ? (cellrow / 2) + (BANKSIZE / CELLSIZE / 2) : cellrow / 2) +
			cellpos;
}

static void copy2dsp(uint8_t * pdspmap, const uint8_t * pcpu, unsigned offs, unsigned size)
{
	for (; size --; ++ offs)
	{
		pdspmap [xlate_dsp2mpu(offs)] = pcpu [offs];
	}
}

static void zero2dsp(uint8_t * pdspmap, unsigned offs, unsigned size)
{
	for (; size --; ++ offs)
	{
		pdspmap [xlate_dsp2mpu(offs)] = 0x00;
	}
}

编译出错问题,src/main.c:13:10: fatal error: xtutil.h: No such file or directory

你好!
1)编译FreeRTOS-HIFI4-DSP时提示src/main.c:13:10: fatal error: xtutil.h: No such file or directory没有找到,把对应用到的文件中注释掉,编译可以通过(系统Debian10).这不影响系统的运行吧!
2)在这个系统中是否可以调用FFT,IFFT,FIR,IIR这些函数,后期有没有实现的计划.
3)如有可能能否加个好朋友,我也有需求在HIFI4-DSP上进行产品开发,微信:13554907706. 谢谢!

uboot 加载 dsp.elf 报错

开发板是 Sipeed Lichee RV,系统镜像是 LicheeRV_Tina_dock_hdmi_8723ds.img ,利用了 Tina Linux 中魔改的 uboot,其中包括了 bootr 命令来给 DSP 加载 firmware。

uboot 命令行下加载 firmware 报错

=> echo $(boot_dsp0)
sunxi_flash read 45000000 ${dsp0_partition};bootr 45000000 0 0
=> sunxi_flash read 45000000 ${dsp0_partition};bootr 45000000 0 0
dsp0:uart config fail
dsp0:gpio init config fail
dsp0:find section err

修改 bootdelay

在 /etc/fw_env.config 中添加 /dev/by-name/env /dev/by-name/env-redund
之后通过 fw_setenv 编辑 bootdelay

制作 dsp 分区

dd if=dsp.elf of=/dev/mmcblk0p5

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.