Shop OBEX P1 Docs P2 Docs Learn Events
SIDE RC2 COGs in XMMC — Parallax Forums

SIDE RC2 COGs in XMMC

RsadeikaRsadeika Posts: 3,837
edited 2015-01-09 07:23 in Learn with BlocklyProp
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

/*
  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

  • David BetzDavid Betz Posts: 14,516
    edited 2015-01-09 06:55
    This only works with the version of propgcc in the default branch on Google Code. It doesn't work with the version that is included with SimpleIDE at present.
  • RsadeikaRsadeika Posts: 3,837
    edited 2015-01-09 07:23
    Well it looks like we will have to wait for RC5? :-) At least the SDXMMC and XMMC External... works, I think. Yesterday I did a prelim test and it seemed to be working, will have to push it some more today. But, it sure would be nice to have COGs running in extra large memory models.

    Ray
Sign In or Register to comment.