Jump to content

tml

Members
  • Content Count

    72
  • Joined

  • Last visited

  • Days Won

    4

Reputation Activity

  1. Like
    tml got a reaction from thibono in MSP430-based solar-powered weather station   
    Hi Folks,
    Some time ago in a thread http://forum.43oh.com/topic/5550-simple-msp430f5529-bootloader/
    I shared my bootloader that I wrote for my weather station project.
    I'd like to share some info on the project that I have completed and that its now operating in the field.
     
    Link to the description: http://eltomek.blogspot.com/2014/10/diy-weather-station.html
     
    All comments are welcome. Thanks all from this forum who helped me in numerous posts where I had no idea how to get out of technical issues!
     
    Best Regards,
    Tomek
     

  2. Like
    tml got a reaction from bluehash in MSP430-based solar-powered weather station   
    Hi!
    My first weather station that I've presented in this topic has been successfully working in the field since the deployment in September 2014 until early April 2015, when something failed and it stopped communicating with the world. I'll see what happened, I just need to bring it down from the 20m tall tree :-)
     
    In the meantime I've been working on the new hardware and I've finally completed it.
    The enhancements comparing to the 1st version are:
    added on-board lead-acid battery charging circuit (based on the Texas Instruments bq24450 chip) added support for microSD card (to store the pictures from the VGA camera and move the bootloader to make use of microSD instead of internal MCU flash) added GPIO-controlled 5V circuit based on LT1763-5 (also attached to the Launchpad 5V pin) added support for 5V UART with BSS138-based logic level translation (between 3.3V and 5V) - taken from the Sparkfun project moved modem's reset line to ADC-capable GPIO (this line is tricky, will probably later elaborate on that) added on-board voltage dividers to measure battery and solar cell voltages (in the first version I had them externally connected making the mess in the case) replaced SMA connector with u.fl The PCB size is 7x10cm, it was produced again at seeedstudio. I was taking care for assigning the GPIOs for the sensor so that they don't collide with CC3100 BoosterPack (in case wifi is needed instead of GSM).
     
    Well, it wasn't without issues unfortunately. The BSS138 circuit forwards some (330uA) current into 5V circuit, I should have inserted a Schottky at the R17/R18.
     
    I have made 10 PCBs (by mistake, it was meant to be 5 ;-) ), if anyone is interested in having some (bare ones, i.e unassembled) please let me know.
    It's an open hardware project, for now I've attached the schematics in PostScript because sharing the KiCAD project is not trivial - I have a mess in the component library :-)  I'll do it some day.
    Also I will publish the source code, for now it's not something I'd like anyone can see, if you know what I mean....
     
    Best Regards,
    Tomek




    meteo_mainboard.ps
  3. Like
    tml got a reaction from eck in MSP430-based solar-powered weather station   
    Hi Folks,
    Some time ago in a thread http://forum.43oh.com/topic/5550-simple-msp430f5529-bootloader/
    I shared my bootloader that I wrote for my weather station project.
    I'd like to share some info on the project that I have completed and that its now operating in the field.
     
    Link to the description: http://eltomek.blogspot.com/2014/10/diy-weather-station.html
     
    All comments are welcome. Thanks all from this forum who helped me in numerous posts where I had no idea how to get out of technical issues!
     
    Best Regards,
    Tomek
     

  4. Like
    tml got a reaction from abecedarian in MSP430-based solar-powered weather station   
    Hi Folks,
    Some time ago in a thread http://forum.43oh.com/topic/5550-simple-msp430f5529-bootloader/
    I shared my bootloader that I wrote for my weather station project.
    I'd like to share some info on the project that I have completed and that its now operating in the field.
     
    Link to the description: http://eltomek.blogspot.com/2014/10/diy-weather-station.html
     
    All comments are welcome. Thanks all from this forum who helped me in numerous posts where I had no idea how to get out of technical issues!
     
    Best Regards,
    Tomek
     

  5. Like
    tml got a reaction from Automate in MSP430-based solar-powered weather station   
    Hi Folks,
    Some time ago in a thread http://forum.43oh.com/topic/5550-simple-msp430f5529-bootloader/
    I shared my bootloader that I wrote for my weather station project.
    I'd like to share some info on the project that I have completed and that its now operating in the field.
     
    Link to the description: http://eltomek.blogspot.com/2014/10/diy-weather-station.html
     
    All comments are welcome. Thanks all from this forum who helped me in numerous posts where I had no idea how to get out of technical issues!
     
    Best Regards,
    Tomek
     

  6. Like
    tml got a reaction from sq7bti in MSP430-based solar-powered weather station   
    Hi Folks,
    Some time ago in a thread http://forum.43oh.com/topic/5550-simple-msp430f5529-bootloader/
    I shared my bootloader that I wrote for my weather station project.
    I'd like to share some info on the project that I have completed and that its now operating in the field.
     
    Link to the description: http://eltomek.blogspot.com/2014/10/diy-weather-station.html
     
    All comments are welcome. Thanks all from this forum who helped me in numerous posts where I had no idea how to get out of technical issues!
     
    Best Regards,
    Tomek
     

  7. Like
    tml got a reaction from CorB in MSP430-based solar-powered weather station   
    Hi Folks,
    Some time ago in a thread http://forum.43oh.com/topic/5550-simple-msp430f5529-bootloader/
    I shared my bootloader that I wrote for my weather station project.
    I'd like to share some info on the project that I have completed and that its now operating in the field.
     
    Link to the description: http://eltomek.blogspot.com/2014/10/diy-weather-station.html
     
    All comments are welcome. Thanks all from this forum who helped me in numerous posts where I had no idea how to get out of technical issues!
     
    Best Regards,
    Tomek
     

  8. Like
    tml got a reaction from pine in MSP430-based solar-powered weather station   
    Hi Folks,
    Some time ago in a thread http://forum.43oh.com/topic/5550-simple-msp430f5529-bootloader/
    I shared my bootloader that I wrote for my weather station project.
    I'd like to share some info on the project that I have completed and that its now operating in the field.
     
    Link to the description: http://eltomek.blogspot.com/2014/10/diy-weather-station.html
     
    All comments are welcome. Thanks all from this forum who helped me in numerous posts where I had no idea how to get out of technical issues!
     
    Best Regards,
    Tomek
     

  9. Like
    tml got a reaction from roadrunner84 in MSP430-based solar-powered weather station   
    Hi Folks,
    Some time ago in a thread http://forum.43oh.com/topic/5550-simple-msp430f5529-bootloader/
    I shared my bootloader that I wrote for my weather station project.
    I'd like to share some info on the project that I have completed and that its now operating in the field.
     
    Link to the description: http://eltomek.blogspot.com/2014/10/diy-weather-station.html
     
    All comments are welcome. Thanks all from this forum who helped me in numerous posts where I had no idea how to get out of technical issues!
     
    Best Regards,
    Tomek
     

  10. Like
    tml got a reaction from reaper7 in MSP430-based solar-powered weather station   
    Hi Folks,
    Some time ago in a thread http://forum.43oh.com/topic/5550-simple-msp430f5529-bootloader/
    I shared my bootloader that I wrote for my weather station project.
    I'd like to share some info on the project that I have completed and that its now operating in the field.
     
    Link to the description: http://eltomek.blogspot.com/2014/10/diy-weather-station.html
     
    All comments are welcome. Thanks all from this forum who helped me in numerous posts where I had no idea how to get out of technical issues!
     
    Best Regards,
    Tomek
     

  11. Like
    tml got a reaction from bluehash in Simple MSP430F5529 bootloader   
    When I started thinking about doing the bootloader I indeed got interested in the BSL but then I found out over the websites that:
    1. invoking BSL requires a physical reset (source: http://processors.wiki.ti.com/index.php/Custom_MSP430_BSL#Device_Startup_Sequence - " NOTE: The boot code will be only executed on hardware reset (pulling down the /RST signal). Software reset such as using watchdog timer, setting the PMMSWBOR or PMMSWPOR of PMMCTL0 will not trigger the boot code.")
    2. it needs to be written in plain asm (source unknown). I still don't know whether this is true and don't understand why can't this be written in C. I did not dig into this question as I decided to go with the current form of the bootloader.
     
    If you can put more light onto this I'd be more than happy!
     
    Best Regards,
    tml
  12. Like
    tml got a reaction from bluehash in Simple MSP430F5529 bootloader   
    Hi,
    I have spent quite a significant amount of time to figure out how and then write a simple bootloader for MSP430F5529 that I would like to share with you.

    It was written for mspgcc (4.6.3) and uses small memory model; for accessing high flash (20-bit addressed) I use some simple assembler inlines. It won't work out of the box in CCS.

    This project is fully functional and I use it to remotely reflash my weather station (https://plus.google.com/u/0/photos/102121325118286323880/albums/5936572393229426625?authkey=CJ3N8Y2CtJiOIQ). I just push the new application image onto the web server, then the application working on the target device downloads it, parses and puts onto the flash and then lets the bootloader do the rest of the work.

    The methods used for reflashing are kinda primitive (e.g. word access, while the block write would be way more efficient), anyway, I had to have this up and running in reasonable time.
    I think making the code CCS-compatibile is not a big deal, the main part is flash access enclosed in flash.c. Moving code to RAM is even simpler in CCS with LOAD and RUN directives.

    Anyway, any issue reports and comments are welcome!

    repo url: https://bitbucket.org/eltomek/msp430bootloader

    Best Regards,
    Tomek
     
    EDIT: fixed the link to the repo.
  13. Like
    tml got a reaction from abecedarian in Simple MSP430F5529 bootloader   
    Hi,
    I have spent quite a significant amount of time to figure out how and then write a simple bootloader for MSP430F5529 that I would like to share with you.

    It was written for mspgcc (4.6.3) and uses small memory model; for accessing high flash (20-bit addressed) I use some simple assembler inlines. It won't work out of the box in CCS.

    This project is fully functional and I use it to remotely reflash my weather station (https://plus.google.com/u/0/photos/102121325118286323880/albums/5936572393229426625?authkey=CJ3N8Y2CtJiOIQ). I just push the new application image onto the web server, then the application working on the target device downloads it, parses and puts onto the flash and then lets the bootloader do the rest of the work.

    The methods used for reflashing are kinda primitive (e.g. word access, while the block write would be way more efficient), anyway, I had to have this up and running in reasonable time.
    I think making the code CCS-compatibile is not a big deal, the main part is flash access enclosed in flash.c. Moving code to RAM is even simpler in CCS with LOAD and RUN directives.

    Anyway, any issue reports and comments are welcome!

    repo url: https://bitbucket.org/eltomek/msp430bootloader

    Best Regards,
    Tomek
     
    EDIT: fixed the link to the repo.
  14. Like
    tml got a reaction from greeeg in Simple MSP430F5529 bootloader   
    Hi,
    I have spent quite a significant amount of time to figure out how and then write a simple bootloader for MSP430F5529 that I would like to share with you.

    It was written for mspgcc (4.6.3) and uses small memory model; for accessing high flash (20-bit addressed) I use some simple assembler inlines. It won't work out of the box in CCS.

    This project is fully functional and I use it to remotely reflash my weather station (https://plus.google.com/u/0/photos/102121325118286323880/albums/5936572393229426625?authkey=CJ3N8Y2CtJiOIQ). I just push the new application image onto the web server, then the application working on the target device downloads it, parses and puts onto the flash and then lets the bootloader do the rest of the work.

    The methods used for reflashing are kinda primitive (e.g. word access, while the block write would be way more efficient), anyway, I had to have this up and running in reasonable time.
    I think making the code CCS-compatibile is not a big deal, the main part is flash access enclosed in flash.c. Moving code to RAM is even simpler in CCS with LOAD and RUN directives.

    Anyway, any issue reports and comments are welcome!

    repo url: https://bitbucket.org/eltomek/msp430bootloader

    Best Regards,
    Tomek
     
    EDIT: fixed the link to the repo.
  15. Like
    tml got a reaction from GeekDoc in Simple MSP430F5529 bootloader   
    Hi,
    I have spent quite a significant amount of time to figure out how and then write a simple bootloader for MSP430F5529 that I would like to share with you.

    It was written for mspgcc (4.6.3) and uses small memory model; for accessing high flash (20-bit addressed) I use some simple assembler inlines. It won't work out of the box in CCS.

    This project is fully functional and I use it to remotely reflash my weather station (https://plus.google.com/u/0/photos/102121325118286323880/albums/5936572393229426625?authkey=CJ3N8Y2CtJiOIQ). I just push the new application image onto the web server, then the application working on the target device downloads it, parses and puts onto the flash and then lets the bootloader do the rest of the work.

    The methods used for reflashing are kinda primitive (e.g. word access, while the block write would be way more efficient), anyway, I had to have this up and running in reasonable time.
    I think making the code CCS-compatibile is not a big deal, the main part is flash access enclosed in flash.c. Moving code to RAM is even simpler in CCS with LOAD and RUN directives.

    Anyway, any issue reports and comments are welcome!

    repo url: https://bitbucket.org/eltomek/msp430bootloader

    Best Regards,
    Tomek
     
    EDIT: fixed the link to the repo.
  16. Like
    tml got a reaction from reaper7 in Simple MSP430F5529 bootloader   
    Hi,
    I have spent quite a significant amount of time to figure out how and then write a simple bootloader for MSP430F5529 that I would like to share with you.

    It was written for mspgcc (4.6.3) and uses small memory model; for accessing high flash (20-bit addressed) I use some simple assembler inlines. It won't work out of the box in CCS.

    This project is fully functional and I use it to remotely reflash my weather station (https://plus.google.com/u/0/photos/102121325118286323880/albums/5936572393229426625?authkey=CJ3N8Y2CtJiOIQ). I just push the new application image onto the web server, then the application working on the target device downloads it, parses and puts onto the flash and then lets the bootloader do the rest of the work.

    The methods used for reflashing are kinda primitive (e.g. word access, while the block write would be way more efficient), anyway, I had to have this up and running in reasonable time.
    I think making the code CCS-compatibile is not a big deal, the main part is flash access enclosed in flash.c. Moving code to RAM is even simpler in CCS with LOAD and RUN directives.

    Anyway, any issue reports and comments are welcome!

    repo url: https://bitbucket.org/eltomek/msp430bootloader

    Best Regards,
    Tomek
     
    EDIT: fixed the link to the repo.
  17. Like
    tml got a reaction from Automate in Simple MSP430F5529 bootloader   
    Hi,
    I have spent quite a significant amount of time to figure out how and then write a simple bootloader for MSP430F5529 that I would like to share with you.

    It was written for mspgcc (4.6.3) and uses small memory model; for accessing high flash (20-bit addressed) I use some simple assembler inlines. It won't work out of the box in CCS.

    This project is fully functional and I use it to remotely reflash my weather station (https://plus.google.com/u/0/photos/102121325118286323880/albums/5936572393229426625?authkey=CJ3N8Y2CtJiOIQ). I just push the new application image onto the web server, then the application working on the target device downloads it, parses and puts onto the flash and then lets the bootloader do the rest of the work.

    The methods used for reflashing are kinda primitive (e.g. word access, while the block write would be way more efficient), anyway, I had to have this up and running in reasonable time.
    I think making the code CCS-compatibile is not a big deal, the main part is flash access enclosed in flash.c. Moving code to RAM is even simpler in CCS with LOAD and RUN directives.

    Anyway, any issue reports and comments are welcome!

    repo url: https://bitbucket.org/eltomek/msp430bootloader

    Best Regards,
    Tomek
     
    EDIT: fixed the link to the repo.
  18. Like
    tml got a reaction from bluehash in High current drain on the boosterpack-like pcb - help needed   
    Hi!
    I've made a prototype of the weather station board in a boosterpack-way that has uBlox Leon G100 modem on it. The 1st power stage is done by ST1S10 PWM step-down to 3V8 which forks out to:
    - TI LP2985IM5-3.3 input (to supply the MSP430)
    - Leon G100 modem power supply.
     
    The schematic can be found under this link (no Google account is needed): https://drive.google.com/file/d/0Bx30mlv7ga40aUZvN3FpelFaQTA/edit?usp=sharing and the pcb looks like this:
    https://lh5.googleusercontent.com/-wbVHEIxOnhU/UtrBD6GiAFI/AAAAAAAAIEA/5cDehtwIxAU/w1200/IMG_20140118_185923.jpg
     
    There is no launchpad attached, the pin rails are empty, nothing connected.
     
    Now, upon power voltage attachment (K1 socket) the system consumes ~70mA for 2-3 seconds as the capacitors charge up. Once they are stabilized the power consumption is around 20mA and when I power off the modem (AT+CPWROFF) the system consumes 8mA. That is a lot I guess
    I detached the computer from the RS ports, there is nothing more than the main power supply.
     
    Is that possible that ST1S10 or LP2985IM5-3.3 consume this amount of current in idle? The application notes say they are
    way less current hungry, at least first two:
    - DALC112S1 2uA - http://www.st.com/web/en/resource/technical/document/datasheet/CD00001317.pdf
    - ST1S10 - 1.2mA - http://www.st.com/web/en/resource/technical/document/datasheet/CD00169322.pdf
    - LP2985-3.3  - cannot find but I don't think it can be more than ST1S10's consumption - http://www.ti.com/lit/ds/symlink/lp2985-n.pdf
    - Leon G100 in power off mode 90uA - http://www.u-blox.com/images/downloads/Product_Docs/LEON-G1-G2_DataSheet_(UBX-13001913).pdf
     
    What is your opinion?
     
    Best Regards,
    tml
  19. Like
    tml reacted to cubeberg in Booster pack stacking at the bottom?   
    You should be fine adding the BP to the bottom - TI actually created an RGB LED boosterpack that worked like that.  Plus - with stacking headers as TI has suggested - you can technically add the BP to either the top or bottom.  I would think that your only concern beyond that would be if the PCB above your GSM modem might cause an issue with signal.  I'm assuming you're not talking about the MSP430G launchpad since it doesn't have headers accessible on the bottom.  The 5529 LP does.
  20. Like
    tml reacted to cde in External power supply on MSP430F5529-LP boosterpack connector?   
    Sure, just pull the 5v and 3.3v jumpers on the ezfet connector first. If you don't want to power ANY of the fet or hub side, just pull all the jumpers. And yes, you can only provide 3.3v (or any DVCC voltage in the f5529's range), given that you know that the 5v side will not be used/needed.
     
    Power can be injected at any 3.3v or 5v point on the board, including the jumper block, the 40 pin headers, or the two power headers at the bottom.
  21. Like
    tml reacted to jpnorair in Is BoosterPack-like solution lame in my case?   
    Is your device battery powered?  The GSM radio will need a good ground, so you wouldn't want to go smaller than a Launchpad.  Unless you are worried about size or cost in volume, always go the booster pack route.  (Well, that's an opinion, but I think it's a commonly held opinion)
  22. Like
    tml reacted to tripwire in Cannot wake up from LPM upon ADC conversion end - please help! :)   
    Ok, it's most likely not getting into the ADC12 ISR then (unless something weird's going on with the uart_puts call from inside ADC12 ISR).
     
    Looking at whether the example code works correctly is probably the best thing to try next.
     
     
    It would wake the CPU up, but if the ADC12IFG0 flag is never cleared and GIE is set execution would be stuck in an infinite loop. As soon as the return from the ISR executes it would immediately retrigger. The code after __bis_status_register(LPM0_bits + GIE) in get_adc_data() wouldn't get chance to run, so it would appear as if the CPU was still asleep.
  23. Like
    tml reacted to jazz in /dev/ttyACM1 UART of MSP430F5529 - garbage data received on the PC   
    UCA1 TX/RX lines on target MSP430F5529 are connected to UCA0 RX/TX lines on MSP430F5528 eZ-FET Lite. If you are writing that everything is working fine when you connect UCA1 TX/RX lines on target MSP430F5529 directly to PC (over your adapter), but not working if it is going over eZ-FET Lite, then the problem is in eZ-FET Lite USB-UART bridge software. Unfortunately firmware source code is still no available, and there is no description about supported BR, but it should work (per LP datasheet) with any BR up to 1 Mbps. Is there any reason why you need so low (9600 bps) BR. Try for example 115200 bps.
  24. Like
    tml reacted to Rickta59 in MS430F5529 LaunchPad does not enumerate after --allow-fw-update   
    That version of mspdebug is really old. You might try building mspdebug from source and then point LD_LIBRARY_PATH at the libmsp430.so you want to use.
     

    $ export LD_LIBRARY_PATH=/home/kimballr/ti_ccs5_5/ccsv5/ccs_base/DebugServer/drivers $ mspdebug tilib MSPDebug version 0.22 - debugging tool for MSP430 MCUs Copyright (C) 2009-2013 Daniel Beer <dlbeer@gmail.com> This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. MSP430_GetNumberOfUsbIfs MSP430_GetNameOfUsbIf Found FET: ttyACM0 MSP430_Initialize: ttyACM0 Firmware version is 30300006 MSP430_VCC: 3000 mV MSP430_OpenDevice MSP430_GetFoundDevice Device: CC430F5137 (id = 0x0038) 3 breakpoints available MSP430_EEM_Init Chip ID data: 51 37 12 Available commands: = erase isearch power save_raw simio alias exit load prog set step break fill load_raw read setbreak sym cgraph gdb md regs setwatch verify delbreak help mw reset setwatch_r verify_raw dis hexout opt run setwatch_w Available options: color gdb_loop enable_bsl_access gdbc_xfer_size enable_locked_flash_access iradix fet_block_size quiet gdb_default_port Type "help <topic>" for more information. Use the "opt" command ("help opt") to set options. Press Ctrl+D to quit. (mspdebug) Edit: .. heh just realized you can see that I'm not connected to an msp430f5529 .. I'm using the new ezFET to program a cc430f5137 
    -rick
  25. Like
    tml got a reaction from bluehash in Best information for those new to the MSP430?   
    Hi,
    yyrkoon mentioned a book Making Embedded Systems, just because it's publicly accessible I give this link to the pdf here: http://Edit
     
    Regards,
    tml
×
×
  • Create New...