Jump to content
Forum sending old emails Read more... ×

Search the Community

Showing results for tags 'MSP432'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 114 results

  1. MSP432 version of my Universal Graphics Library. Works with my latest Color LCD BoosterPacks, 2.2" and 2.4" (320x240) Touch support will be added in late April. ugl432.zip
  2. JRDavisUF

    SPI.transfer

    I notice in the online documentation for SPI.transfer (https://energia.nu/guide/libraries/spi/spi_transfer/) that 3 prototypes are provided, however in the actual source for my msp432, there are 4 (per SPI.h): uint8_t transfer(uint8_t); uint8_t transfer(uint8_t, uint8_t); uint8_t transfer(uint8_t, uint8_t, uint8_t); uint8_t *transfer(uint8_t *, size_t); <===================== Missing in online docs The missing one is the multi-byte transfer. Arduino documents a similar function in their docs so I assume it's one that is meant to exist (please don't get rid of it ). The main reason I mention it is that because there is another two argument prototype. So it's a bit confusing when trying to debug if one gets errors related to the first prototype (due to a forgotten &), when I was trying to use the second. Also, but perhaps I missed it, I don't see any reference to SPI1 in the documentation. Related to this, are there any plans to provide easy access to the other SPIs? jrd
  3. mhajian

    CapTouch MSP432

    I am using MSP432. I have also this TI Booster Pack Sense 1 Capacitive touch. I want use this device to teach my students interrupts, scheduling and multitasking. Unfortunately TI has stopped supporting the device. However I have downloaded the library and examples (CapTouchDemo, CapTouchButton, CapTouchProximity, and CapTouchRaw) written by Robert Wessels. I know those were for MSP430, but I have read that I can use them also for MSP432. Unfortunately when I run the program it gives error, please see the added file image for part of errors; there are more errors. It seems he is missing a header file. I have CapTouch.h, but there should be more. Or this one is not the proper one. I cannot find the header file on the internet. Can somebody help me
  4. [MSP432][Windows10][Energia 21][Board file 5.23.1] Recently I've been struggling with a run-time error in a very simple program (converting time=0 to 1/1/1970 fails using ctime...granted it's not really an Energia thing, but it's available for use in my CCS builds of energia projects) using the latest code composer, energia and board file (BTW, I don't have this problem with the previous board file) for my msp432. I've figured out a way to "fix' my problem, but it's unclear to me what the implications of this change might be. By default, when I create a new project in CCS, the project is setup to use the GNU v6.3.1 compiler by default. If I use this compiler, my program compiles, but it's operation fails. In looking into the properties of the project, I notice that I have 5 (2 TI and 3 GNU - 1 GNU older than the default and 1 GNU newer) compiler choices in the tool chain. As such, I started changing the compiler to see what would happen with my non-functioning code. First, I started with the TI compilers. If I select either of them, I get a notice about the need for "manual" intervention in the compiler config. As such, I gave up on those. I then selected the oldest version of the GNU compiler (4.8.4). Switching to this version and my compilation fails. Once again, I have up on that one. As a last attempt, I changed to the newer version of the GNU compiler (7.2.1) and lo-and-behold, not only does my problem compile, but ctime now works correctly. Newer things are always better, right? The default (non-working one) and older (non-compiling) versions of the GNU compiler appear to be shipped with Energia while the newer (working) one appears to be shipped with CCSv8. As such, although I've fixed my problem, I'm wondering if switching is just going to lead to other problems as I'm assuming energia was vetted with the default 6.3.1 compiler. Anyone have positive/negative experiences with changing the compiler tool chain? As my program runs with the previous board file (but using the latest Energia 21 otherwise), might I just be better to switch to the older board file (and wait for a board file/compiler update with energia) but leave the compiler as the default 6.3.1 version? jrd
  5. I've a code I've been working on a while that has worked fine with an older version of the Energia and the board file. When I recently upgraded Energia to 21 and the MSP432 board to 5.23.1 a bunch of things broke. I was able to determine one set of problems was caused by the SPI Mode0/1 bug being corrected. That is, since spi mode0 and 1 were switched, I switched them in my code. When the bug got fixed everything spi-related broke until I switched the modes back (to what they should have been in the first place). My latest problem is that my usage of the RTC no longer works. Attempts to read/set the clock (internal and an external DS3231) are not working correctly. Setting the time to unix time 0, yields "Thu Apr 23 19:16:16 198054" Something funky with the year for sure. (as an aside, anyone have ideas on this problem?) So this led me down the path of trying to figure out what changes were made in the upgrades of Energia and the msp432 board file. However, I've not been able to find a good source of the changelist-type information relating to these two things. Can someone point me to this? I'm guess this might be in github somewhere, but it wasn't really clear to me how to get at this info. For example, figuring out where/when the SPI modes got corrected. Also, I think it would be helpful to have some kind of "upgrade guide" that people could reference. That is, for example, saying things like: "If upgrading from an earlier version of XXX, you will need to swap anything related to SPI Mode0 and SPI Mode1", etc.
  6. I am currently trying to connect my Launchpad MSP432E401Y to energia and run the basic "Blink" example. I can get my board to connect using CCS but cannot get a basic file to compile to my Board. I am running Energia 1.8.7E20 on windows 10, and have the MSP432E Ethernet RED boards installed. My error message is: Exit status 1. Error compiling for board LaunchPad w/ msp432E EMT (120MHz).
  7. Dear All, I want to import an image on the display kentec 3.5". I used the same process than from the link below: http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/Graphics_Library/latest/index_FDS.html and the library grlib_3_21_00_00.zip\examples\MSP-EXP432P401R_GrlibExample\images TI_logo_150x150. To import an image, we need a file .ino used with Energia and a file.h that is obtained with an image.bmp convert to a file constitute with some byte of 16 bits. To generate the file .h, I used the software GIMP in order to reduce the size of the image.bmp: I reduce the number of points of the image that have to be lower than 320x240 p. After, I generate the byte of 16 bits with the software LCD_converter > Options > Conversion: Type Color, Image Block Size 16 bits and Preview. #define x_Gauge_bmp (80) //width of the picture #define y_Gauge_bmp (60) //height of the picture #if defined(ENERGIA) static const uint16_t pic_Gauge_bmp[] = { #elif defined(ARDUINO) || defined(MPIDE) || defined(WIRING) static prog_uint16_t pic_Gauge_bmp[] PROGMEM = { #endif 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xff00, 0xffff, 0xffff, With Energia, the MSP432 and the Kentec3.5, the image is imported on the scren but there's no relation with the image.bmp. Anyone already done this experiment ? Could you advice me how to do ? Thanks and best regards, Patrick
  8. Does anyone know if MSP432 (black) can be added to the standard Arduino setup? The reason: I've got an Adafruit Feather M0+ board working with Arduino, so the ARM Cortex-M compiler is "already there". I'm hoping maybe I could remove Energia (since I don't need the '430 support). If I add the JSON board file for the black MSP432 launch-pad, will the Arduino IDE get everything it needs to play with the MSP432? https://energia.nu/packages/package_msp432_black_index.json Also, is there a JSON file for the Tiva TM4C123 launch-pad? (same reason, have a Tiva, want to move everything over to one IDE). Thanks!
  9. mhajian

    Energia MSP432

    I am new in Energia. I have follwed the instructions to install the drivers for Energia, download the IDE software. It recognize my MSP432 board. Now I want to upload a program. I get the follwoing error messag: Error: Unable to access jarfile C:\Users\Mostafa exit status 1 Error compiling for board RED LaunchPad w/ msp432 EMT (48MHz). Can somebody help me? Regards Mostafa ps. I do not have any C:\users\Mostafa folder. I have C:\users\Mostafa Laptop.
  10. Hi, is there any example or a library like tinygps++ for msp432? just to read coordinates from the tx\rx
  11. is it possible to underclock or overclock the device? i mean, for example i need it just to use 50% of it's power, is there a way to it limit itself to a specific configuration? i want the msp432 to take as much low power as possible(will be battery powered)
  12. Hello I am new to Microcontrollers and currently have to use one for a design project in school. I have been reading about using Energia for my MSP432E401Y Launchpad and when installing it talks about what drivers need to be installed. None of the ones specified are the MCU I am using, so i was wondering what needs to be installed in order to use Energia to code this.
  13. I'm trying to connect the MSP432P401R and it keeps giving me this error when I try to verify: Energia: 1.6.10E18 (Mac OS X), Board: "RED LaunchPad w/ msp432 EMT (48MHz)" Exception in thread "main" java.lang.UnsupportedClassVersionError: processing/app/ino2cpp/Main : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637) at java.lang.ClassLoader.defineClass(ClassLoader.java:621) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) exit status 1 Error compiling for board RED LaunchPad w/ msp432 EMT (48MHz). I'm just running the blinking light demo code. I've tried all the sereal ports and keep getting the same error. ideas?
  14. terjeio

    RFC: CNC BoosterPack

    I have recently been working on a CNC BoosterPack that I will make available on Github when completed later in the spring. Current specifications: Support for my HALified version of GRBL (based on 1.1), currently drivers has been made for MSP432 (black version), Tiva C and MSP430F2955. NOTE: firmware is built with CCS 6.1, MSP432 driver is 100% CMSIS based. Opto-coupled inputs, NC switches recommended. Opto-coupled outputs with 200mA open drain drive for spindle on, spindle direction, flood and mist. Can drive most relays and solenoids directly. Output section can be powered from internal 3V3 or 5V source, or from external source. If powered from external source outputs can be made opto-isolated via jumper setting. PWM-output for spindle speed currently directly connected to MCU pin (could be changed to open drain). I2C (IIC) interface with selectable voltage level (3V3 or 5V) via level shifter, dedicated interrupt input. I2C pinout compatible with my 4x4 keyboard project, supports jogging etc. Optional EEPROM for configuration settings for MCUs with no internal EEPROM. Polulu 8825 motor driver breakout board compatible. Fault signal routed to GPIO input. Considered for later revision: Break out SPI interface and add full support for Trinamic motor drivers. Optional (SPI) DAC for motor speed (laser power) control. This might require a 4-layer PCB and also solving the pinout cabal... --- Anything you want changed? Terje
  15. neznaika

    MSP432 Hardware UART(2)(3)

    Hello, I could not find complete answer so posting this question. Is it possible to use MSP432 hardware serial (2..3) in Energia? Is there any specific reason it is not implemented or special syntax has to be used? Thanks in advance
  16. In the standard Button example in Energia (Examples->02.Digital->Button), it works fine when I upload it to the MSP432P401R. But if I add a delay to the loop that is greater than 250ms, then the LED that's supposed to turn back on when the button is released, never turns back on. If the delay is less than 250ms, then the sketch works as expected. Why do you think this happens? const int buttonPin = PUSH2; // the number of the pushbutton pin const int ledPin = GREEN_LED; // the number of the LED pin // variables will change: int buttonState = 0; // variable for reading the pushbutton status void setup() { // initialize the LED pin as an output: pinMode(ledPin, OUTPUT); // initialize the pushbutton pin as an input: pinMode(buttonPin, INPUT_PULLUP); } void loop(){ // read the state of the pushbutton value: buttonState = digitalRead(buttonPin); // check if the pushbutton is pressed. // if it is, the buttonState is HIGH: if (buttonState == HIGH) { // turn LED on: digitalWrite(ledPin, HIGH); } else { // turn LED off: digitalWrite(ledPin, LOW); } delay(500); //BUG: when this is here, then the LED never turns back on }
  17. ewparker

    MSP432 Won't Compile

    When I try to compile with my MSP432P401R I get the following error Energia: 1.6.10E18 (Windows 10), Board: "RED LaunchPad w/ msp432 EMT (48MHz)" arm-none-eabi-g++: error: CreateProcess: No such file or directory exit status 1 Error compiling for board RED LaunchPad w/ msp432 EMT (48MHz). Any ideas on a fix? Regards, Eli
  18. Hi, I just got the MSP432 and am really excited to start working with this board. I'm running Windows 10 on an ACER Aspire 64 bit machine. Unfortunately when I go to upload a program using Energia the port menu is grayed out. I used to have this problem with the arduino on the arduino IDE until I downloaded the FTDI drivers from: http://www.ftdichip.com/Drivers/VCP.htm The following picture shows the IDE as I see it now: I followed the instructions for installing the XDS110 drivers according to the windows install guide for the MSP432. Checking the device manager I see the two ports that I should be seeing, but there is no COM port assigned to them. The following picture shows what I see in the device manager. I've also checked my hidden drivers to make sure that all the virtual drivers had not been taken up for some reason. Further more, I tried changing the com port assigned in the advanced settings. Unfortunately when I try to set the Com port to something other than COM1 the device manager crashes. It seems that windows has COM1 as the default in advanced settings. I've also checked all of the jumpers, and they seem to all be securely connected. The green light comes on, and it seems that the MSP432 is receiving power since the red LED is blinking. I'm assuming that this is the "blink" demo program that is preinstalled on the board before the board is shipped. Upon trying to upload the base code on the IDE anyway I received the following error message as expected (Since there was no COM port assigned ). I've also checked the cable, and used it to successfully program my NodeMCU. Energia: 1.6.10E18 (Windows 10), Board: "LaunchPad w/ msp432 EMT (48MHz)" C:\Program Files\energia-1.6.10E18\arduino-builder -dump-prefs -logger=machine -hardware "C:\Program Files\energia-1.6.10E18\hardware" -hardware "C:\Users\div54\AppData\Local\Energia15\packages" -tools "C:\Program Files\energia-1.6.10E18\tools-builder" -tools "C:\Program Files\energia-1.6.10E18\hardware\tools\msp430" -tools "C:\Users\div54\AppData\Local\Energia15\packages" -built-in-libraries "C:\Program Files\energia-1.6.10E18\libraries" -libraries "C:\Users\div54\OneDrive\Documents\Energia\libraries" -fqbn=energia:msp432:MSP-EXP432P401R -ide-version=10610 -build-path "C:\Users\div54\AppData\Local\Temp\build45865cb35bb0d4253bfde3365705470d.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\div54\AppData\Local\Temp\untitled310862003.tmp\sketch_may29a\sketch_may29a.ino" C:\Program Files\energia-1.6.10E18\arduino-builder -compile -logger=machine -hardware "C:\Program Files\energia-1.6.10E18\hardware" -hardware "C:\Users\div54\AppData\Local\Energia15\packages" -tools "C:\Program Files\energia-1.6.10E18\tools-builder" -tools "C:\Program Files\energia-1.6.10E18\hardware\tools\msp430" -tools "C:\Users\div54\AppData\Local\Energia15\packages" -built-in-libraries "C:\Program Files\energia-1.6.10E18\libraries" -libraries "C:\Users\div54\OneDrive\Documents\Energia\libraries" -fqbn=energia:msp432:MSP-EXP432P401R -ide-version=10610 -build-path "C:\Users\div54\AppData\Local\Temp\build45865cb35bb0d4253bfde3365705470d.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "C:\Users\div54\AppData\Local\Temp\untitled310862003.tmp\sketch_may29a\sketch_may29a.ino" Using board 'MSP-EXP432P401R' from platform in folder: C:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0 Using core 'msp432' from platform in folder: C:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0 Detecting libraries used... "C:\Users\div54\AppData\Local\Energia15\packages\energia\tools\arm-none-eabi-gcc\6.3.1-20170620/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mabi=aapcs -g -Dxdc_target_types__=gnu/targets/arm/std.h -Dxdc_target_name__=M4F -Dxdc_cfg__xheader__="configPkg/package/cfg/energia_pm4fg.h" -DTARGET_IS_MSP432P4XX -DBOARD_MSP_EXP432P401R -Dxdc__nolocalstring=1 -D__MSP432P401R__ -DCORE_VERSION=380 -c -g -Os -w -ffunction-sections -fdata-sections -fno-threadsafe-statics -fno-rtti -fno-exceptions -w -x c++ -E -CC -mcpu=cortex-m4 -mthumb -DF_CPU=48000000L -DARDUINO=10610 -DENERGIA=10610 -DENERGIA_MSP_EXP432P401R -DENERGIA_ARCH_MSP432 "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\cores\msp432/ti/runtime/wiring/" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\cores\msp432/ti/runtime/wiring/msp432" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/driverlib/MSP432P4xx" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/driverlib" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/inc" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/inc/CMSIS/" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\cores\msp432/ti/runtime/wiring/" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\cores\msp432/ti/runtime/wiring/msp432" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/driverlib/MSP432P4xx" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/driverlib" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/inc" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/inc/CMSIS/" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\cores\msp432" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\variants\MSP_EXP432P401R" "C:\Users\div54\AppData\Local\Temp\build45865cb35bb0d4253bfde3365705470d.tmp\sketch\sketch_may29a.ino.cpp" -o "nul" "C:\Users\div54\AppData\Local\Energia15\packages\energia\tools\arm-none-eabi-gcc\6.3.1-20170620/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mabi=aapcs -g -Dxdc_target_types__=gnu/targets/arm/std.h -Dxdc_target_name__=M4F -Dxdc_cfg__xheader__="configPkg/package/cfg/energia_pm4fg.h" -DTARGET_IS_MSP432P4XX -DBOARD_MSP_EXP432P401R -Dxdc__nolocalstring=1 -D__MSP432P401R__ -DCORE_VERSION=380 -c -g -Os -w -ffunction-sections -fdata-sections -fno-threadsafe-statics -fno-rtti -fno-exceptions -w -x c++ -E -CC -mcpu=cortex-m4 -mthumb -DF_CPU=48000000L -DARDUINO=10610 -DENERGIA=10610 -DENERGIA_MSP_EXP432P401R -DENERGIA_ARCH_MSP432 "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\cores\msp432/ti/runtime/wiring/" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\cores\msp432/ti/runtime/wiring/msp432" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/driverlib/MSP432P4xx" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/driverlib" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/inc" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/inc/CMSIS/" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\cores\msp432/ti/runtime/wiring/" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\cores\msp432/ti/runtime/wiring/msp432" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/driverlib/MSP432P4xx" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/driverlib" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/inc" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/inc/CMSIS/" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\cores\msp432" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\variants\MSP_EXP432P401R" "C:\Users\div54\AppData\Local\Temp\build45865cb35bb0d4253bfde3365705470d.tmp\sketch\sketch_may29a.ino.cpp" -o "nul" Generating function prototypes... "C:\Users\div54\AppData\Local\Energia15\packages\energia\tools\arm-none-eabi-gcc\6.3.1-20170620/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mabi=aapcs -g -Dxdc_target_types__=gnu/targets/arm/std.h -Dxdc_target_name__=M4F -Dxdc_cfg__xheader__="configPkg/package/cfg/energia_pm4fg.h" -DTARGET_IS_MSP432P4XX -DBOARD_MSP_EXP432P401R -Dxdc__nolocalstring=1 -D__MSP432P401R__ -DCORE_VERSION=380 -c -g -Os -w -ffunction-sections -fdata-sections -fno-threadsafe-statics -fno-rtti -fno-exceptions -w -x c++ -E -CC -mcpu=cortex-m4 -mthumb -DF_CPU=48000000L -DARDUINO=10610 -DENERGIA=10610 -DENERGIA_MSP_EXP432P401R -DENERGIA_ARCH_MSP432 "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\cores\msp432/ti/runtime/wiring/" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\cores\msp432/ti/runtime/wiring/msp432" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/driverlib/MSP432P4xx" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/driverlib" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/inc" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/inc/CMSIS/" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\cores\msp432/ti/runtime/wiring/" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\cores\msp432/ti/runtime/wiring/msp432" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/driverlib/MSP432P4xx" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/driverlib" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/inc" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system/inc/CMSIS/" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\system" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\cores\msp432" "-IC:\Users\div54\AppData\Local\Energia15\packages\energia\hardware\msp432\3.8.0\variants\MSP_EXP432P401R" "C:\Users\div54\AppData\Local\Temp\build45865cb35bb0d4253bfde3365705470d.tmp\sketch\sketch_may29a.ino.cpp" -o "C:\Users\div54\AppData\Local\Temp\build45865cb35bb0d4253bfde3365705470d.tmp\preproc\ctags_target_for_gcc_minus_e.cpp" arm-none-eabi-g++: error: CreateProcess: No such file or directory exit status 1 Error compiling for board LaunchPad w/ msp432 EMT (48MHz).
  19. Ssherry

    cc3100

    I am working on code related to sending an email through cc3100booster and msp432p401r. I am having an issue in connectivity of wifi in the module when the wifi connection code is provided in void setup(). I am providing mobile's hotspot and it gets connected and disconnected periodically. I require an continuous connection. When the wifi connection code is written inside loop(), the connection problem is solved but a newer issue is arised i,e, the program is running for email but not for the server [In server program i am sending temperature and pulse count value to thingspeak.com to get a graphical representation of my data.] moreover, despite of being present in loop, it executes only once. its a complete arcane issue for me. I am linking code below. please help me out with this. #define TEMBOO_ACCOUNT "xxxxxxx" // your Temboo account name #define TEMBOO_APP_KEY_NAME "xxxxxxx" // your Temboo app name #define TEMBOO_APP_KEY "xxxxxxxx" // your Temboo app key #define WIFI_SSID "xxxxxx" //hotspot name #define WIFI_PASSWORD "xxxxxxx" //hotspot password #ifndef __CC3200R1M1RGC__ #include <SPI.h> #include <WiFi.h> #include <WiFiClient.h> #include <Temboo.h> #endif const String GMAIL_USER_NAME = "xxxxxxx"; //sender's email const String GMAIL_APP_PASSWORD = "xxxxxx"; //sender's app password const String TO_EMAIL_ADDRESS = "xxxxxxx"; //receiver's email boolean attempted = false; #include <LiquidCrystal.h> LiquidCrystal lcd(13,33,12,24,5,25,6,26,27,8,28); float temp; float volt; int sensorValue1; int sensorValue2; int count; WiFiClient client; char server[] = "api.thingspeak.com"; unsigned long lastConnectionTime = 0; // last time you connected to the server, in milliseconds const unsigned long postingInterval = 10L * 1000L; // delay between updates, in milliseconds void checkconnection() { int wifiStatus = WL_IDLE_STATUS; // determine if the WiFi Shield is present. Serial.print("\n\nShield:"); if (WiFi.status() == WL_NO_SHIELD) { Serial.println("FAIL"); // if there's no WiFi shield, stop here. while(true); } while(wifiStatus != WL_CONNECTED) { Serial.print("WiFi:"); wifiStatus = WiFi.begin(WIFI_SSID, WIFI_PASSWORD); if (wifiStatus == WL_CONNECTED) { Serial.println("OK"); } else { Serial.println("FAIL"); } delay(1000); } Serial.println("Waiting for an ip address"); while (WiFi.localIP() == INADDR_NONE) { // print dots while we wait for an ip addresss Serial.print("."); delay(300); } Serial.println("\nIP Address obtained"); // We are connected and have an IP address. // Print the WiFi status. printWifiStatus(); } void serverprog() { while (client.available()) { char c = client.read(); Serial.write(c); } if (millis() - lastConnectionTime > postingInterval) { httpRequest(); } } void httpRequest() { // close any connection before send a new request. // This will free the socket on the WiFi shield client.stop(); // if there's a successful connection: if (client.connect(server, 80)) { Serial.println("connecting..."); char msgg[200]; sprintf(msgg,"GET /update?api_key=xxxxxxxxxxxxxxxx&field1=%f&field2=%d",temp,count); //have to make account on thingspeak.com and create channel then create 2 fields. then copy the WRITE API key in place of xxxxxxxxx // send the HTTP PUT request: client.println(msgg); client.println("Host: api.thingspeak.com"); client.println("User-Agent: Energia/1.1"); client.println("Connection: close"); client.println(); // note the time that the connection was made: lastConnectionTime = millis(); } else { // if you couldn't make a connection: Serial.println("connection failed"); } } void printWifiStatus() { // print the SSID of the network you're attached to: Serial.print("SSID: "); Serial.println(WiFi.SSID()); // print your WiFi IP address: IPAddress ip = WiFi.localIP(); Serial.print("IP Address: "); Serial.println(ip); // print the received signal strength: long rssi = WiFi.RSSI(); Serial.print("signal strength (RSSI):"); Serial.print(rssi); Serial.println(" dBm"); } void setup() { lcd.begin(16, 2); Serial.begin(9600); Serial.println("processing......"); } void loop() { int sensorValue1 = analogRead(A0); lcd.clear(); lcd.setCursor(0,2); lcd.print("wait.."); /* lcd.setCursor(0,0); lcd.print("temperature ="); lcd.setCursor(14,0); lcd.print(temp);*/ Serial.println(sensorValue1); volt=sensorValue1*3.22; temp=volt/10; Serial.println(volt); Serial.println("temp="); Serial.println(temp); delay(10); int sensorValue2; unsigned long start=millis(); analogReadResolution(10); unsigned long currentValue; float x=0; int y; count=0; delay(3000); lcd.clear(); lcd.setCursor(0,2); lcd.print("detecting......."); do { int sensorValue2 = analogRead(A1); if(sensorValue2 > x) { x=sensorValue2; y=1; } else if(sensorValue2 < x) { x=sensorValue2; if(y==1) { count++; y=0; } } currentValue=millis(); } while(currentValue-start<=30000); count=(count*2)/10000; lcd.clear(); lcd.setCursor(0,0); lcd.print("temperature ="); lcd.setCursor(14,0); lcd.print(temp); lcd.setCursor(0,2); lcd.print("pulse count ="); lcd.setCursor(14,1); lcd.print(count); delay(1000); Serial.println(sensorValue2); Serial.println("pulse count="); Serial.println(count); checkconnection(); delay(3000); if (!attempted) { Serial.println("Running SendAnEmail..."); TembooChoreo SendEmailChoreo(client); SendEmailChoreo.begin(); SendEmailChoreo.setAccountName(TEMBOO_ACCOUNT); SendEmailChoreo.setAppKeyName(TEMBOO_APP_KEY_NAME); SendEmailChoreo.setAppKey(TEMBOO_APP_KEY); SendEmailChoreo.setChoreo("/Library/Google/Gmail/SendEmail"); SendEmailChoreo.addInput("Username", GMAIL_USER_NAME); SendEmailChoreo.addInput("Password", GMAIL_APP_PASSWORD); SendEmailChoreo.addInput("ToAddress", TO_EMAIL_ADDRESS); SendEmailChoreo.addInput("Subject", "Recieved An Email???"); char msg[100]; sprintf (msg," Body Temperature=%f, Pulse count=%d",temp,count); SendEmailChoreo.addInput("MessageBody", msg); unsigned int returnCode = SendEmailChoreo.run(); if (returnCode == 0) { Serial.println("Success! Email sent!"); } else { while (SendEmailChoreo.available()) { char c = SendEmailChoreo.read(); Serial.print(c); } } SendEmailChoreo.close(); } serverprog(); lcd.clear(); }
  20. Fred

    MSP432E4

    I just spotted these and couldn't find any other thread about them. Headline is it an MSP432 with Ethernet, USB and CAN. http://www.ti.com/microcontrollers/simplelink-mcus/msp432/overview/msp432e4.html http://www.ti.com/product/msp432e401y http://www.ti.com/product/msp432e411y Launchpad: http://www.ti.com/tool/msp-exp432e401y
  21. agaelema

    MSP-EXP432P111

    Hi guys, The new Launchpad MSP-EXP432P111 was released some days ago. I bought one and it arrived today . The board use the XMS432P1111 (pre-production version of MSP432) microcontroller, a Cortex M4 with 48MHz, 2MB of flash, 256KB of SRAM (very impressive), 14bit ADC and many other peripherals, like the LCD driver. Apparently, the LCD is the same of other launchpads (eg.: EXP430FR6989), very interesting to understand how to use the LCD driver and develop some projects. The Out-of-Box demo has two modes: - Blink LED, where you can controll the frequency of blink pressing the button S1 and controll the color by pressing the button S2. - Temperature mode: Show the temperature based in the internal sensor (pressing S2), or based in an external temperature sensor (pressing S1), a LMT70, but it's necessary to put a jumper in R8, powering the sensor. There is a online GUI enabling to control other parameters like special characters in the LCD. The finishing of PCB's is impeccable, as always.
  22. How to use EEPROM on MSP432P401R LaunchPad? I've found library for msp430 launchpads, but there's no library for MSP432P401R LaunchPad. How to use EEPROM on this launchpad? Where can I download it? Energia version: 1.6.10E18. Operating system: Linux Mint 18.3
  23. Hello, I'm trying to run a code I found for a water depth sensor MS5540C and I'm coming across a compilation error: "error: 'TCCR1B' was not declared in this scope" anyone know what is going on? code can be found here http://www.fut-electronics.com/wp-content/uploads/2015/10/water_depth_sensor_MS5540C_Arduino_tutorial.pdf thank you!
  24. 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]); }
  25. iesalais

    MSP432 Hardware SPI Issue

    Hello, I've been trying to run an example called "graphicstest" from adafruit's ST7735 library on a TFT display using an MSP432. My problem is that, for some reason, software SPI works but not hardware SPI. The example "graphicstest" has an option to switch to software SPI by setting the MOSI and SCK pins to whatever i want and when i do that it works, the program does it's little test, but the problem with that is that it runs VERY slow so i kinda need this to work at its intended speed by using hardware SPI. if i hook up MOSI pin to P1.6 and SCK to P1.5 on my MSP432, nothing happens while using hardware SPI. but once i switch to software SPI and set MOSI as pin 15(P1.6) and SCK as pin 7(P1.5), it works. Can anyone help explain what is going on? P.S. this is what the code looks like when changing from Hardware to Software: // For the breakout, you can use any 2 or 3 pins // These pins will also work for the 1.8" TFT shield #define TFT_CS 18 //P3.0 on MSP432 #define TFT_RST 5 #define TFT_DC 8 // Option 1 (recommended): must use the hardware SPI pins // (for UNO thats sclk = 13 and sid = 11) and pin 10 must be // an output. This is much faster - also required if you want // to use the microSD card (see the image drawing example) Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST); // Option 2: use any pins but a little slower! #define TFT_SCLK 7 // set these to be whatever pins you like! #define TFT_MOSI 15 // set these to be whatever pins you like! //Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST);
×