Jump to content

All Activity

This stream auto-updates     

  1. Last week
  2. I had the same exact problem. Fixed by updating the default Energia MSP library to the latest version.
  3. You can try and edit the platform.txt file and set a different version for C and C++. However, this may rise conflicts with the default libraries, as they target an older version of C and C++. For more advanced use of the Energia SDK, I would recommend using Code Composer Studio.
  4. Can this be figured out @Rei Vilo @energia? I use TI MCUs in a lot of projects and it would be fantastic to have access to modern C++ functions. As it is currently, you have to rewrite any example code that manufacturers provide. Often times, this isn't practical so some sort of update would be nice. Can you at least confirm that anything is in the works or that it's unsupported at this point? Thanks,
  5. Yes, you shouldn't need to change any settings to be able to read and write from the main FRAM block. I'm able to observe a persistent variable being incremented with the following code on the FR5994 #include <stdio.h> #include <msp430.h> unsigned long __attribute__((section(".persistent"))) persist = 5; int main (void) { WDTCTL = WDTPW | WDTHOLD; while (1) { persist++; printf ("persist %ld\n", persist); for (int i = 0; i < 1000; i++); } return 0; } I don't know what setup Energia does by default, but you should check that at least the watchdog is disabled, if it fires before you get to the modification of the persistent variable, then it will just stay at 5. There's plenty of posts about writing to FRAM on the TI E2E forums, you could check there if you continue to have problems. Particularly check out the code examples included in this thread https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/911028?tisearch=e2e-sitesearch&keymatch=msp430%20fram%20write Regards,
  6. Hi Jozef, Thanks for that info, however I tried your recommendation and found that the variable, once set at 5, could not then be changed by other lines in the code (i.e. FRAM_count++) and instead would remain at five. This is similar to the behaviour I observed from the energia-defined PLACE_IN_FRAM, despite the fact that the data memory region the .persistent section is in is rwx. Is this the intended behaviour and am I simply misunderstanding the persistent attribute, or are there other factors at play here? I wondered if it could be an MPU issue, but my understanding is that the MPU is disabled by default? Thanks again for your suggestion!
  7. in the board.txt file you also need to change the prefix CC3220SF-LAUNCHXL.xxxxx
  8. Earlier
  9. Офисные АТС и IP телефония в Крыму. Компания Tritel, участник Ассоциации Кабельных Операторов Связи Крыма, предоставляет услуги безлимитного доступа к сети Интернет для жителей Симферополя с возможностью подключения к сети на скорости 100Мбит/с. Подключить интернет в Симферополе. Бесплатное кабельное телевидение в Симферополе. услуги безлимитного интернета всего за 360 рублей. У нас Вы можете подключить интернет всего за сутки. Интернет провайдер в Симферополе. Telco - Телефония в Крыму.
  10. Hi, So I simply wanted to try out my new CC3220SF using Energia. Unfortunately I noticed that I always get the wrong readings from the pin. I used a voltage divider to ensure the voltage connected to the analog pin is no more than 1.3V. For that I simply took three 1k Ohm resistors and put them in series then connect a parallel circuit from the last resistor to the potentiometer. I also have ensure that the jumper powering the opAmp to enable the ADC on board is populated. I simply used the example code then changed the pin number. I also already have tested changing all the pin number but it all comes down to nothing. But to simplify your work to help me, here's the code nonetheless, void setup() { // initialize serial communication at 9600 bits per second: Serial.begin(9600); // msp430g2231 must use 4800 } // the loop routine runs over and over again forever: void loop() { // read the input on analog pin A3: int sensorValue = analogRead(A0); //I tried A0,A1,A2,A3 already // print out the value you read: Serial.println(sensorValue); delay(1); // delay in between reads for stability } And here is my setup: LaunchPad board name and version: CC3220S_LAUNCHXL (Rev-A) Energia IDE version: 1.8.11E23 Board package version: 5.6.2 OS name and version: Windows 10 Thanks, Razi Hashim
  11. Офисные АТС и IP телефония в Крыму. Компания Tritel, участник Ассоциации Кабельных Операторов Связи Крыма, предоставляет услуги безлимитного доступа к сети Интернет для жителей Симферополя с возможностью подключения к сети на скорости 100Мбит/с. Подключить интернет в Симферополе. Бесплатное кабельное телевидение в Симферополе. услуги безлимитного интернета всего за 360 рублей. У нас Вы можете подключить интернет всего за сутки. Интернет провайдер в Симферополе. Telco - Телефония в Крыму.
  12. Ver El diablo a todas horas 2020 pelicula online - http://ver-online-gratis-pelicula.over-blog.com/2020/09/el-diablo-a-todas-horas-ver-pelicula-online-gratis-espanol.html Ver El diablo a todas horas 2020 pelicula online enlace alternativo - https://zenodo.org/record/4035094#.X2QdQRAzbIV El diablo a todas horas película El diablo a todas horas pelicula completa El diablo a todas horas película 4 El diablo a todas horas peliculas El diablo a todas horas ver película online El diablo a todas horas ver pelicula El diablo a todas horas descargar películas gratis El diablo a todas horas ver peliculas online gratis El diablo a todas horas descargar película gratis El diablo a todas horas película completa en mexicana El diablo a todas horas pelicula mexicanas El diablo a todas horas cine cristianas El diablo a todas horas descargar pelicula El diablo a todas horas cine infantiles El diablo a todas horas película en mexicana El diablo a todas horas pelicula online hd
  13. Efimiya ejaculation Sybil girls fucking Magda ecuador Gajya tight pussy fuck Agnesa sucking dicks Flaviya cum Sybil throatfuck Leah cash Veronika perfect butt Vidana bailando Ruslana swallow
  14. Elizabeth fellatio Fedora rubia Ippolita mama Mariya free amatuer porn Beata bunda grande Jennifer licking Kathryn piroca Sandra hair Syuzanna face fuck Astra hot teen Dzhuletta horny slut
  15. Snezhana baby sitter Jessica mature woman Vseslava free amateur porn Viktorina amateurporn Rebecca big tits porn Avdotya gay baitbus Maria sola Matryona masturbating Natalya head Klavdiya gay party Lorna caseiro
  16. Diodora sucking cocks Kathryn boys Aza hot milf Faina camera Eleanor candid Isidora teen hardcore Evelyn women sucking dick Rufina pervert Aleksandra oldvsyoung Madlen tattooed Jennifer blonde
  17. Thankyou Rei. I have followed the steps as above to compile a sample program. I gives a warning as seen in the screenshot attached. I think it is beacuse of the library.properties file which is present in every library folder. I will try it on the hardware and get back with the results. Also one thing I noticed is that I cannot see the location of the Binary File created in Energia as it is shown in Rei's screenshot. Do I need to worry about any Energia Installation mistakes?
  18. The MSP432P4111 package doesn't include the libraries folder with the WiFi library. Create the directory ~/Users/ReiVilo/Library/Energia15/packages/energia/hardware/msp432p/5.29.0-beta1/libraries Copy the folder ~/Library/Energia15/packages/energia/hardware/msp432r/5.29.0/libraries/WiFi under ~/Users/ReiVilo/Library/Energia15/packages/energia/hardware/msp432p/5.29.0-beta1/libraries to obtain ~/Users/ReiVilo/Library/Energia15/packages/energia/hardware/msp432p/5.29.0-beta1/libraries/WiFi The paths mentioned above are for macOS. They might differ for Windows and Linux. Compiling the SimpleWebServerWiFi example was successful but I don't have the hardware LaunchPad MSP432P4111 + BoosterPack CC3100 to proceed with the tests.
  19. Hi, I'm making a project using msp432p4111 launchpad (red) and cc3100 booster pack for internet connectivity. I using Energia to code. I am using the beta version of the msp431p4111 board which i got from here http://s3.amazonaws.com/energiaUS/packages/package_msp432p_index.json. Plug this URL into the Energia preferences for downloading the msp432p4111 from boards manager. But I am not able to use the wifi library for it. I have to make multiple SSL HTTP requests. I have done it using Arduino and esp8266 but I am stuck when using msp432p4111 launchpad and cc3100 booster pack. Please help on how to go about using the wifi library. Also can I create wifi client for the SSL HTTP requests using the wifi library?
  20. I have msp432p4111 launchpad but cannot find it in the boards manager in energia. I found out from here: that plugging the following url into the preferences tab, I can get the beta version of the board msp432p4111. http://s3.amazonaws.com/energiaUS/packages/package_msp432p_index.json. I want to connect cc3100 wifi shield to make repeated https requests. The problem I am facing is that I cannot find any wifi library for msp432p4111 in the beta version of the board. Is the support for msp432p4111 launchpad being developed? Or is there any way I can modify the files for msp432p401r or any other board so that I can use those for msp432p4111 in energia(mainly for driving the cc3100 wifi sheild)?
  21. Hi Stefan, Yeah TI changed some of the URLs around, so the following link still points to an old 8.x.x release even though it used to be used to download the latest: http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSPGCC/latest/index_FDS.html But this link will always have the latest release https://www.ti.com/tool/download/MSP430-GCC-OPENSOURCE Thanks! Jozef
  22. I'd like to use Energia with my custom board that has the CC3220MODASF MCU on it. Can someone please provide step-by-step instructions on the steps required to have my custom board show up in the "Boards" in the Energia menu and the required edits to make it usable ? I've done quite a bit of online research and in this forum and found bits and pieces but nothing complete. From this ticket and others I found, putting the pieces together, I believe this is the correct partial course of action: 1. Install the corresponding Launch Pad board in Energia (CC3220SF_LAUNCHXL) --> DONE 2. Go to "....\AppData\Local\Energia15\packages\energia\hardware\cc3220emt\5.6.2" 3. Edit "boards.txt" , copy the entry for the board of interest and replicate for the custom board after renaming , ie: Took this one: CC3220SF-LAUNCHXL.name=CC3220SF-LAUNCHXL (80MHz) CC3220SF-LAUNCHXL.upload.maximum_size=262144 CC3220SF-LAUNCHXL.build.mcu=cortex-m4 CC3220SF-LAUNCHXL.build.f_cpu=80000000L CC3220SF-LAUNCHXL.build.core=cc3220emt CC3220SF-LAUNCHXL.build.variant=CC3220SF_LAUNCHXL CC3220SF-LAUNCHXL.build.ldscript=linker.cmd CC3220SF-LAUNCHXL.build.board=CC3220SF_LAUNCHXL CC3220SF-LAUNCHXL.build.mcu=cortex-m4 CC3220SF-LAUNCHXL.upload.tool=dslite CC3220SF-LAUNCHXL.upload.protocol=dslite and created this one: CC3220SF-LAUNCHXL.name=CC3220SF_CUSTOM_BOARD --> renamed CC3220SF-LAUNCHXL.upload.maximum_size=262144 CC3220SF-LAUNCHXL.build.mcu=cortex-m4 CC3220SF-LAUNCHXL.build.f_cpu=80000000L CC3220SF-LAUNCHXL.build.core=cc3220emt CC3220SF-LAUNCHXL.build.variant=CC3220SF_CUSTOM_BOARD --> renamed CC3220SF-LAUNCHXL.build.ldscript=linker.cmd CC3220SF-LAUNCHXL.build.board=CC3220SF_CUSTOM_BOARD--> renamed CC3220SF-LAUNCHXL.build.mcu=cortex-m4 CC3220SF-LAUNCHXL.upload.tool=dslite CC3220SF-LAUNCHXL.upload.protocol=dslite 5. In the "variants" folder, I created a copy of the "CC3220SF_LAUNCHXL/" and named "CC3220SF_CUSTOM_BOARD" I'm not sure what to do after this step. I know I have to do some pin mapping/edits, but not where where/how. My questions are: A. Are the steps above correct? B. After this, opening up Energia, I know see "CC3220SF_CUSTOM_BOARD" but no longer see "CC3220SF_LAUNCHXL". Why is that? Isn't this supposed to leave CC3220SF_LAUNCHXL and just add "CC3220SF_CUSTOM_BOARD"? C. In the "CC3220SF_CUSTOM_BOARD/" folder, is "pins_energia.h" the only file I need to edit? The current contents are D. There's also the "pins.c" file. It looks like I have to edit that file as well? If so, I'm not sure how to edit these and what keyword I need to use instead of "PIN_FUNC_UNUSED"? The current contents are: E. Can someone explain how the "pins.c" and "pins_energia.h" relate to each other? For example, how does this line in "pins_energia.h": "static const uint8_t RED_LED = 29;" relate to the same pin number in "pins.c" file? Pin 29 in that file shows it's unused: " PIN_FUNC_UNUSED, /* 29 - GPIO_09 */" I'm using: energia-1.8.10E23 and I have the XDS110 standalone programmer, which I plan to use with Energia to program my custom board. Thanks! Berry
  23. Офисные АТС и IP телефония в Крыму. Компания Tritel, участник Ассоциации Кабельных Операторов Связи Крыма, предоставляет услуги безлимитного доступа к сети Интернет для жителей Симферополя с возможностью подключения к сети на скорости 100Мбит/с. Подключить интернет в Симферополе. Бесплатное кабельное телевидение в Симферополе. услуги безлимитного интернета всего за 360 рублей. У нас Вы можете подключить интернет всего за сутки. Интернет провайдер в Симферополе. Telco - Телефония в Крыму.
  24. Hi Josef, thanks for highlighting the availability of the newer GCC version. Unfortunately i made a link to the GCC page at TI but this page did not point to the latest compiler (9.x.x) anymore but still to the 8.x.x version. I have just uploaded a new Energia elf GCC compiler version with the 9.2.0.50 compiler (Energia package 2.0.9). Stefan
  25. Hi, It seems there is a bug using the "persistent" attribute in C++. Internally, the compiler validates the attribute and emits that warning before the initializer has been parsed. The attribute works fine in a C program. As a work-around I would suggest explicitly putting the variable in the ".persistent" section, this has the same effect as the "persistent" attribute. unsigned long int __attribute__((section(".persistent"))) FRAM_count = 5; Apologies that this bug caused confusion! Regards, Jozef
  26. Hi folks! I am working on a project using an MSP430FR5994 through Energia 1.8.11E23 on Linux. As part of that project I would like to persist some variables, i.e. they are set once when the code is flashed and then if updated will retain the updated value upon power cycle, reset, etc. A simple counter example code I am using to test this is shown below. The desired behaviour is that the counter starts at 5 and then continues, and does not reset back to five even if the MSP is power cycled or reset. I have tried the existing undocumented PLACE_IN_FRAM (a macro for __attribute__((section(".text;")))), with both the original and the elf-GCC compilers. This sets the variable, but does not seem to allow it to be altered. I note that the section that this places the variable in, .text, is defined as read only in the linker scripts for both compilers. The original places the .text section it in the rom (rx) region while the elf compiler places it in the text (rx) region. This confuses me, as existing forum threads (e.g. https://forum.43oh.com/topic/13099-mspflash-do-not-work-on-msp4305969/?do=findComment&comment=80848) seemed to imply that this would create a persitent, read/writeable variable. The comment accompanying the macro in pins_energia.h also implies the same. I then tried using __attribute__((persistent)) with the new elf-GCC compiler during my variable declaraion. Upon compile, this gave the following warning "variable 'FRAM_count' was declared persistent and should be explicitly initialized [-Wattributes]". I was unable to resolve this, despite (by my understanding) explictly declaring the variable in a variety of ways. Unlike the previous approach, this did allow the variable to be written, with the count incrementing. However, upon power cycling the count reset to five and did not persist the variable. The code I used to test the above (and other) approaches is shown below: //uint8_t FRAM_count PLACE_IN_FRAM = 5; // Doesn't increment, seems to be read only after init unsigned long int FRAM_count __attribute__((persistent)) = { 5 }; // Doesn't persist, // Gives compiler warning: variable 'FRAM_count' was declared persistent and should be explicitly initialized [-Wattributes] //uint8_t FRAM_count __attribute__((section(".persistent"))) = { 5 }; // Doesn't increment void setup() { // put your setup code here, to run once: Serial.begin(9600); Serial.print("Initial value of FRAM_count is: "); Serial.println(FRAM_count, DEC); Serial.println("Setup Completed"); } void loop() { // put your main code here, to run repeatedly: Serial.println(FRAM_count, DEC); FRAM_count++; delay(1000); } Any suggestions or support that those of you more familiar with the Energia/MSP framework could give would be greatly appreciated! I have spent a few days on this now and have checked these and other forums but have thus far had no success.
  1. Load more activity
×
×
  • Create New...