Jump to content
43oh

estratos

Members
  • Content Count

    35
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by estratos

  1. I was trying to port all the panStamp NRG project done for Arduino IDE to Energia-1.6.10E18. I initially wanted to port it as a separate hardware under .energia15/packages/hardware/ so I simply copied the project from ./arduino15/packages/panstamp_nrg/hardware/msp430/1.0.7/ to .energia15/packages/energia/hardware/panstamp_nrg/1.0.7/ The problem is that the boards listed in panstamp_nrg/1.0.7/boards.txt are not displayed under Energia->Tools->Board. Is adding new hardware cores disabled for Energia? Adding new variants under msp430/1.0.3/ works perfect. Thanks for
  2. For anyone interested, adding the following piece of code in pins_energia.h enables Serial1: static const uint8_t AUX_UARTRXD = 14; /* Receive Data (RXD) at P2.5 */ static const uint8_t AUX_UARTTXD = 15; /* Transmit Data (TXD) at P2.6 */ #define AUX_UARTRXD_SET_MODE (PORT_SELECTION0 | INPUT) #define AUX_UARTTXD_SET_MODE (PORT_SELECTION0 | OUTPUT) #define AUX_UART_MODULE_OFFSET 0x20 #define SERIAL1_AVAILABLE 1
  3. OK, I'm now seeing that SERIAL1_AVAILABLE is not defined in pins_energia.h for this MCU, probably to avoid conflicting with the SPI port.
  4. Is Serial1 (pins P2.5/UCA1RXD and P2.6/UCA1TXD) available on the MSP430FR2433 from Energia? If yes, is Serial1 already pre-instantiated or do we need to create the object in the sketch from the HardwareSerial class? Thanks!
  5. Thanks Jazz, nice board. That TSSOP package is perfect even for manual assembly.
  6. Thanks Fmilburn. The MSP430G2955 is a very good option as well. Did you notice any problem on any of the peripherals ? The variants + boards.txt approach is very simple but perfect if it works. I remember having had to add some specific core code for the CC430F5137 when I created the panStamp NRG project. Thanks Rei. Is this an ongoing project? Is there any list of third party boards (json files) supported by Energia as with the Arduino project? https://github.com/arduino/arduino/wiki/unofficial-list-of-3rd-party-boards-support-urls Regards.
  7. Dear colleagues, It's been a while since I used Energia and MSP's (other than my loved CC430's) to develop a project so I've just installed the latest version of the IDE and updated from Boards->Manager. I was a bit surprised to see that the list of supported devices is still quite short. What is people doing when developing for platforms not appearing in the list? Are they creating their own board cores? Do they fork from similar boards? My project is quite simple and could probably be solved with a bare MSP430F2553 but I wanted to stay a bit more conservative so I was looking in
  8. Sorry to pump this thread up again but I found this json file: http://www.energia.nu/packages/package_index.json And wonder whether this file can be used from the Arduino IDE to install the Energia cores. If yes, are the cores up-to-date? Thanks!
  9. I found that commenting Clock_start() out and setting clkParams.startFlag = TRUE does make the clock periodically call the user function: #include <ti/sysbios/knl/Clock.h> #include <ti/sysbios/BIOS.h> Clock_Params clkParams; Clock_Struct clkStruct; Clock_Handle clkHandle; void clkFxn(UArg arg0) { digitalWrite(RED_LED, !digitalRead(RED_LED)); } void setup() { pinMode(RED_LED, OUTPUT); digitalWrite(RED_LED, HIGH); Clock_Params_init(&clkParams); clkParams.period = 5000000/Clock_tickPeriod; clkParams.startFlag = TRUE; Clock_construct(&clkStruct, (Cloc
  10. Hi Rei, The compiler complained about some lacking .h resources for the MSP432 but I was building for the CC1310 in fact. Yes, I've posted the question in the TI forum but they are suggesting that probably Energia was overwriting some of the functions. I'm now going to open an issue on GitHub. Thanks again Rei for your time, Daniel.
  11. Hi Rei, I was never able to try with Galaxia library due to some compiling problems. In any case, I've verified that you are following the same strategy as me to drive the Clock function. First you fill clkParams, then create or construct the clock object and finally start the clock. The only difference is that you are directly entering msec into clkParams.period and ClockTimeOut_ms. This is weird in fact since I've verified that ClockTimeOut needs to be specified in microseconds/Clock_tickPeriod. What happens after running clock_start() is that the callback function is called after C
  12. I'm trying to test the clock functionality available on TIRTOS for the CC1310 SOC from Energia but I'm finding difficulties to make the clock trigger periodically (every 5 seconds in the example). This is what I'm doing so far: #include <ti/sysbios/knl/Clock.h> #include <ti/sysbios/BIOS.h> Clock_Params clkParams; Clock_Struct clkStruct; Clock_Handle clkHandle; Clock_Params_init(&clkParams); clkParams.period = 5000000/Clock_tickPeriod; clkParams.startFlag = FALSE; /* Construct a periodic Clock Instance */ Clock_construct(&clkStruct, (Clock_FuncPtr)clkFxn, 5000
  13. Can we ask Energia to include an external ino file (located in an external folder) in the ino2cpp build process? This would be like using an external library with an ino file inside. This would be a on time change so editing platform.txt might be the perfect solution. Thanks!
  14. Nope, I didn't. Is this the library being used by Energia? Do you know whether the task management is available anywhere in the Energia code? I've not been able to find any rtosSetup function in the Energia project. Thanks!
  15. I generally like the way the Energia team has integrated TI-RTOS with the traditional setup-loop structure and how new tasks are automatically added with every new setup-loop duple. However, I'd like to manage the radio of the CC1310 from a separate task, hidden from loop(). Task_construct should be the way to do this but calling this function seems to be halting the MCU somewhere in the Energia stack. I guess task management is something only allowed to the Energia stack but I wonder whether there is still a way for us to create and run new tasks apart from the ones automatically generated by
  16. Hi @Mention, You're right, starting Energia as superuser solves the problem. Any idea why?
  17. Running my first tests on my new MSP432 Launchpad. However I'm getting this error when trying to flash the board from Energia 18 under Ubuntu 16.04: Sketch uses 23,848 bytes (9%) of program storage space. Maximum is 262,144 bytes. /home/daniel/applications/energia-1.6.10E18/hardware/tools/DSLite/DebugServer/bin/DSLite load -c /home/daniel/applications/energia-1.6.10E18/hardware/tools/DSLite/MSP_EXP432P401R.ccxml -f /tmp/build121c3caa5b27c6be2f7efa34131b78ee.tmp/Blink.ino.elf Failed: Operation was aborted DSLite version 6.2.1.1595 Configuring Debugger (may take a few minutes on first launch)
  18. Hi guys, The install process provided by Robert is in fact the recommended one for new third-party boards. This process ends by installing everything in the $HOME/.arduino15 folder. Robert, What would be the effects of your pull request not being finally merged into the main Arduino branch?
  19. Energia 18 is finally supporting the new boards and libraries manager provided by the Arduino IDE. My question is: is there a URL pointing to the necessary JSON file to install the Energia cores on the Arduino IDE? Once Energia is ready to comply with the 1.6.x IDE architecture introduced by Arduino I don't see any reason to limit the use of the Energia cores and libraries to a single IDE. Thanks in advance for your responses.
  20. Hi @@jpnorair and @@spirilis, We are also behind this SOC. We were in fact looking for a Cortex-Mx solution for the new generation of panStamps so TI's announcement is quite timely. As @@spirilis says, we'd rather go with an integration on Arduino 1.6. Unlike Energia, Arduino 1.6 isolates every architecture and platform from the rest, giving you full freedom to maintain your own cores and libraries. Moreover, Arduino 1.6 allows creating custom menus and handle multiple compilers and bootloaders without having to touch a single line of Java code. On the downside, It's almost impossible
  21. Dear colleagues, I'm more than happy to announce the release of panStamp NRG, our new Wireless ISM (868/915 MHz) module based on the CC430F5137 MCU and programmable from the Arduino 1.5 IDE. panStamp NRG is pin, radio and software compatible with our classic AVR modules but entirely relies on a Texas Instruments CC430F5137 MCU instead of our old Atmega + CC1101 approach. As result, we are getting a more robust module providing more features, more speed and consuming less power. Wiki page Commercial website Webstore panStamp NRG can be programmed serially from the Arduino
  22. Sorry to join this conversation so late. Have you taken a look at what is being done in the panstamp branch? Most of the work is included in the panstamp library since this gives us more control and lets us release our own updates on top of the latest official release of Energia. Once everything is tested and validated, we'll try to move the RF core functions to Energia's core folder. You'll find that all the RF and low-power features are already covered by the library so you can take whatever you need from there. RTC is also driven from the library as an independent class but T1A
  23. Roadrunner, I think that loop() and LPM are perfectly compatible. For example, our panStamps are put into LPM from loop() as follows: void loop() { // Do something like sending wireless packets... panstamp.rtc.sleep(10); // Enter LPM3 (2uA) and stay there for 10 seconds } Of course, we could enter LPM4 instead and wait for any binary input event, etc.
  24. I personally think that managing LPM at a high level from energia will be a difficult task. My CC430's are now waking from LPM3 based on RTC counter events but I'd also like the MCU to wake up on given date/times, pin events or even RF receptions. Many different possibilities with many different MCU's. In any case, entering LPM is quite simple so I'd avoid adding more complexities to Energia. On the other hand, I'd expect a way to restart the WDT after exiting from LPM. This has recently caused me some nightmares since I tried to do a delay() when the WDT was previously disabled before ent
×
×
  • Create New...