SIDE RC2 COGs in XMMC
Rsadeika
Posts: 3,837
Below is a small test program to see if COGs are able to run in XMMC space, apparently not. This runs correctly in CMM, but, in XMMC..., led27() is not flashing. Is there something that I am missing? I think in the previous versions there was an error presented when compiling under those conditions. Of course I am using the Activity Board.
Ray
Ray
/* test_mmc_cog.c Test if COG runs in XMM space. */ #include "simpletools.h" void led27(); int main() { // Add startup code here. int *cog1 = cog_run(&led27, 10); while(1) { // Add main loop code here. high(26); pause(500); low(26); pause(500); } return 0; } void led27() { while(1) { high(27); pause(200); low(27); pause(200); } }
Comments
Ray