Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


phenyl last won the day on May 5 2016

phenyl had the most liked content!

About phenyl

  • Rank
    Level 1

Recent Profile Visitors

899 profile views
  1. Hi I just downloaded energia from energia.nu and tried to start it. It complains about the bundled Java Runtime being corrupted... I also tried to change the folder name to ti\energia, but to no avail. I'd be grateful for any help. Screenshot attached.
  2. Hi I am measuring two strain gauges with the first two differential ADC input channels on a MSP430i2041. I would like to measure the temperature of my DUT on one channel. All the app notes I found (SBAA275, SBAA330A, others ) suggest using a current source and then a reference resistor over the positive and negative reference inputs of the ADC. As I use the internal reference of the MSP430 for measuring the strain gauges, I can't exactly go and force another voltage on the reference. As a "cheap" possibility, would it be possible to connect VCC--[10k]--[PT1000]--[10k]--GND where [10k] are low tempco resistors and attach ADCIN4 and ADCIN5 across the PT1000 or is there another solution short of going for a digital temperature sensor? In my proof of concept I am using a DS18B20 but in its highest resolution setting I have to wait for the conversion result for about a second, which limits whatever else I can do on the MCU Thank you very much for any hints. Pio
  3. If I remember previous discussion in this forum correctly, spaces are not allowed in Energia-related paths.
  4. Something is out: http://www.ti.com/product/msp432e401y http://www.ti.com/product/msp432e411y They don't have exactly the expected part numbers, though. Both have 1024 kB Flash and 256 kB RAM and 120 MHz clock. Launchpad: http://www.ti.com/tool/msp-exp432e401y Strangely the 432P4111 launchpad http://www.ti.com/tool/MSP-EXP432P4111 seems tp be active now, too but the MCU is not available?
  5. Hi @dubnet Thank you very much for your answer, I think this issue was for ccs. With ccs6 there was a slow TI GraphicsLib and they sped it up significantly for ccs v7 but I am not sure that one can just drop that into energia and be done with it. I did run the CCSv7 Demo on the MSP432 and it was FAST. (I am not ready for jumping over to the world of direct register manipulation tho... Energia is a good compromise for me in order to get ahead with my hobby projects...)
  6. Hi All First, I would like to thank @Rei Vilo for providing the Library for the Kentec (BOOSTXL-k350qvg) library with Energia. I copied the code out of https://www.youtube.com/watch?v=XyeUpk6P4kA (as I didn't find the powerpoint or pdf) and got it to work with an MSP430F5529 launchpad. (Energia 18, Windows as the Mac version doesn't work atm). Then I compiled the same code on a MSP432P401R launchpad and it runs a lot slower than on the F5529 (I assume this is a known issue, due to slow SPI speed ( https://github.com/energia/msp432-core/issues/27 ) but also doesn't look the same, the fonts are "skinnier on the MSP432. This discrepancy, I cannot explain. Another question: If I want to write a changing variable, in this case simply the x-coordinate of the touch to the screen, how do I locally clear the screen without redrawing everything (or if I want to make a bar graph that represents eg a changing value of a sensor? Do I always draw a black rectangle, then the bar/text etc? or is there a simpler way that is not immediately obvious to me now? Next step: I have to learn more about state machines to switch screens (settings), do stuff there, come back to main without the program getting into badly readable territory. Thank you very much for your help. //First steps with the Kentec Display #include "SPI.h" #include "Screen_K35_SPI.h" Screen_K35_SPI myScreen; uint16_t colours[6]; uint16_t x; uint16_t y; uint16_t z; uint8_t initFlag; void setup() { Serial.begin(9600); Serial.println(); Serial.println("hello"); Serial.println(); pinMode(RED_LED, OUTPUT); myScreen.begin(); myScreen.clear(); colours[0] = myScreen.calculateColour(255, 0, 0); colours[1] = myScreen.calculateColour(0, 255, 0); colours[2] = myScreen.calculateColour(0, 0, 255); colours[3] = myScreen.calculateColour(255, 255, 255); colours[4] = myScreen.calculateColour(255, 255, 0); colours[5] = myScreen.calculateColour(0, 0, 0); x = 0; y = 0; z = 0; myScreen.setPenSolid(true); myScreen.setFontSolid(false); myScreen.setFontSize(2); initFlag = 1; } void loop() { if (initFlag) { drawHomeScreen(); initFlag = 0; } if (myScreen.isTouch() > 0) { myScreen.getTouch(x, y, z); myScreen.gText(10, 10, btoa(x, 8), colours[3]); Serial.print(x); Serial.print(" "); Serial.print(y); Serial.print(" "); Serial.println(z); } if (z > 100) { if ((x < 160 && x > 0) && (y < 240 && y > 100)) { digitalWrite(RED_LED, HIGH); } else if ((x < 320 && x > 160) && (y > 100 && y < 240)) { digitalWrite(RED_LED, LOW); } else if ((x < 320 && x > 160) && (y > 0 && y < 100)) { drawSettingsScreen(); } } } void drawHomeScreen() { myScreen.clear(); myScreen.gText(30, 50, "TOUCH LCD DEMO", colours[4]); myScreen.rectangle(0, 100, 160, 239, colours[1]); myScreen.gText(50, 180, "ON", colours[0]); myScreen.rectangle(160, 100, 319, 239, colours[0]); myScreen.gText(235, 180, "OFF", colours[1]); myScreen.rectangle(160, 0, 319, 100, colours[2]); myScreen.gText(180, 50, "SETTINGS", colours[3]); } void drawSettingsScreen() { myScreen.clear(); myScreen.gText(10, 10, "TOUCH LCD DEMO", colours[0]); myScreen.gText(10, 30, "TOUCH LCD DEMO", colours[1]); myScreen.gText(10, 50, "TOUCH LCD DEMO", colours[2]); myScreen.gText(10, 70, "TOUCH LCD DEMO", colours[3]); myScreen.gText(10, 90, "TOUCH LCD DEMO", colours[4]); }
  7. Here's a gui composer demo: https://dev.ti.com/gallery/view/3491167/MSP-EXP432P4111_OOB/ which links to http://www.ti.com/tool/msp-exp432p4111 ( Sorry! We couldn't find your page) atm
  8. Thank you very much, I opened an issue and will follow it and provide any info needed. https://github.com/energia/Energia/issues/983
  9. Hi, I updated to OS X High sierra, and installed a fresh copy of energia 18 from energia.nu and replaced the arduino-builder with the one from above post, but unfortunately, blink fails to compile (board chosen F5529) /Applications/Energia.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware "/Applications/Energia.app/Contents/Java/hardware" -hardware "/Users/baettig/Library/Energia15/packages" -tools "/Applications/Energia.app/Contents/Java/tools-builder" -tools "/Applications/Energia.app/Contents/Java/hardware/tools/msp430" -tools "/Users/baettig/Library/Energia15/packages" -built-in-libraries "/Applications/Energia.app/Contents/Java/libraries" -libraries "/Users/baettig/Documents/Energia/libraries" -fqbn=energia:msp430:MSP-EXP430F5529LP -ide-version=10610 -build-path "/var/folders/67/4hcf1n2n6k19d5kvvbztt9qh0000gn/T/builded0b72ce2b4f77512eec99a6713fe17d.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/Applications/Energia.app/Contents/Java/examples/01.Basics/Blink/Blink.ino" arduino-builder returned 139 Error compiling for board MSP-EXP430F5529LP. I would be happy to provide more details in order to get energia running again. BTW is there an ETA for a new release (19)? Thank you very much for your help Edit: sorry for posting under tiva, but this was the most pertinent thread I found and I didn't think it important enough to open a new one with the same content under msp430...
  10. Hi, is that also possible with SPI in case there are several SPI interfaces? (One interface at a time means one per sketch or the first interface, then the second, then the first again in the same sketch?) Thank you very much
  11. Well, I tried ordering two of the boards and a couple small tx modules. Luckily they sent me a mail asking if I accepted their shipping charge of 76.81 USD. (for a total of 31 USD of components) Which feels outrageous and so I politely declined... I chose "cheapest international shipping method", so for living out of the US it's simply out of any range of justification for a hobby purchase.
  12. @@greeeg , iirc they do stencils, too. But as you say, depending on use case and shipping specifics the one or the other may be cheaper. @@zeke, not sure if you got my PM? Tapatalk was hiccupping yesterday night. Edit: I should read all posts in a thread... Sent from my Nexus 6P using Tapatalk
  13. Yeah it is Sent from my Nexus 6P using Tapatalk
  14. Hi @@zeke in my (limited) opinion, their work is good. Here's a board (the gerbers came from an eevblog member,[1] not mine) I had made privately: I had some made, the one I soldered the components on works perfectly. Of the ones from work I don't have any pictures obviously, they were only for a small project with a few components. The finish there was ENIG, which also turned out really well. [1] http://www.eevblog.com/forum/testgear/point-me-to-latest-info-on-dyi-dsoxlan/msg823148/#msg823148
  15. Hi @@artium, thank you very much (and also adafruit ) I ran the benchmarks on my msp432 launchpad and also on my msp430f5529 launchpad (25 MHz), here with #define USE_FAST_PINIO commented for both. msp432 Display Power Mode: 0x9C MADCTL Mode: 0x48 Pixel Format: 0x5 Image Format: 0x0 Self Diagnostic: 0x0 Benchmark Time (microseconds) Screen fill 31922493 Text 1787874 Lines 17494289 Horiz/Vert Lines 2618766 Rectangles (outline) 1675845 Rectangles (filled) 66276560 Circles (filled) 9775988 Circles (outline) 7653239 Triangles (outline) 5548662 Triangles (filled) 21812339 Rounded rects (outline) 3461099 Rounded rects (filled) 72269681 Done! msp430f5529 ILI9341 Test! Display Power Mode: 0x60 MADCTL Mode: 0x0 Pixel Format: 0xFF Image Format: 0x0 Self Diagnostic: 0x0 Benchmark Time (microseconds) Screen fill 2263167 Text 340734 Lines 3615312 Horiz/Vert Lines 195546 Rectangles (outline) 133089 Rectangles (filled) 4699971 Circles (filled) 1194204 Circles (outline) 1580064 Triangles (outline) 1146462 Triangles (filled) 1952517 Rounded rects (outline) 558189 Rounded rects (filled) 5281704 Done! The 432 seems to be significantly slower in everything than the 5529, which I don't understand yet. (I did use uint32_t, I forgot which one I used when writing the forum post away from my home computer)...
  • Create New...