yuzukihd / freertos-hifi4-dsp Goto Github PK
View Code? Open in Web Editor NEWFreeRTOS for Cadence Tensilica HIFI 4 DSP on R329, D1-H, T113 With GCC Compiler
FreeRTOS for Cadence Tensilica HIFI 4 DSP on R329, D1-H, T113 With GCC Compiler
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;
}
}
你好!
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. 谢谢!
开发板是 Sipeed Lichee RV,系统镜像是 LicheeRV_Tina_dock_hdmi_8723ds.img
,利用了 Tina Linux 中魔改的 uboot,其中包括了 bootr 命令来给 DSP 加载 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
在 /etc/fw_env.config 中添加 /dev/by-name/env
/dev/by-name/env-redund
之后通过 fw_setenv
编辑 bootdelay
dd if=dsp.elf of=/dev/mmcblk0p5
你好!
编译DSP程序时,出现xtutil.h没有找到.把相应用到的都注释掉后可以正常编译.这个不会影响系统效果吧!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.