Jump to content

Atas

Members
  • Content Count

    4
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    Atas got a reaction from morelius21 in Assembler nop in ccs   
    _nop();
     

  2. Like
    Atas reacted to oPossum in Printing to the CCS debugger console   
    The CCS RTS (run time support library) supports simple device drivers and streams. The printf() function uses this driver/stream system to print to the debugger console window. There isn't enough memory in any of the G series devices to use printf() due in part to the memory requirements of the RTS stream buffers.
     
    I created a very basic printf() that makes direct calls to user provided putc() and puts() functions. This reduces the memory use substantially. Using this simple printf() with the CCS debugger console can be done with this code....
     

    unsigned char _CIOBUF_[12 + 32]; // This *must* be global and named _CIOBUF_ // 12 bytes needed for header and null terminator // void putc(char c) // --- Send char to debugger using CIO { // static char * p = (char *)&_CIOBUF_[11]; // Pointer to string buffer // if(c) *p++ = c; // Append any non-null char to buffer // Write to host when buffer is full or char is null if((p >= (char *)&_CIOBUF_[sizeof(_CIOBUF_) - 1]) || (c == 0)) { *p = 0; // Null terminate string const unsigned l = p - (char *)&_CIOBUF_[10];// String lengh including null _CIOBUF_[0] = _CIOBUF_[5] = l & 0xFF; // Data and string length LSB _CIOBUF_[1] = _CIOBUF_[6] = l >> 8; // Data and string length MSB _CIOBUF_[2] = 0xF3; // Write command _CIOBUF_[3] = 1; _CIOBUF_[4] = 0; // stdout stream __asm(" .global C$$IO$$"); // CIO breakpoint __asm("C$$IO$$:nop"); // p = (char *)&_CIOBUF_[11]; // Reset string buffer pointer } // } void puts(char *s) { while (*s) putc(*s++); } // Send string to debugger inline void cio_flush(void) { cio_putc(0); } // Flush the CIO write buffer
     
    This works by filling a buffer with information that the debugger will read and interpret. The debugger sets a breakpoint at symbol C$$IO$$ and reads the buffer when the breakpoint is hit. Unfortunately there is quite a bit of overhead with this method so applications are limited. Increasing the buffer size (_CIOBUF_) will help performance by transferring more data with each breakpoint invocation.
     


  3. Like
    Atas got a reaction from jsolarski in Anaren CC110L RF BoosterPack with msp430 launchpad as Chronos eZ430 Access Point   
    I loved the eZ430-Chronos.
    On the Internet many projects made ??on the basis of this development tool. But one thing I did not like is that you need a computer to manage their programs. And without a computer Chronos watch can not control anything. So I bought Anaren CC110L RF BoosterPack (868 Mhz).
    But this kit does not work with Chronos. I looked a lot of information and code on this forum and on the internet. But always something was wrong, I did not want to rewrite the SimpliciTi protocol. And finally... 
      I did emulation of RF USB dongle. The project uses the unmodified Chronos Control Centre and firmware of sportswatch. But blurobin and wireless firmware update does not work. To me, this part is not important. I used code composer studio. And now I have a working SimpliciTI on msp430g2553 with CC110L. And Run many examples which are in SimpliciTi installation directory.

    Here is a video how it works.
     


     
    p.s.
    Thanks to @gwdeveloper, with post SimpiciTI Tutorial for CC2500
    p.p.s.
    Project attached CCS SimpliciTI MSP430 CC110L Anaren busterpack.rar
  4. Like
    Atas got a reaction from Automate in Anaren CC110L RF BoosterPack with msp430 launchpad as Chronos eZ430 Access Point   
    I loved the eZ430-Chronos.
    On the Internet many projects made ??on the basis of this development tool. But one thing I did not like is that you need a computer to manage their programs. And without a computer Chronos watch can not control anything. So I bought Anaren CC110L RF BoosterPack (868 Mhz).
    But this kit does not work with Chronos. I looked a lot of information and code on this forum and on the internet. But always something was wrong, I did not want to rewrite the SimpliciTi protocol. And finally... 
      I did emulation of RF USB dongle. The project uses the unmodified Chronos Control Centre and firmware of sportswatch. But blurobin and wireless firmware update does not work. To me, this part is not important. I used code composer studio. And now I have a working SimpliciTI on msp430g2553 with CC110L. And Run many examples which are in SimpliciTi installation directory.

    Here is a video how it works.
     


     
    p.s.
    Thanks to @gwdeveloper, with post SimpiciTI Tutorial for CC2500
    p.p.s.
    Project attached CCS SimpliciTI MSP430 CC110L Anaren busterpack.rar
  5. Like
    Atas got a reaction from KwaiChang in Anaren CC110L RF BoosterPack with msp430 launchpad as Chronos eZ430 Access Point   
    I loved the eZ430-Chronos.
    On the Internet many projects made ??on the basis of this development tool. But one thing I did not like is that you need a computer to manage their programs. And without a computer Chronos watch can not control anything. So I bought Anaren CC110L RF BoosterPack (868 Mhz).
    But this kit does not work with Chronos. I looked a lot of information and code on this forum and on the internet. But always something was wrong, I did not want to rewrite the SimpliciTi protocol. And finally... 
      I did emulation of RF USB dongle. The project uses the unmodified Chronos Control Centre and firmware of sportswatch. But blurobin and wireless firmware update does not work. To me, this part is not important. I used code composer studio. And now I have a working SimpliciTI on msp430g2553 with CC110L. And Run many examples which are in SimpliciTi installation directory.

    Here is a video how it works.
     


     
    p.s.
    Thanks to @gwdeveloper, with post SimpiciTI Tutorial for CC2500
    p.p.s.
    Project attached CCS SimpliciTI MSP430 CC110L Anaren busterpack.rar
  6. Like
    Atas got a reaction from bluehash in Anaren CC110L RF BoosterPack with msp430 launchpad as Chronos eZ430 Access Point   
    I loved the eZ430-Chronos.
    On the Internet many projects made ??on the basis of this development tool. But one thing I did not like is that you need a computer to manage their programs. And without a computer Chronos watch can not control anything. So I bought Anaren CC110L RF BoosterPack (868 Mhz).
    But this kit does not work with Chronos. I looked a lot of information and code on this forum and on the internet. But always something was wrong, I did not want to rewrite the SimpliciTi protocol. And finally... 
      I did emulation of RF USB dongle. The project uses the unmodified Chronos Control Centre and firmware of sportswatch. But blurobin and wireless firmware update does not work. To me, this part is not important. I used code composer studio. And now I have a working SimpliciTI on msp430g2553 with CC110L. And Run many examples which are in SimpliciTi installation directory.

    Here is a video how it works.
     


     
    p.s.
    Thanks to @gwdeveloper, with post SimpiciTI Tutorial for CC2500
    p.p.s.
    Project attached CCS SimpliciTI MSP430 CC110L Anaren busterpack.rar
×
×
  • Create New...