Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by mgh

  1. I think the second serial device is just called Serial1 instead of Serial. It is used the same way.
  2. Wow! Thank you Rick, thank you @energia! I'll try some of these this weekend.
  3. But I don't care about that multitasking - does anyone know if it would work otherwise? Yes, I know the black MSP432 has been abandoned, but I'm not going to throw away perfectly good hardware. Thanks for the response!
  4. 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 ov
  5. I just installed Energia 1.8.7E21 on macos 10.12.6. From the Finder, the Energia version number is a little goofy. It shows "${version}" instead of the actual text. This is seen in the "Info.plist" file, and can be fixed there. ... <key>CFBundleShortVersionString</key> <string>${version}</string> <key>CFBundleVersion</key> <string>1.8.7</string> ...
  6. I don't know that any of these ideas will help, it's just what I looked at when I tried to see what the problem might be. When you first start the Boards Manager, do you see the message "Downloading platforms index..."? It gets the small file http://www.energia.nu/pacakges/package_index.json . If you can see that, then it's talking to the package server OK. I've got a slow dial-up connection, so it sits there long enough for me to read it (and wait a little, too!). If you have a fast connection then it might blip past in an instant. It's interesting that it wants to get a 1.0.2 rel
  7. Mac OS X: TimeMachine and SuperDuper!. Every few days I plug in the external USB drive, and TimeMachine does its thing (backing up the files that changed). When that's done, I use SuperDuper! to make an image backup to a different partition on that same external drive. Once a month I plug in a different external drive (a WD My Passport Ultra) and clone the main drive to one of three partitions on the external - it's round-robin so I've got three monthly snapshots, plus TimeMachine, plus the other backup. I also have an old FireWire drive that gets an occasional copy of the main drive.
  8. I have TivaWare SW-EK-TM4C123GXL- unpacked on my system. I know there are more recent versions. It includes a 'doc' directory with many PDFs, like SW-TM4C-EXAMPLES-UG- which is the TivaWare Examples User Guide. The examples themselves are under "examples/peripherals/" There are many sample projects under the "examples/boards/ek-tm4c123gxl" directory, too. It takes awhile to get used to where everything is and how it works, but it's not difficult.
  9. It shouldn't be too hard to tweak the TivaWare isqrt.c to use a 'word' instead of a 'long' - change the types to uint16_t, run the loop 8 times instead of 16, shift by 14 instead of 30 (I think that's right). As always, write a test program on the host to prove the algorithm before it goes onto the micro. Also, the third C example on this page might help: http://www.codecodex.com/wiki/Calculate_an_integer_square_root You'll pick the uint16 settings. Finally, a google search of "Integer Square Roots Jack Crenshaw" turns up lots of pages... some of which suggest that converting to float, u
  10. You have separate routines: void tfr_bfobyte(byte data) void tfr_byte(byte data) And sendFrequency() calls tfr_byte(), but sendBfo() also calls tfr_byte() at one place. I don't know if that's a problem or not. My apologies for the noise if I'm off-base. (Sometimes I have to print the code out on paper and spread it out in front of me, to see what's actually going on.)
  11. I'm late to this party, but here's two other suggestions: Ika-logic has a 4-channel semi-kit for 39 euros: https://www.ikalogic.com/scanalogic-2-edu-kit-2/ Mattair-Tech has a multi-tool for 23USD: https://www.mattairtech.com/index.php/development-boards/zeptoprog-ii.html No affiliation with either company, but I do have a very nice ATxmega128a3u board from MattairTech, and I wish I had the ScanaLogic device.
  12. I'd be tempted to call the Energia Serial.setup() (or whatever), and then adjust the hardware registers for stop-bits and parity behind its back. Dirty, I know. There is an option to enable logging of the full build process ("Show verbose output during..."), so you should be able to find the Makefile and library locations from that. All the compilers and tools you need are included with Energia - that build log will show you the paths. Hmmm, interesting. LM4F has "HardwareSerial" files, but MSP432 has nothing. Edit: 05jul2016 - Arduino has "Serial.begin(speed, config)" whe
  13. The errors are pretty much what they say they are - sinewave.cpp.elf section `.bss' will not fit in region `ram' - something is too big to fit in RAM. region `ram' overflowed by 1114 bytes - and that is how much it is too big. This is your bits array: int bits[100][8]={}; How much space does that take up? One 'int' is maybe 32-bits (yes?), so that's 4 bytes for one entry. Multiply by 800, to get 3200 bytes total. Find out what processor you are using and look-up how much RAM it actually has. Maybe only 2K? EDIT: I forgot to tell you how to fix this! SImply change the type f
  14. (I had an answer here which I thought was helpful, but I was mistaken, so ... I'll look around to see how to delete my comment. Sorry for messing up your topic.) In the meantime, this is the driverlib routine, which suggests you're doing the right thing. void WDT_A_holdTimer(void) { //Set Hold bit uint8_t newWDTStatus = (WDT_A->rCTL.r | WDTHOLD); WDT_A->rCTL.r = WDTPW + newWDTStatus; }
  15. Here's my two cents, might be worthless for you, since I'm on a Mac. I see a difference right here: /home/username/src/energia-0101E0016/hardware/tools/lm4f/bin/arm-none-eabi-g++ /home/raul/src/energia-0101E0016/hardware/tools/lm4f/bin/arm-none-eabi-g++ Which one is real? 'username' or 'raul' ? Or was it just an edit for posting to protect the innocent? Or did you build from source instead of getting a binary? Personally, I think it looks strange that it got installed in 'src', instead of a "Programs"-type directory, but I've been away from Linux for awhile. I get this
  16. I'm not sure which items you mean when you say "... but the displayed items are way too small". The Energia preferences lets you set the editor font and size. On the preferences panel it also shows you the location of the preferences text file preferences.txt. In there are settings for the font, the default window size and position, and some colors (I hate the bright red). For example: editor.window.height.default=600 editor.window.width.default=500 On OS X, it looks like the application icons are under Energia.app/Contents/Resources/Java/lib/theme and settings for the GUI fo
  17. (my two cents) I put these in the Makefile ... arm-none-eabi-size file.elf arm-none-eabi-objdump -dhlt -M reg-names-std file.elf (either .elf or .axf)
  18. This link might help: https://e2e.ti.com/support/development_tools/compiler/f/343/t/56276 Short answer: asm(" nop");
  19. I'm not sure I can help, but I'll give it a try. First, that link was for the Intel 8051, a 8-bit microprocessor from the 1980s. Some general notions of interrupts applied, but I found it pretty confusing since none of the details concerned us. Have you loaded the TM4C "pack" for Keil's product? Just checking. There's bound to be some relevant files under there. I found some interesting pages on Keil's site. When you do a search, there's an 'advanced' search option. Using that, I searched under the ARM products only, for 'cortex interrupt' and some likely articles turned up. Here's o
  20. mgh

    Tiva C with Keil

    The language that you write Energia applications in is C++. This is why the Keil C complier is complaining -- it doesn't know the 'class' keyword of C++. If Keil has a C++ compiler, and you have some time to bring the Energia support libraries over to the Keil environment, then it could work... just my two cents... Maybe the booster pack vendor has some examples in plain C code? Good luck!
  21. I agree. Thanks go to Luis for the detailed followup! Also... check the schematics again and see that some other PortB pins are used for the second USB connector on the side of the board... it's another place to get hosed.
  22. It's a great little board, isn't it! :-) In the little flyer that came with the board, on the spread that shows the header pin functions, you'll find that PD0 and PB6 are connected together. Similarly, PD1 and PB7 are also connected together. It's my understanding that this was done for backward compatibility with the older 43oh booster boards (or something like that). So, we can't drive both pins of those pairs at the same time. The user guide for the board is spmu296.pdf, full title "Tiva C Series TM4C123G LaunchPad Evaluation Board User's Guide". The schematic is in the back, and
  • Create New...