Jump to content
43oh

L.R.A

Members
  • Content Count

    599
  • Joined

  • Last visited

  • Days Won

    12

Reputation Activity

  1. Like
    L.R.A reacted to RobG in SensorTag, practical use   
    SensorTag can be used not only for development
    I had to find the exact location when fixing problem with my subfloor, so I attached small magnet under the floor and used ST to locate it.
     

  2. Like
    L.R.A got a reaction from greeeg in TM4C and bootloaders   
    Sorry for the lateness.

    The linker script is the same as any Tivaware example. The difference is I change the APP_BASE on the app codes.

    Found out the problems. I decided to copy a assembly code to jump the PC and it worked better (not sure why though, the address was the same).
    Then added, before jumping, a load do the SP with the starting address of the application code.
    Before jumping I also needed to change the vector table offset, but I had that previously I believe.

    It's all working just fine now.



    The thing is. I got my bootloader always running in flash but I have no problems at all (so why do all examples copy it and run it in RAM?)
    The code is also in the main, not in the ResetISR. It seems to work just fine, not sure on the advantages but the basic default init on the ResetISR does just fine. I tried adding everything to the Reset ISR and it did not work - I think my substitute of _c_int00 did not work very well :/

    Anyway, everything is working just fine now. Still, I would like to know more why run the bootloader from flash and use only the reset ISR.
     
  3. Like
    L.R.A got a reaction from energia in Timer & Pin Interrupts for TIVA   
    Tested it at 9600 and 115200 and no visible issue. Maybe there are microseconds timing issues but not much else

     
  4. Like
    L.R.A got a reaction from tripwire in how to set maximum clock frequency of 120 MHz in TM4C1294 connected launchpad   
    In Energia the default frequency is 120Mhz.
    To change that you don't have any Energia functions.

    The maximum with 1 ADC is just 1 msps - you get 2msps if you use both ADCs with advanced techniques.
    Not sure on the max speed in Energia. I would say 40Khz is a bit pushing it, maybe you can just about reach it. 
  5. Like
    L.R.A reacted to yyrkoon in RS485 Communication using MAX485 and MSP430 Launchpad   
    #1 No idea what you going on about. I do not care.
    #2 How old are you ? Because filling up the recent post list for attention implies you're about 5 years old.
    #3 You realize your action here is very inconsiderate. As in you deem your post more important than others who recently posted. When in fact the other post In my own opinion are far more important. Not because of content, but because of behavior.
     
    @@bluehash  or @@spirilis ^^^
  6. Like
    L.R.A got a reaction from Jake in How many channels of analog to digital conversion can the MSP430G2553 handle?   
    The MSP430G2553 does not have a 12 bit ADC, it's just 10bit.

    If you check this pinout you can see how many ADC channels the MSP430G2553 has and it appears to have 8.
    http://energia.nu/img/LaunchPadMSP430G2553-V1.5.jpg

    Of course that-s 8 channels but just 1 ADC - you can only sample 1 at a time. Meaning 4 signals take 4x longer than just 1 - you would need a sample speed of 1 every 0.25ms to get the 4 signals every 1ms. That's 4Ksps
    The max sample rate is about 200Ksps, at least it seems so. So your required sample rate should be easily attainable 

    I don't quite get what you are referring with the timers.


     
  7. Like
    L.R.A got a reaction from tripwire in How many channels of analog to digital conversion can the MSP430G2553 handle?   
    The MSP430G2553 does not have a 12 bit ADC, it's just 10bit.

    If you check this pinout you can see how many ADC channels the MSP430G2553 has and it appears to have 8.
    http://energia.nu/img/LaunchPadMSP430G2553-V1.5.jpg

    Of course that-s 8 channels but just 1 ADC - you can only sample 1 at a time. Meaning 4 signals take 4x longer than just 1 - you would need a sample speed of 1 every 0.25ms to get the 4 signals every 1ms. That's 4Ksps
    The max sample rate is about 200Ksps, at least it seems so. So your required sample rate should be easily attainable 

    I don't quite get what you are referring with the timers.


     
  8. Like
    L.R.A reacted to maelli01 in Christmas tree blinky thing   
    Last year my daughter (she was almost 7 back then) got interesting in soldering.
    So I let het solder stuff together, no function whatsoever. It did not last long, until she wanted to solder something that "does something". 
     
    So I took the challenge and designed this christmas tree.
     
    - FR2 board, copper artwork by me, other side by my daughter. (cheap FR2 is better for using felt tip pens.. almost like paper)
    - G2553, all 16pins to simple LEDs, various colours
    - simple discrete regulator (another led+ transistor) for more or less 3V
    - powered by USB
    - mostly through-hole (soldered by a 7 year old), some SMD (where I helped)
    - programmed in Energia
     
     
    merry christmas!



  9. Like
    L.R.A got a reaction from Fmilburn in Use of driverlib   
    I think that you should go into the driverlib. I mean, it's faster to develop, some errors are avoided, easier to read, some portability (well, the registers are pretty much the same on the MSP430s).

    Note that I am more of an ARM fan. I always use driver libs, As it was said, there is a ton of memory and power even in the lowest end ARM-Ms. So why bother with registers most of the time? As an ARM user I usually don't recommend, even discourage register programming - you have to know how to handle yourself with the registers when needed of course.

    Now of course don't lose notion of the lower level, it's important to get a better code, to know how to later search and apply missing features on the driverlib. And sometimes you just need some extra performance.

    Also, as @@chicken, I check the datasheet register from time to time to make sense of some things. Of course the descriptions on the datasheet also refer to the registers. But that is just when the API documentation is lacking some info.
  10. Like
    L.R.A got a reaction from chicken in Use of driverlib   
    I think that you should go into the driverlib. I mean, it's faster to develop, some errors are avoided, easier to read, some portability (well, the registers are pretty much the same on the MSP430s).

    Note that I am more of an ARM fan. I always use driver libs, As it was said, there is a ton of memory and power even in the lowest end ARM-Ms. So why bother with registers most of the time? As an ARM user I usually don't recommend, even discourage register programming - you have to know how to handle yourself with the registers when needed of course.

    Now of course don't lose notion of the lower level, it's important to get a better code, to know how to later search and apply missing features on the driverlib. And sometimes you just need some extra performance.

    Also, as @@chicken, I check the datasheet register from time to time to make sense of some things. Of course the descriptions on the datasheet also refer to the registers. But that is just when the API documentation is lacking some info.
  11. Like
    L.R.A got a reaction from greeeg in Use of driverlib   
    I think that you should go into the driverlib. I mean, it's faster to develop, some errors are avoided, easier to read, some portability (well, the registers are pretty much the same on the MSP430s).

    Note that I am more of an ARM fan. I always use driver libs, As it was said, there is a ton of memory and power even in the lowest end ARM-Ms. So why bother with registers most of the time? As an ARM user I usually don't recommend, even discourage register programming - you have to know how to handle yourself with the registers when needed of course.

    Now of course don't lose notion of the lower level, it's important to get a better code, to know how to later search and apply missing features on the driverlib. And sometimes you just need some extra performance.

    Also, as @@chicken, I check the datasheet register from time to time to make sense of some things. Of course the descriptions on the datasheet also refer to the registers. But that is just when the API documentation is lacking some info.
  12. Like
    L.R.A got a reaction from tripwire in Tiva C launchpad runs too slow.   
    How to improve? Don't use any Energia function.

    What sampling rate? How to do you test that if there is not a single command according to you.

    Serial print is really slow. Not sure how it handles just 1 variable but still.
    digitalRead is also really slow when compared to alternatives. 

    Let's see the function:
     
    int digitalRead(uint8_t pin) { uint8_t bit = digitalPinToBitMask(pin); uint8_t port = digitalPinToPort(pin); uint32_t portBase = (uint32_t) portBASERegister(port); if (port == NOT_A_PORT) return LOW; if(ROM_GPIOPinRead(portBase, bit)){ return HIGH; } return LOW; } I would estimate your addition of 1 digital read (it seems you add some math too, not only the reading) takes about 43 cycles! If you want the full potential of the MCU capabilities, you have to be go lower and lower until you reach your desired performance.

    This would be so much faster with register programming or Tivaware.
     
  13. Like
    L.R.A got a reaction from bluehash in Workshop with Energia and the Educational Boosterpack MkII   
    Hi everyone!

    So I've started something I wanted to make for a while, a workshop using Energia. And the educational boosterpack MkII release seemed a perfect excuse to start.
    Since I am in the board of a student robotics club at my department I find that we needed something written, guiding students that come to us to start a bit in embedded systems.
    I usually make some, not organized, tutorials for the TM4C. I tried to make something more workshop like but it just takes so long since I want it to be written, not needed for live attendance. Well making them for Energia is much easier and faster.

    It's still under development. The idea is to make in formats of Labs. Each lab will be composed by questions, resolutions of the exercises and explanations/guidance. I have made already lab 1 as an example (still some updates could be made).
    I intend to normally add just the exercises - basically to figure out the order on how I want everything as I go - then I'll add the resolutions and the explanations... the resolutions will probably be faster since I might get someone else to make them.


    I will be putting them here: 
    https://sites.google.com/site/luiselectronicprojects/tutorials/energia-tutorials/launchpad-educational-boosterpack-mkii---energia-workshop



    Any feedback, suggestion or help is appreciated
  14. Like
    L.R.A reacted to RahulS in Interfacing 7 Segment LED Display with FT232 USB to Serial Converter chip from FTDI   
    In this tutorial we will interface a 7 Segment LED display serially using FT232 USB to serial converter chip and D2XX library from FTDI.
     
    D2XX is a library released by FTDI international,makers of FT232 and other FT series chip to access the advanced functions of the FT232 chip.
     
    The control program is written in standard C using D2XX library and is compiled using opensource GCC compiler on a windows 7 machine.
     
    Please note that this tutorial is specific to FT232 chip and will not work with USB to serial converter chips manufactured by other companies( like TUSB3410 from TI).
    Full Tutorial is available here
  15. Like
    L.R.A reacted to RahulS in Short Introduction to ADC10 of MSP430 Launchpad   
    A Short introduction on Programming ADC10 of MSP430 Launchpad and Displaying the ADC10 values on a LED Bar graph type Display.
     
    Full Tutorial can be found here 
  16. Like
    L.R.A reacted to RahulS in IAR Embedded Workbench Tutorial for MSP430   
    A short tutorial on how to use the IAR Embedded Workbench  5.3 to program and debug MSP430 microcontrollers on a windows box.The article teaches the reader to create and  compile a simple C Project to blink the LED on a launchpad development board  from Texas Instruments.The article can also be used with other MSP430 emulators like MSP430 Flash Emulation Tool (MSP-FET).

     

    IAR Embedded Workbench for MSP430 is a commercial integrated development environment developed by IAR Systems. The IDE comes in a paid full version and a code limited trial version.The free version can be downloaded from the IAR website free of charge and supports all the MSP430 derivatives. It is limited to a program size of 4KB.This would sufficient for programming most MSP430G2xxx series that comes with Launchpad development kit.

     

    Full Tutorial is available here 

    http://xanthium.in/iar-embedded-workbench-tutorial-for-msp430

  17. Like
    L.R.A reacted to Rei Vilo in required primary expression   
    Functions for interrupts should be void function(void). No parameters allowed.
  18. Like
    L.R.A got a reaction from greeeg in Workshop with Energia and the Educational Boosterpack MkII   
    Hi everyone!

    So I've started something I wanted to make for a while, a workshop using Energia. And the educational boosterpack MkII release seemed a perfect excuse to start.
    Since I am in the board of a student robotics club at my department I find that we needed something written, guiding students that come to us to start a bit in embedded systems.
    I usually make some, not organized, tutorials for the TM4C. I tried to make something more workshop like but it just takes so long since I want it to be written, not needed for live attendance. Well making them for Energia is much easier and faster.

    It's still under development. The idea is to make in formats of Labs. Each lab will be composed by questions, resolutions of the exercises and explanations/guidance. I have made already lab 1 as an example (still some updates could be made).
    I intend to normally add just the exercises - basically to figure out the order on how I want everything as I go - then I'll add the resolutions and the explanations... the resolutions will probably be faster since I might get someone else to make them.


    I will be putting them here: 
    https://sites.google.com/site/luiselectronicprojects/tutorials/energia-tutorials/launchpad-educational-boosterpack-mkii---energia-workshop



    Any feedback, suggestion or help is appreciated
  19. Like
    L.R.A got a reaction from Fmilburn in Workshop with Energia and the Educational Boosterpack MkII   
    Hi everyone!

    So I've started something I wanted to make for a while, a workshop using Energia. And the educational boosterpack MkII release seemed a perfect excuse to start.
    Since I am in the board of a student robotics club at my department I find that we needed something written, guiding students that come to us to start a bit in embedded systems.
    I usually make some, not organized, tutorials for the TM4C. I tried to make something more workshop like but it just takes so long since I want it to be written, not needed for live attendance. Well making them for Energia is much easier and faster.

    It's still under development. The idea is to make in formats of Labs. Each lab will be composed by questions, resolutions of the exercises and explanations/guidance. I have made already lab 1 as an example (still some updates could be made).
    I intend to normally add just the exercises - basically to figure out the order on how I want everything as I go - then I'll add the resolutions and the explanations... the resolutions will probably be faster since I might get someone else to make them.


    I will be putting them here: 
    https://sites.google.com/site/luiselectronicprojects/tutorials/energia-tutorials/launchpad-educational-boosterpack-mkii---energia-workshop



    Any feedback, suggestion or help is appreciated
  20. Like
    L.R.A got a reaction from Connor in Code got corrupted, but is still compiled on MSP432 board. Any way to get it back?   
    You mean on the MSP432 using Energia MT RTOS? I would say that reading the binary or assembly generated is... well pretty much impossible

    Sorry but it's the truth :/
  21. Like
    L.R.A got a reaction from Fmilburn in How to export serial port data to excel sheet in energia?   
    I usually use the debugger in CCS which can do that automatically. Log some numbers in the graph and then export to a sheet. Even with a Energia sketch in CCS
  22. Like
    L.R.A got a reaction from yosh in How to export serial port data to excel sheet in energia?   
    I usually use the debugger in CCS which can do that automatically. Log some numbers in the graph and then export to a sheet. Even with a Energia sketch in CCS
  23. Like
    L.R.A reacted to bluehash in Full SD-Card FatFS Elm-Chan module support for the MSP432 Launchpad   
    Many members on 43oh have requested support for a full FAT system sdcard stack using the super-awesome Elm-Chan module. This is my attempt at it. The software still needs work. so far I have tested the basics: pwd cat filename ls   Hardware: 1. The 43oh SDCard BoosterPack http://store.43oh.com/The-CardReader-SDCard-BoosterPack   2. MSP432 Launchpad https://store.ti.com/msp-exp432p401r.aspx   Software: 1. Compiled with CCS  6.1.0.00104    2. MSPWare Install http://www.ti.com/tool/MSPWARE Make sure you have msp432p4xx_driverlib.lib in the root of your project or linked for the above install folder.   The software has only been tested with a 32MB card. This is Fat16. Cards 2Gb or greater should work just as well.   Thanks to the following software: 1. ElmChan FatFS http://www.elm-chan.org/fsw/ff/00index_e.html   2. TI TivaWare for the SDCard example http://www.ti.com/tool/sw-tm4c  
    Code is on github.
     
     
  24. Like
    L.R.A got a reaction from tripwire in TI will no longer accept .edu addresses for samples   
    Yay... 

    Like getting directly from TI helps... 30$ shipping, why not.

     
  25. Like
    L.R.A got a reaction from phaseform in getting the hibernate library to play nice   
    This type of code as nothing to do with Energia/Arduino!
    This is low level coding with low level libraries (just above register programming)! Like in arduino you can use register programming, or if using a Arduino Due, use low level libraries too, to have full access to your hardware. Of course with time there's high level libraries that appear but this type of feature is MCU specific = less likely for a library to appear.

    Power management = simple? It can actually be quite complex! Which sleep mode? Which peripherals should be on? With which clock on and in which bus? What are the wake up sources? Chose the right core voltage and clock source and speed for different wake up times and consumption.
     
    Granted that there's fewer code examples for some features but don't compare the size of the community + lots of users here go to low level programming for the advantages it brings (or a mix).

    You should be able to use these for delays where the cpu sleeps:
    void sleep(uint32_t milliseconds); void sleepSeconds(uint32_t seconds);

    There's also a void suspend(void); that I think works by using a interrupt as a wake up source.

    And if you really want to go for low level programming with Tivaware libraries, there's actually plenty of examples on the package including some for the hibernate module
×
×
  • Create New...