Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


calinp last won the day on February 22 2013

calinp had the most liked content!

About calinp

  • Rank
    Advanced Member
  • Birthday 03/25/1980

Profile Information

  • Gender
  • Location
    Bucharest, RO

Recent Profile Visitors

1,934 profile views
  1. Before making any changes to the library, check last post in this thread about fatfs library: http://forum.stellarisiti.com/topic/442-energia-library-stellaris-launchpad-fatfs-energia-library/page-2#entry5567 It looks like SPI module 0 is correctly initialized (and functional) on Energia 11.
  2. Hi bkb, I think this error is caused by these changes in the SPI library :https://github.com/energia/Energia/commit/4b5ebc4370afd426a41dfe3cc6bbaafbeb764f04 Try to edit fatfs.cpp at line 151 to replace SPI.begin(9); with SPI.begin(); I still use ENERGIA 0101E0009 but next year I will try this lib on ENERGIA 0101E00011 Calin
  3. For writing function to work, the file must be created in advance with a size >0. This library can not resize, delete files or change their attributes. For lseek to work you shoud keep in mind that writing with petit fatfs can start only at the begining of a sector, so the pointer shoud go to the next sector in case data needs to be written again. Let's say you write 150 bytes in a file and close it. when the file is opened again for write, lseek shoud have 512 as argument. If one wants to write a single byte and uses lseek(151), then writing will start at the beginning of the same
  4. Check these threads: http://forum.stellarisiti.com/topic/442-energia-library-stellaris-launchpad-fatfs-energia-library/ http://forum.stellarisiti.com/topic/455-energia-library-petit-fatfs-sd-card-library/ In Stellarisware the path to the FatFs library is \StellarisWare\third_party\fatfs and the example is located in \StellarisWare\boards\ek-lm4f232\sd_card Calin
  5. Hi, there are 2 sd libraries for Energia in the dedicated subforum( PetitFatFs and FatFs). You can also find an example of implementing the FatFs library on LM4F in Stellerisware ( or Tivaware)
  6. Hi russcky, The Petit FatFS library does not support multiple files open. You can find more information on http://elm-chan.org/fsw/ff/00index_p.html . Searching with lseek works, but is very slow to do this multiple times. This library supports a forwarding function that I did not implement (check the examples from the link for an implementation). Calin
  7. Hi, In Energia the clock is set to 80MHz in wiring.c file, exactly as you did. Calin
  8. For windows you can use the command described below: http://technet.microsoft.com/en-us/library/cc788058.aspx The file you are writing to, must exist on the card and be big enough for your needs. Calin
  9. New release available ! Check http://energia.nu/
  10. Hi volodink, For that speed you have to use another microcontroller that supports "Four-Bit SD Bus Mode" (https://en.wikipedia.org/wiki/Secure_Digital#Technical_details). Regards, Calin
  11. Hi, Actually Chip select pin is on Port A, Pin 3 - "#define SDC_SSI_FSS GPIO_PIN_3". I think I can try your build with Chip Select on pin 6. Calin At the first run the SD support is working. I can succesfully list the files on the SD Card ! Next i will try to create and edit some files. The card is connected as I posted earlier, with CS on Port A, Pin 3. Thanks!
  12. Hi, I think that in rpm_fun you should get timestamps to compute the time between sparks instead of counting pulses. Anither ideea would be to use pulseIn to get the duration ( measure both high and low pulses). This method will do measurements on differen pulses, but as the engine is a slow system compared to the microcontroller, this should not be a problem. Calin
  13. Hi Igor, I can confirm that you can upload programs to the /wo file system and run them from there. As i understood from the documentation, the /romfs can be used to include external programs/modules at compile time. For me, the SD card would enable datalogging I have a SD card connected on SPI0 on default pins on portA: #define SDC_SSI_CLK GPIO_PIN_2 #define SDC_SSI_TX GPIO_PIN_5 #define SDC_SSI_RX GPIO_PIN_4 #define SDC_SSI_FSS GPIO_PIN_3 About the ADC, there are two converter modules that share 12analog input channels. I think with eLua I can access only analog channels 0 and 1
  14. Hi Igor, I have successfully flashed the eLua image on my Stellaris Launchpad and it seems to work as expected. I could run some sample applications with minor changes without issues. I have some questions: - how much ram is available in eLua on Stellaris? - will you support an sdcard in the future? - why only 2 ADCs? Thanks, Calin
  • Create New...