Jump to content


  • Content Count

  • Joined

  • Last visited

  1. I don't know the reason. But you can use Serial1 on PORTB with setting pins like this, void setup() { Serial1.setPins(UART1_PORTB); Serial1.begin(115200); }
  2. Quantum Leaps have made good tutorials for Tiva/Stellaris Launchpad, 'Embedded Systems Programming Course'. These might be helpful.
  3. "this code don't work" means compile error, or unexpected behavior?
  4. Which toolchain do you use? I'm using the gcc arm (https://launchpad.net/gcc-arm-embedded) and I don't meet that problem. Here is my code. #include <Energia.h> #include <stdlib.h> #include <string.h> #define DELAYMS(S) delay(S - (millis() % S)) int count = 0; typedef struct { int age; int sex; char name[30]; char address[60]; } Person; void setup(void) { Serial.begin(9600); } void loop(void) { Serial.print("count = "); Serial.println(count++); char* buffer = (char*)calloc(512, sizeof(char)); if (buffer) { strcpy(buffer
  5. I am using Energia as a library like the libmaple with the Eclipse IDE. The combination of libenergia, Eclipse (with Zylin Embedded debug plugin) and OpenOCD enables you to debug the LM4F120XL board. You can refer and modify my Stellaris build scripts to your taste. https://github.com/monpetit/libenergia
  6. You need the CMSIS DSP library compiled with gcc, that is "libarm_cortexM4lf_math.a". Then... 1. make a directory for the CMSIS DSP libraries to include your energia programs. For example, cd ~/Energia/libraries mkdir arm_math 2. put the CMSIS DSP header files to library directory. header files: core_cm4.h, core_cm4_simd.h, core_cmFunc.h, core_cmInstr.h, arm_common_tables.h, arm_const_structs.h, arm_math.h 3. put library file to suitable path. cp libarm_cortexM4lf_math.a energia-0101E0009/hardware/tools/lm4f/arm-none-eabi/lib/thumb/armv7e-m/fpu/fpv4-sp-d16 4.
  7. I could solve this problem (misbehaving atoi(), strcmp() ...) with changing compiler. I changed lm4f tools from yagarto to gcc-arm (https://launchpad.net/gcc-arm-embedded). If you use Windows, you can also use atmel's arm compiler in atmel studio 6.
  • Create New...