ti-dsp

How do I write a memory barrier for a TMS320F2812 DSP?

允我心安 提交于 2019-12-21 02:55:21
问题 I've looked through the TI C/C++ compiler v6.1 user's guide (spru514e) but didn't find anything. The asm statement doesn't seem to provide anything in this regard, the manual even warns against changing values of variables (p132). The GNU extension for declaring effects on variables is not implemented (p115). I also didn't find any intrinsic for memory barriers (like __memory_changed() in Keil's armcc). Searching the web or the TI forums also turned up nothing. Any other hints how to proceed?

TMS320F2812 FatFs f_write returns FR_DISK_ERR

谁说我不能喝 提交于 2019-12-10 16:36:27
问题 I have problem with an SD card. I'm using the FatFs library ver R0.10b to access the SD card. My code: // .... // FATFS fatfs; FIL plik; FRESULT fresult,res1,res2,res3,res4,res5; UINT zapisanych_bajtow = 0 , br; UINT zapianie_bajtow = 0; char * buffor = "123456789abcdef\r\n"; unsigned short int i; void main(void) { // ... // res1 = f_mount(0,&fatfs); // returns FA_OK res2 = f_open( &plik, "f721.txt", FA_OPEN_ALWAYS | FA_WRITE ); // returns FA_OK if( res2 == FR_OK ) { res3 = f_write( &plik, (

How do I write a memory barrier for a TMS320F2812 DSP?

扶醉桌前 提交于 2019-12-03 09:03:27
I've looked through the TI C/C++ compiler v6.1 user's guide ( spru514e ) but didn't find anything. The asm statement doesn't seem to provide anything in this regard, the manual even warns against changing values of variables (p132). The GNU extension for declaring effects on variables is not implemented (p115). I also didn't find any intrinsic for memory barriers (like __memory_changed() in Keil's armcc). Searching the web or the TI forums also turned up nothing. Any other hints how to proceed? Memory barriers are about the ordering of memory accesses, but you also have to ensure that values