Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by OzGrant

  1. G'day, The reset worked ok, but will check on the protection when I get home.
  2. G'day, I know its been a long time since the last entry, but found a solution from TI e2e community. HWREG(NVIC_APINT) = NVIC_APINT_VECTKEY | NVIC_APINT_SYSRESETREQ; This causes a Tiva reset.
  3. G'day, At the moment I change a #define that allows me to use different Libs depending on the board used. Is there a #define statement that allows this to happen automatically at compile time? This will allow me to use the same sketch regardless if its for a Tiva or another launch pad.
  4. Robert, Have tried a few capture/spy serial monitors(realterm etc) but they would be difficult for my customers to use. Other than nocking up a VB solution and the hassles getting it install at each site, is there an equivalent cat/dev/ttyxyz that will run in windows and not Linux. Tks
  5. G'day, Have a SD card that is difficult to remove from the mother PCB. due to IP57 water proof box. Is there a simple way of using USB or Bluetooth to transfer a file from the SD card to a spot on the PC hard-drive. Would also be nice to be able to download files to the SD card. Tks
  6. G'day, At last I've made sense of the datasheet, and can read OK. Will put the extra commands in a library, and after a bit of cleaning up will upload it. Grant
  7. Saw a solution for MSP430 http://forum.43oh.com/topic/9678-resetting-a-msp430-from-within-energia So maybe a Watch Dog timeout the way to go.
  8. G'day, Having problems getting a DS2406 to detect a change of input. Have found a library https://github.com/dustin/arduino-2406 that switches the output. But it looks like the output latch is sampled and not the IO pin. Any ideas.
  9. G'day greeeg, Tried your two solutions but nothing happened and the next code line executed. But you have given me a clue on how the reset can be done, and will do a deeper look at your solution, Energia allows you to duck involvement with registers, so this will be a good excuse for me to skill up in this area, Tks for your efforts,
  10. G'day, Yup have previously used a spare O/P pin connected to RESET and it works ok. But have already made the PCB's and would have to get my customers to send the units back to me for hardware modifications. So using greeeg approach tics all the boxes. I don't normally play around with registers, and my lack of exposure is evident as I get declaration errors when I run the APINT |= SYSRESREQ; // Issue a System Reset code. RulesTivaV79.cpp: In function 'void loop()': RulesTivaV79.cpp:1851:5: error: 'APINT' was not declared in this scope USBcsv=true; ^ RulesTivaV79.cpp:1851:14: error: 'SYSRESREQ' was not declared in this scope USBcsv=true; What extra instructions do I need to execute the Reset. Grant
  11. G'day, Other than doing a physical reset on pin 16, it is possible to initiate a reset from sketch code,
  12. Yup, that sounds like the answer. I tried a another brand SD with the same failure. Tks, Grant
  13. G'day, Have had no problems with 4GB SD's using SD.lib. But when I started to use 8GB SD's get all sorts of corrupted files. Not too sure if I have to reformat them (the 4GB just plug in and work) or I have a bad batch from China, or 8GB not supported by SD lib. Any ideas.
  14. Solved. There wasn't a driver installed. My customer was using a spare USB port to talk to Tiva,system.
  15. Have another question: Is it possible to communicate with a Tiva sketch, but not be able to down load a new binary? I am not too sure if the customer has got the correct driver installed. This is one thing I can't do with Teamviewer as I have to "disable signature enforcement etc" and that requires re-boots.
  16. Yup, selected TM4C ok. Will download LM again and see if that helps, but I think build1613 is the latest.. I am also using Teamviewer to connect with the customer that has the problem, so that may be a clue why it fails. At least I can eliminate Win 10 now. Tks
  17. G'day, I get the 'Unable to find a target" error when I try to flash a Energia bin file to a Tiva, The LM is build 1613 and works ok with Win 8. I can use serial in energia to read and write OK so think that eliminates the win driver. Any ideas. Grant
  18. G'day, Can successfully datalog sensor readings to the SD drive, and control the dataloger with a HC05. But when I'm polling certain SD.lib calls will un-pair the HC05 e.g. File dataFile = SD.open("datalog.txt", FILE_WRITE); Has anyone had similar problems using HC05 and the SD library. I think the problem is settings within the HC05, but nothing looks out of place with AT commands.
  19. Tks Rei, Been awhile since I've used Visual Micro, reminds me of my Virtual Basic days.
  20. I do that process at the moment, but it gets a bit crazy, as I have around 30 ino's in my sketch. I thought there may be an easier way. I also have prior versions of ino's also in the notepad++ so that it is easy to cut and past new code. Thanks for your help. Grant
  21. G'day, How does one use an external editor (like notepad++) I ticked the 'use external editor' in preference menu, but don't know how to set up the path. Had a look at preferences.txt but couldn't find any clues there. Tks
  22. I have a temporary solution to my problem of detecting the error line number relative to the start of that tab module. Normally if an error occurs within a function, the function name is displayed in the complier error screen, and all one has to do is search for that function name and determine the error. But if an erroneous character is between functions you normally have no clue where it is, and only told what the absolute error line number is. Step 1. And this function at the start of each tab module. void FirstLineBMP(void){ Serial.print("\nFirstLine BMP\t\t="); Serial.print(__LINE__ -1); } Make each function name and print line unique by including the TAB name Step 2. Add this function: void printLast(){ // one for each Tab FirstLineBMP(); FirstLineBT(); FirstLineEEM(); FirstLineI2C(); FirstLineKM(); FirstLineOLD(); FirstLineOW(); FirstLinePINS(); FirstLinePOLL(); FirstLineRTC(); FirstLineRULES(); FirstLineSD(); FirstLineTRYOUT(); FirstLineZLIB(); FirstLineZORG(); FirstLineZWIFI(); FirstLineZZBUGS(); FirstLineZZDHT22(); FirstLineZZFRAM(); Serial.println(); } Step 3 In setup() add this function call: printFirst(); This will produce list similar to the following: FirstLine BMP =2129 FirstLine BT =2223 FirstLine EEM =2492 FirstLine I2C =2576 FirstLine KM =3098 FirstLine OLD =3254 FirstLine OW =4030 FirstLine PINS =5653 FirstLine POLL =5732 FirstLine RTC =6051 FirstLine RULES =7863 FirstLine SD =9361 FirstLine TRYOUT =10123 FirstLine ZLIB =11023 FirstLine ZORG =11232 FirstLine ZWIFI =12891 FirstLine ZZBUGS =12944 FirstLine ZZDHT22 =12959 FirstLine ZZFRAM =13110 Step 4 Cut and past the list to a file. Step 5 Repeat Steps 3 & 4 whenever substantial code has been added to sketch. Of course these steps can only be performed on a bug free sketch. Step 6 (at last the fun part) An erroneous character has appeared (you accidently typed it in) between a function. You get a message like the following RulesTivaV44.cpp: At global scope: RulesTivaV44.cpp:2746:1: error: 'x' does not name a type As line 2746 is between... FirstLine I2C =2576 FirstLine KM =3098 ... the bug is in I2C tab module So subtract 2576 from 2746 resulting in 170 Now open up the I2C Tab and goto line 170 and fix the bug. Have fun Grant
  23. G'day. I use http://www.aliexpress.com/item/Free-Shipping-1PCS-DS3231-AT24C32-IIC-Precision-RTC-Real-Time-Clock-Memory-Module-For-Arduino-new/32314358327.html?spm=2114.01020208.3.22.FmLETU&ws_ab_test=searchweb201556_7_71_72_73_74_75,searchweb201527_5,searchweb201560_9 This runs on 3v3 plus gives you a bit of EE RAM (all for under a dollar) But you could also remove IC3 and link the pins, plus link out the D1, on your mini pro rtc board. Grant
  • Create New...