Jump to content

StefanSch

Members
  • Content Count

    41
  • Joined

  • Last visited

  • Days Won

    3

StefanSch last won the day on February 3

StefanSch had the most liked content!

1 Follower

About StefanSch

  • Rank
    Advanced Member

Recent Profile Visitors

558 profile views
  1. The two proposals are basically the same, where mine is just the already compiled and packed solution of the repository mentioned in the other post. The elf compiler tool chain has been tested for quite a while but it is still beta phase. There are plans to officially release the elf compiler as well but not a fixed time schedule. The good thing: - both tool chains are compatible where the elf compiler does support newer C standard and also the upper memory regions. - you can use both in parallel you just need to select in the board manager the board and the compiler tool chain. But: - the elf compiler might generate some more code due to the support of the upper memory with the extended addressing required for that. And any feedback is welcome....
  2. The current compiler in Energia does not support instructions addressing the upper memory space - so it will not work. If you like, you can use a beta implementation using the latest released GCC compiler for the MSP430 and test it on this project. Just add this path in the file | Preferences | Additional Board manager section: http://s3.amazonaws.com/energiaUS/packages/package_msp430_elf_GCC_index.json open the board manager and install the latest version of the Energia MSP430 boards (elf-GCC) Any feedback on this is welcome!
  3. The main issue when compiling this libraries is that it uses C99 standard where as the used compiler for the MSP430 Energia support is quite old not supporting this language version. If you like, you can use a beta implementation using the latest released GCC compiler for the MSP430 and test it on this project. Testing one of the demos did compile without issues Just add this path in the file | Preferences | Additional Board manager section: http://s3.amazonaws.com/energiaUS/packages/package_msp430_elf_GCC_index.json open the board manager and install the latest version of the Energia MSP430 boards (elf-GCC) Any feedback on this is welcome!
  4. If you prefer the GCC compiler just open the project properties (ALT + Enter) and select under CCS General | Compiler Version the GNU Compiler
  5. This line in your code for sure gives an issue. If this already solve the problem - i have not tested // Initialize UART and set RX interrupt enable UCA1CTLW0 &= UCSWRST; This will clear all bits except UCSWRST. You would like to clear the UCSWRST bit but then you need to write UCA1CTLW0 &= ~UCSWRST;
  6. By providing that kind of information nobody will be able to help. So at least add: - type of SD card - connection of sd card - observed error - steps you have tried already - references to the libraries used
  7. see the same now - i do not know why the downgrade did not properly set the path for the downloader Just can suggest a direct hack now: Got to your Energia install folder and edit .... \hardware\energia\msp430\platform.txt replace: tools.dslite.path={runtime.tools.dslite-9.2.0.1793-e1.path} with: tools.dslite.path={runtime.tools.dslite-9.3.0.1863.path} If it can not find the dslilte again then also install the TIVAC package from the board manager - that is also using this dslite version
  8. Hi, it looks like that during the packaging of the last release a few files got missing. If you open the Board manager and switch the version for the MSP430 back to 1.0.6 it should work again.
  9. yes, void delayMicroseconds(unsigned int us) 🙂
  10. __even_in_range is an instrinsic function added for the MSP430 which allows the compiler to generate optimized code using the TAIV register. As it is just used to generate optimized code you can also just leave it away. So use that line: switch(TA0IV)
  11. To just get the latest version you can use the development approach. For this first https://github.com/energia/tivac-core and select Clone or Download and Download ZIP Then locate your local git folder where your projects are stored. In Windows this is in your My Document folder and generate a hardware and Energia folder and unzip the downloaded file into this. So you should get: My Domentents - Energia - hardware - Energia - tivac-core-master => content of downloaded zip file Now start Energia again. You should now have two TIVAC in your board selection / just need to find the correct one.
  12. thanks for reporting this issue. I could commit a fix for this - see here https://github.com/energia/msp430-lg-core/pull/126 This will go into the next release but feel free to grab it an fix it locally. There are just 3 line missing in energia-1.8.10E23 .... \hardware\energia\msp430\libraries\Wire\utility\twi.c
  13. It looks like that this library was written on Arduino only and with some special focus on features provided there. So to get it working in a first step you can: add this line into UserInterface.cpp: #include <atof.h> This will solve your initial error. The C-Compiler in Arduino does automatically include the atof which is nice for the user but makes issues when porting. Next you may run into an issue that the header file util/delay.h can not be found. Delay is part of Arduino and Energia so does not need to be included. To solve this just add an folder util and and empty file delay.h into the LTSketchbook\libraries\Linduino\ folder. Now it gets complicated: this library uses some hardware driver for I2C and SPI - note sure why (did not dig deeper into the lib and hardware) but maybe they want to use a second SPI and I2C. This are hardware specific driver and you need to port them or replace them. As template and examples you might use the existing SPI and I2C(Wire) drivers.
  14. try it with this line: TA0CTL=0b0000001011010000; If it works i will explain why 😊
  15. Yes, this is the right file (- as the energia-1.8.10E23 did not got a update on the MSP430 tool chain - then it would be in c:\Users\USERNAME\AppData\Local\Energia15\packages\energia\hardware\msp430 - just for completeness) Yes, update both lines
×
×
  • Create New...