Jump to content
43oh

calinp

Members
  • Content Count

    46
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by calinp

  1. Hi Grant, Try to add a pull-up resitor of 1K to MISO pin. The original driver enables the weak pull-up for MISO, but in the the Energia SPI lib it is not enabled. You can also try to set the MISO pin with pinMode(MISO, INPUT_PULLUP) before SPI.begin. Regards, Calin
  2. Hi Erni, Try the one posted in Energia libraries. Calin
  3. In diskio.c that was taken from StellarisWare. I think you have to change SSI0 with SSI2 and make sure the GPIO are initialized properly
  4. Hi, Now you can't select a different port for FatFS, but I plan to implement this so existing shields can be used on both Launchpads.
  5. In Energia the ADC and its reference are turned on and off for each conversion. Maybe the settling time (for the reference) is not enough.
  6. Of course. As a starting point you can grab the Stellaris Fatfs lib and adapt the diskio driver from Petit Fatfs (based on Energia SPI library).The Petit lib is more "Arduino style" and it works both on MSP430 and Stellaris Launchpads without any change. I plan to make these changes to the Fatfs lib in the next weeks. Calin
  7. Hello Grant, This lib uses a different port ( SSI0 ) than Petit ( SSI2 ). check the pinout on https://github.com/energia/Energia/wiki/Hardware regards, Calin
  8. I made port for Stellaris http://forum.stellarisiti.com/topic/442-energia-library-stellaris-launchpad-fatfs-energia-library/ . Maybe instead of starting from scratch, use this one and improve it Regards, Calin
  9. Hi Grant, Try to format the cards that are not working with HP USB Disk Storage Format Tool : http://www.softpedia.com/get/System/Hard-Disk-Utils/HP-USB-Disk-Storage-Format-Tool.shtml The write function has some limitations : Cannot create file. Only existing file can be written. Cannot expand file size. Cannot update time stamp of the file. Write operation can start/stop on the sector boundary. Read-only attribute of the file cannot block write operation. See more here: http://elm-chan.org/fsw/ff/pf/write.html The FatFS lib does not have these limitations and provides more functi
  10. I think pins 3 and 4 from ledPin[] conflicts with the serial port. You shoud use other pins like 9, 10, 11.
  11. Hi Grant, Thanks for your feedback. As per Rei Vilo findings, a divider of 2 for SPI clock yields 8 MHz for MSP430 and 4MHz for Stellaris so probably the higher clock is causing issues. I will make the updates to the library so the clock can be adjusted.
  12. Hi Grant, I can think of several issues that you might have: - Arduino I/O is at 5V so all shields that interface to SD cards use some sort of level conversion to 3.3V. It is possible that your shield has resistive dividers and in this case the voltage on Launchpad I/O will be about 2V - The SPI clock setiing in the library is 8MHz and this may be too high for some cards and shields. I will make some changes to the library so the user can set a lower clock. - I updated the file usci_spi.cpp in my SPI library with the one patched by Rei Vilo here (spi_send() function is fixed): https://gi
  13. Hi, Try to change the folder name from "energia-0101E009" to "energia". Maybe this is the problem. Calin
  14. Hello, This is a port of ChaN Petit FatFS SD library targeted to low RAM microcontrollers and offers a minimal FAT implementation, with limited write support. For more details see http://elm-chan.org/fsw/ff/00index_p.html A lot of credits goes to the main contributors to this topic http://forum.43oh.com/topic/1427-petitefs-fatfs-sdcard-usci-code/ Because this library makes use of the SPI library included in Energia it works for both MSP430 and Stellaris launchpads. With MSP430 I noticed some interference with Serial.print so before every call to the fat library I had to add
  15. Hello, This is a port of ChaN Petit FatFS SD library targeted to low RAM microcontrollers and offers a minimal FAT implementation, with limited write support. For more details see http://elm-chan.org/fsw/ff/00index_p.html A lot of credits goes to the main contributors to this topic http://forum.43oh.com/topic/1427-petitefs-fatfs-sdcard-usci-code/ Because this library makes use of the SPI library included in Energia it works for both MSP430 and Stellaris launchpads. With MSP430 I noticed some interference with Serial.print so before every call to the fat library I had to add
  16. This is a port to Energia of the Arduino library from this page: http://pressplay.pbworks.com/w/page/25687375/FatFs The diskio.c driver is from Stellarisware example for lm4f232 with some changes: - use digitalWrite for CS control - use delays instead of timers for timeouts The card must be connected to SSI0 (hardcoded in driver) but CS signal is defined in sketch and can be any pin. I checked the FileWriteToSerial example and it is working with uSD and uSDHC cards (2GB and 8GB). I connected the uSD cards with and adapter to SD using the first method presented here: http://www.43
  17. Hello OzGrant, I reinstalled the library from the attachment I posted and the example ran without problems. Calin
  18. Hello, I ported the CMD library from Freaklabs so it compiles and runs on MSP430g2553 using Energia. Documentation and original code are available at: http://freaklabs.org...CmdArduino.html Unzip in \energia-0101E0008\hardware\msp430\libraries and restart Energia IDE. There is also an example available. Reuploaded CmdEnergia.zip CmdEnergia.zip
  19. Is your temperature reading improved if you connect LM35 to the phisical pin 2 and read it with analogread(A0)? You can supply the sensor with 5V from TP1(USB 5V) and TP3(GND).
  20. For analogread use the analog input number: 6 is the same as A6, but is on pin 14, not 6.
  21. Maybe web archive can help you : http://web.archive.o...sp430/basic.htm
×
×
  • Create New...