Jump to content

estratos

Members
  • Content count

    34
  • Joined

  • Last visited

  • Days Won

    2

estratos last won the day on June 18

estratos had the most liked content!

About estratos

  • Rank
    Advanced Member

Contact Methods

  • Website URL
    http://www.panstamp.com

Profile Information

  • Gender
    Not Telling
  • Location
    Badajoz (Spain)

Recent Profile Visitors

274 profile views
  1. estratos

    Serial1 on the MSP430FR2433

    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
  2. estratos

    Serial1 on the MSP430FR2433

    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.
  3. estratos

    Serial1 on the MSP430FR2433

    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!
  4. estratos

    Supported MSP430's

    Thanks Jazz, nice board. That TSSOP package is perfect even for manual assembly.
  5. estratos

    Supported MSP430's

    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.
  6. estratos

    Supported MSP430's

    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 into more powerful options, something like the MSP430G2755 for example. Thanks guys for your feedback, Daniel
  7. estratos

    JSON file for installation on the Arduino IDE?

    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!
  8. estratos

    Energia's Clock functionality for CC1310

    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, (Clock_FuncPtr)clkFxn, 5000000/Clock_tickPeriod, &clkParams); //Clock_start(clkHandle); } void loop() { }
  9. estratos

    Energia's Clock functionality for CC1310

    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.
  10. estratos

    Energia's Clock functionality for CC1310

    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 ClockTimeOut but nothing else. It's like clkParams.period takes no effect at all. Thanks!
  11. 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, 5000000/Clock_tickPeriod, &clkParams); clkHandle = Clock_handle(&clkStruct); Clock_setTimeout(clkHandle, 5000000 / Clock_tickPeriod); Clock_start(clkHandle); I wonder whether Energia is overwriting Clock in some way. Thanks for your ideas, Daniel.
  12. estratos

    Link external ino file

    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!
  13. estratos

    Task_construct not allowed by Energia?

    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!
  14. 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 Energia. Thanks for your time, Daniel.
×