Jump to content

Search the Community

Showing results for tags 'memory'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 7 results

  1. Hi, I am currently working on a code in Energia that will allow me to upload and send a binary file wirelessly from a client site to the CC3200. So far, the code has successfully accomplished the following: -the board establishes a Wi-Fi network -commands from a laptop can interact with the board (the Energia Simple Wi-Fi Server example (LED ON/OFF) code was tested to ensure this was working) -a 9 byte binary file is sent through Wi-Fi to the board's volatile memory, saved from volatile memory into an on-baord flash memory file, and confirmed by sending it back to the laptop through a serial connection The code is eventually supposed to receive a larger binary file (we hope around 500 KB) that will represent points on a sinusoidal curve. This file will then be sent to the Audio Booster Pack board to play the audio file. I created a flash file which was opened, and written to through a buffer array containing the binary file contents. This method was successful for a 9 byte file, but I learned that a larger 500 KB file cannot be stored in a buffer array so easily. I think this is because of a lack of RAM space on the board. How can I implement a code in Energia in order save this larger binary file to the flash memory? Is the buffer array approach a good method? Latency isn't really an issue, as long as we can fit the whole file on the board, and then play it after. Thanks, any support is greatly appreciated!
  2. crouzilles

    Program won't fit weirdness

    Hi all, I am new to the forum to MCUs and to energia. I have the TI Launchpad MSP430G2553 with a maximum of 16,384 bytes of available ram as far as I understand. The program below compiles at 3,061 bytes if I use the data type "byte" for my large array, but apparently I am missing 72 bytes of space if I use the data type "int" which if I understand things well is only twice the size of a byte. Can someone explain to me why I get this error? P.S: Some variables are not yet used I know, but they will be int dot = 0; int dash = 1; int empty = -1; int unit = 50; int dot_unit = 1; int dash_unit = 3; int letter_space = 1; int letters_space = 3; int words_space = 7; #define LED RED_LED /* Alphanumeric structure from A-Z and 0-9. Values in the last column correspond to decimal values for each ASCII character. */ byte alpha_num[36][6] = { {0,1,-1,-1,-1,65}, {1,0,0,0,-1,66}, {1,0,1,0,-1,67}, {1,0,0,-1,-1,68}, {0,-1,-1,-1,-1,69}, {0,0,1,0,-1,70}, {1,1,0,-1,-1,71}, {0,0,0,0,-1,72}, {0,0,-1,-1,-1,73}, {0,1,1,1,-1,74}, {1,0,1,-1,-1,75}, {0,1,0,0,-1,76}, {1,1,-1,-1,-1,77}, {1,0,-1,-1,-1,78}, {1,1,1,-1,-1,79}, {0,1,1,0,-1,80}, {1,1,0,1,-1,81}, {0,1,0,-1,-1,82}, {0,0,0,-1,-1,83}, {1,-1,-1,-1,-1,84}, {0,0,1,-1,-1,85}, {0,0,0,1,-1,86}, {0,1,1,-1,-1,87}, {1,0,0,1,-1,88}, {1,0,1,1,-1,89}, {1,1,0,0,-1,90}, {1,1,1,1,1,48}, {0,1,1,1,1,49}, {0,0,1,1,1,50}, {0,0,0,1,1,51}, {0,0,0,0,1,52}, {0,0,0,0,0,53}, {1,0,0,0,0,54}, {1,1,0,0,0,55}, {1,1,1,0,0,56}, {1,1,1,1,0,57} }; void setup() { pinMode(LED, OUTPUT); //Initialize serial and wait for port to open: Serial.begin(9600); // prints title with ending line break Serial.println("Alphanumeric ASCII table"); } void loop() { print_table_values(); } void print_table_values() { digitalWrite(LED, HIGH); for (int i = 0; i < 36; i++) { Serial.print(alpha_num[i][5]); Serial.print(" is: "); Serial.write(alpha_num[i][5]); Serial.println(""); } digitalWrite(LED, LOW); while(true) { continue; } } If I use "int" as the array's data type I get the following error [C:\energia\hardware\tools\msp430\bin\msp430-g++, -c, -Os, -w, -ffunction-sections, -fdata-sections, -mmcu=msp430g2553, -DF_CPU=16000000L, -MMD, -DARDUINO=101, -DENERGIA=17, -IC:\energia\hardware\msp430\cores\msp430, -IC:\energia\hardware\msp430\variants\launchpad, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\morse_ino.cpp, -o, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\morse_ino.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\atof.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\dtostrf.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\itoa.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\random.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\twi.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\twi_sw.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\usci_isr_handler.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\WInterrupts.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\wiring.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\wiring_analog.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\wiring_digital.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\wiring_pulse.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\wiring_shift.c.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\HardwareSerial.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\IPAddress.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\MACAddress.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\main.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\new.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\Print.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\Stream.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\TimerSerial.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\Tone.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\Wire.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\WMath.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-ar, rcs, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\WString.cpp.o] [C:\energia\hardware\tools\msp430\bin\msp430-gcc, -Os, -Wl,-gc-sections,-u,main, -mmcu=msp430g2553, -o, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\morse_ino.cpp.elf, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\morse_ino.cpp.o, C:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp\core.a, -LC:\Users\xavier\AppData\Local\Temp\build7733100553055358358.tmp, -lm] c:/energia/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld.exe: morse_ino.cpp.elf section `.bss' will not fit in region `ram' c:/energia/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld.exe: region `ram' overflowed by 72 bytes collect2: ld returned 1 exit status This does not make sense to me. Regards X
  3. Hi! I tried to connect GPRS Shield from Arduino to msp430g2553 with SoftwareSerial library. But I faced with the problem. When the size of sketch exceeds 5590 bytes, global variables do not work. I just add one variable (global string) and the program stops executed correctly. Here is the code: /* When new serial data arrives, this sketch adds it to a String. When a '!' character is received, the loop prints the string "Hello world!" */ #include <SoftwareSerial.h> SoftwareSerial mySerial(P2_0, P1_5); String inputString = ""; // a string to hold incoming data boolean stringComplete = false; // whether the string is complete String string1 = "Hello "; String string2 = "Just string"; String string3 = "Another string"; //String string4 = "Another string"; // If we uncomment this line, code will not work void setup() { Serial.begin(9600); mySerial.begin(19200); } void loop() { if (stringComplete) //if the incoming character is a '!' { inputString = ""; stringComplete = false; Serial.print(string1); Serial.println("world!"); } } /* SerialEvent occurs whenever a new data comes in the hardware serial RX. This routine is run between each time loop() runs, so using delay inside loop can delay response. Multiple bytes of data may be available. */ void serialEvent() { while (Serial.available()) { char inChar = (char)Serial.read(); inputString += inChar; if (inChar == '!') { stringComplete = true; } } } Somebody knows where is my problem? SoftwareSerialEnergia.ino
  4. Hello all, I have few concepts which I need to clear! Please provide your important experience and knowledge. I keep on reading different controllers with different ratings of flash memory and SRAM. MSP has FRAM. Queries; 1. Usually flash memory is usually much larger than SRAM, because of cheaper price? 2. I know that prog is stored in flash and variables in SRAM. But the variable can be stored in flash also. right? 3. I know that FRAM is faster, less power consuming, longer life than flash.. Only MSP has this FRAM technology right? I know that most of the ARM controllers today have modified Harvard architecture with separate data and instruction cache and separate data and instruction buses. Data and instructions in the same memory. I want to clear some basic concepts. thanks a lot. Vin255
  5. I am using embedXCode+ on a Launchpad MSP430 I am trying to use arduino-menusystem: https://github.com/jonblack/arduino-menusystem. The MenuSystem.cpp uses realloc(). While this works fine if the board is Arduino Uno, I get a "not declared in this scope" when building for the Launchpad. Is there a better dynamic memory allocation routine to use when writing for the Arduino IDE? OR advice on how to fix this? (thank you)
  6. HI, i'm using MSP430FR5969. i would like to better understand how its 64KB memory is organized. From it's datasheet (http://www.ti.com/lit/ds/symlink/msp430fr5969.pdf - pg 23) : Memory (FRAM) Total Size 64KB interrupt vectors 00FFFFh
  7. Gareeeesh

    Memory issue with G2553

    Hi people! Basically I'm writing a function to control a 16x16 RGB LED matrix with serial communication. The function I'm writing requires an array of size 16x16 ( hueBuffer[16][16] ) and of type 'short' since the max value of hue is 359. However, I keep getting an error: "program will not fit into available memory. run placement with alignment fails for section "DATA_GROUP" size 0x23d" but there is plenty of memory on the G2553. I need the values of hue to go up to 360 so i cant use unsigned chars. Anyone know of a solution to this problem? I'll post the code if you want. Cheers!
×