Jump to content

Rei Vilo

Members
  • Content count

    1,769
  • Joined

  • Last visited

  • Days Won

    108

Rei Vilo last won the day on January 9

Rei Vilo had the most liked content!

1 Follower

About Rei Vilo

  • Rank
    Level 5

Contact Methods

  • Website URL
    http://embeddedcomputing.weebly.com

Profile Information

  • Gender
    Male
  • Location
    France
  • Interests
    Robots with fischertechnik — Embedded systems with embedXcode
  • Github
    https://github.com/rei-vilo/

Recent Profile Visitors

1,342 profile views
  1. Compute float number in msp430g2

    Try the Fixed Point Math Library for MSP from http://www.ti.com/tool/MSP-IQMATHLIB.
  2. Energia Hybrid Code

    For production, I'm using Energia for rapid prototyping. If some parts need to go faster, then I use the DriverLib on ROM, and eventually the registers for further optimisation (I get useful help from this very forum on how to use HWREG). However, the more optimised the code is for speed , the less portable the code is across MCUs. As a matter of facts, most prototypes are "good enough" even for final product. The killer feature of C++ (and thus Energia) is OOP, making maintenance really easy. That's how I've built the LCD_screen Library Suite for the screens supported by the LaunchPads. Adding a new screen only requires defining a couple of functions. Now, there is no secret: different programming methods just move the difficulty from one part to another. It is always interesting to compare different solutions, so students can weight the pros and the cons of each of them (e.g. One Example, Three Environments), and discover that previous analysis is key, whatever the solution. I did the same with RTOS: I completed the Real-Time Bluetooth Networks: Shape the World — MOOC edX UTAustinX UT.RTBN.12.01x MOOC and built the kernel of an RTOS from scratch. Now, I'm very happy to use TI-RTOS or Energia MT directly, with the ease of RTOS elements packaged as objects with the Galaxia library for Energia MT.
  3. Energia Hybrid Code

    I completed the MOOC Embedded Systems: Shape The World — MOOC edX UTAustinX UT.6.02x and learnt how to define an analog input "the real way". Real way // Declare analog input PE2/A1 SYSCTL_RCGC2_R |= 0x00000010; GPIO_PORTE_DIR_R &= ~0b00000100; GPIO_PORTE_AFSEL_R |= 0b00000100; GPIO_PORTE_DEN_R &= ~ 0b00000100; GPIO_PORTE_AMSEL_R |= 0b00000100; SYSCTL_RCGC0_R |= 0x00010000; SYSCTL_RCGC0_R &= ~0x00000300; ADC0_SSPRI_R = 0x0123; ADC0_ACTSS_R &= ~0x0008; ADC0_EMUX_R &= ~0xf000; ADC0_SSMUX3_R &= ~0x000f; ADC0_SSMUX3_R += 1; ADC0_SSCTL3_R = 0x0006; ADC0_ACTSS_R |= 0x0008; // Read value form PE2/A1 ADC0_PSSI_R = 0x0008; while ((ADC0_RIS_R & 0x08) == 0); result = ADC0_SSFIFO3_R & 0xfff; ADC0_ISC_R = 0x0008; Energia way pinMode(A1, INPUT); uint16_t value = analogRead(A1); It is interesting the first time, but laziness made me use the Energia way the times after. Remember laziness is how developers survive :).
  4. Energia Source Code

    Best way is to look at the GitHub repository.
  5. Hello

    Both CCS Cloud and CCS standard support Energia.
  6. See https://github.com/energia/cc3200-core/tree/master/libraries/Kentec_35_SPI and read the warning below. Please refrain from posting AND sending a PM for the same topic. Please refer to
  7. This is an example of the difficulty of a mixed conversation between private messages and forum. The number of pins is limited, so go for changing the pins numbers on the sketch. Remember ADC in the CC320 is limited to 1.5V or so.
  8. There is no solution but the trial and error approach. Just ensure the pins provide hardware support for RX / TX.
  9. Please refer to Blink fails to compile with V 1.0.2 of the core libraries #18 and itoa.h Issue with CC3200 Examples #19 for a solution.
  10. simple asm code example in energia?

    Because Energia relies on Arduino, check assembler with Arduino. For example: https://ucexperiment.wordpress.com/2016/03/04/arduino-inline-assembly-tutorial-1/ Obviously, opcodes should be MSP430, not AVR.
  11. The RTOS elements implemented by Energia MT vary according to the distribution. Some elements are no longer supported, other elements disappear then come back. Please refer to Regression Tests Against MSP432 Red #3 issue, note (3) and the Warning More broadly, How-To: Porting Libraries, Some Misconceptions about Libraries and Posting a Library for Energia may help you.
  12. Galaxia doesn't support the MSP430, only the boards supported by Energia MT. The RTOS elements implemented by Energia MT vary according to the distribution. Some elements are no longer supported, other elements disappear then come back. Please refer to Regression Tests Against MSP432 Red #3 issue, note (3) and the Warning More broadly, How-To: Porting Libraries, Some Misconceptions about Libraries and Posting a Library for Energia may help you.
  13. MSP-EXP432P111

    The LCD library presently works for the MSP430FR4133 and MPS430FR6989 but shouldn't be difficult to port to the MSP432P111. The LCD library is called LCD_Launchpad and included in the Energia 18 distribution for MSP430 boards.
  14. You're welcome! On Energia MT, give the Galaxia library a try. It exposes the RTOS elements as easy-to-use objects, including Event Semaphore Mailbox Timer Clock The SWIs and Trigger SWIs are no longer included in Energia MT.
×