Jump to content

WarEnd

Members
  • Content Count

    9
  • Joined

  • Last visited

About WarEnd

  • Rank
    Noob Class
  • Birthday 04/25/1990

Contact Methods

  • Website URL
    http://www.quadlane.com

Profile Information

  • Gender
    Male
  • Location
    Telsiai, Lithuania
  • Github
    https://github.com/regimantas
  1. Hi, Thanks compiles on msp430g2452 Remove all Serial.print in provided example Now I test if I can use with nokia 5110 lcd with same chip
  2. Hi. Thanks Its compiles and run on msp430g2553 Except on msp430g2452 i get: core.a(TimerSerial.cpp.o): In function `TimerSerial__TxIsr': /home/warend/energia-0101E0009/hardware/msp430/cores/msp430/TimerSerial.cpp:213: multiple definition of `__isr_9' VirtualWire/VirtualWire.cpp.o:VirtualWire.cpp:(.text.Timer_A_int+0x0): first defined here collect2: ld returned 1 exit status This error maybe because 2452 have only one timer ??? I buy many msp430g2452 chips, and cheap rf 315mhz from ebay: and now tray to compile virtualwire for my projects :-(
  3. Hi, Thanks. Still compiles only on msp430g2553 not on msp430g2452 My Thread duplicate http://forum.43oh.com/topic/3180-energia-library-virtualwire-110-library-ported-to-msp430energia/
  4. Ty. Virtualwire not work with 2452 brobably becose 1 timer
  5. works on msp430g2553, but on msp430g2452 I get: core.a(TimerSerial.cpp.o): In function `TimerSerial__TxIsr': energia-0101E0009/hardware/msp430/cores/msp430/TimerSerial.cpp:213: multiple definition of `__isr_9' example_Serial_Clock.cpp.o:example_Serial_Clock.cpp:76: first defined here collect2: ld returned 1 exit status
  6. Hi. I finaly get VirtualWire working with msp430g2553, but wen I try compiling on msp430g2453 I get: core.a(TimerSerial.cpp.o): In function `TimerSerial__TxIsr': energia-0101E0009/hardware/msp430/cores/msp430/TimerSerial.cpp:213: multiple definition of `__isr_9' VirtualWire/VirtualWire.cpp.o:VirtualWire.cpp:(.text.Timer_A_int+0x0): first defined here collect2: ld returned 1 exit status How to fix library to compile for 2452 ? VirtualWire link: https://dl.dropbox.com/u/27613779/VirtualWire.tar.gz VirtualWire.tar.gz
  7. A cyclic redundancy check (CRC) is an error-detecting code commonly used in digital networks and storage devices to detect accidental changes to raw data. Blocks of data entering these systems get a short check value attached, based on the remainder of a polynomial division of their contents; on retrieval the calculation is repeated, and corrective action can be taken against presumed data corruption if the check values do not match.
  8. arduino crc code: #include <avr/pgmspace.h> static PROGMEM prog_uint32_t crc_table[16] = { 0x00000000, 0x1db71064, 0x3b6e20c8, 0x26d930ac, 0x76dc4190, 0x6b6b51f4, 0x4db26158, 0x5005713c, 0xedb88320, 0xf00f9344, 0xd6d6a3e8, 0xcb61b38c, 0x9b64c2b0, 0x86d3d2d4, 0xa00ae278, 0xbdbdf21c }; unsigned long crc_update(unsigned long crc, byte data) { byte tbl_idx; tbl_idx = crc ^ (data >> (0 * 4)); crc = pgm_read_dword_near(crc_table + (tbl_idx & 0x0f)) ^ (crc >> 4); tbl_idx = crc ^ (data >> (1 * 4)); crc = pgm_read_dword_near(crc_table + (tbl_idx & 0x0f)) ^ (crc >> 4); return crc; } unsigned long crc_string(char *s) { unsigned long crc = ~0L; while (*s) crc = crc_update(crc, *s++); crc = ~crc; return crc; } void setup() { Serial.begin(9600); Serial.println(crc_string("HELLO"), HEX); } void loop() { } Please help to replace avr/pgmspace.h to energia working method. Sorry for my english
×