Jump to content

Janos

Members
  • Content Count

    33
  • Joined

  • Last visited

  • Days Won

    1

Janos last won the day on August 14 2015

Janos had the most liked content!

About Janos

  • Rank
    Advanced Member

Profile Information

  • Gender
    Not Telling
  • Location
    Germany
  1. That's excactly what I'm doing right now. But always copying the path to the temp folder created by Energia after build and paste it into the command line after the upload command is just a bit more complicated than just clicking Upload in Energia. An easy Integration of this feature could be nice if I wanted to share my work with others...
  2. Thank you! I didn't expect it to be hard coded. Sadly' I'm not very experienced in Java programming, so changing this command in the source code and then build it might be a challenge for me, at least I expect it to take one whole day for me to get everything running The possibilities of Version 1.6x also sound great, do you have a rough idea of when it could be available?
  3. Hi, i'm experimenting with the openMSP430 on an FPGA. If it's cofigured right, I should be able to run sketches compiled by Energia on the Softcore. But flashing the openMSP430 can't be done with mspdebug. A different Uploader, openmsp430-loader, is needed. I checked "Show verbose output during upload" in the Energia preferences and so I noticed, that mspdebug rf2500 --force-reset prog /tmp/build4194166154426707548.tmp/MySketch.cpp.hex is called after compilation. Now I'd like to find the script, running in the Background and change it, so that it calls openmsp430-loader with the right arguments instead. But I just can't find any file into the Energia folders that contains this line. Does anyone know where to find it? An even greater thing would be to create an additional Board, that can be selected via Tools->Board, so that I wouldn't have to modify an existing Board, but that option is not so important to me.
  4. Janos

    Flashing a Tiva Launchpad under OSX

    I've started writing a small GUI for the LM4Flash tool with Xcode. I've no experience with Objective-C and the Cocoa Framework, so it is a lot of try and error work for me - but in the end it doesn't seem to be that difficult to write such a simple program. If I'm successful I'll share it with you
  5. Janos

    Flashing a Tiva Launchpad under OSX

    I found the lm4flash tool inside the Energia app. Just to be sure to not destroy my board with wrong settings, all I have to do is call something like ./lm4flash /Users/Me/Documents/MyCCSWorkspace/Debug/myLastBuild.bin ? Or are there any specific options that have to be passed to the tool to match a special MCU or debug Interface?
  6. Hi, I'm a Mac user, but worked with CCS under Windows to write Code for my Launchpad for the last months. I used to flash the .bin output of the CCS to my Launchpad with the LM Flash Programmer. Now I've switched over to a virtual machine, running Linux with CCS to continue working on my Projects. Sadly, the LM Flash Programmer is a Windows only tool. Are there alternative tools, that could do the job under OS X? A GUI would be nice but not absolutely necessary
  7. Great, that works! So to understand whats happening: When I call pMySubClass=new SubClass(), a new instance of SubClass is created and the address of its memory is stored in pMySubClass. But different to just calling SubClass mySubClass; and getting the memory address via pMySubClass= &mySubClass, the instance created witch new SubClass() exists until I call delete while mySubClass is deleted at the end of the function? As dynamic memory allocation does not work in the embedded environment without OS, creating and deleting instances multiple times in this way would normally cause troubles, but that is no problem here, since my instance is used and never deleted until power down? Please correct me if I got it wrong.
  8. Thank you, that solved my problem! Now if I want to set the pointer during Setup and access it from the loop, the instances of each subclass it possibly could point at, have to be global objects, defined outside the setup function, right? Now after I decided to use one of them for the rest of the time during setup, I won't need the others anymore. I don't want to waste a lot of memory for these unused objects. As I don't think that the destructor is ever called, would manually call the destructor of the unused objects after the decision wich one I should use be good to free memory? I read somewhere that manually calling the destructor could lead to unexpected errors in some cases. Example, similar to the first one: //global Objects MixingConsole* m1; YamahaCL CL1; SoundcraftVI VI1; AvidS3L S3L1; DiGiCoSD SD1; setup(){ ... switch(d) { case 0: { m1= &CL1; delete VI1; delete S3L1; delete SD1; } case 1: { m1= &VI1; delete CL1; delete S3L1; delete SD1; } ... } m1->begin(); } loop(){ m1->sendLevel(channel, level); ... }
  9. Hi, I just don't know how to deal with the following challenge: I want to have a global object that is accessed by multiple functions, that are called in the loop. But I want to decide, wich class it comes from during setup. To make things a little bit more clear, I'm working on a remote control for Mixing Desks. There are a lot of manufacturers out there, all having their own concept on how to remote their desks. But the parameters I access are always the same. So I wrote a base class "MixingConsole" that has the Methods like setLevel, setPan... that are completely empty and then wrote classes for explicit Models that are derived from the base class MixingConsole and define what happens, if for an example setLevel is called (in one case, something is sent via ethernet, in other cases a Midi signal is sent...). Now, I'd like to create a global Object of the type MixingConsole and decide wich kind of Console it is during setup. I'd like to do something like this: MixingConsole m1; setup(){ <some user input for checking wich console should be remoted, decision is stored in Variable d> switch (d) { case 0: m1=YamahaCL case 1: m1=SoundcraftVI case 2: m1=AvidS3L case 3: m1=DiGiCoSD } m1.begin(); } loop(){ m1.sendLevel(channel, level); ... } I know that my switch case statement is no valid c code, but it should outline what I want to do. I'm not sure if it is possible to declare an object of a base class and later make it to an object derived of this class. How may this be done correctly?
  10. Hi everyone, i'm working with a TM4C1294XL launchpad, that has an built in Ethernet port that I use for my recent project. I'd like to build a "Booster Pack" that gives me all the I/O, Switches, Displays I need to put my prototype into a Box to take it out into the real world. Now it would be great to have a built in Ethernet Switch with one port attached to the MCU and two ports attached to a Neutrik Ethercon Connector. Of course, I could buy a three port switch, some short Ethernet cables and plug it all together into the box, but I'd prefer to have it all on one PBC. But I've no idea how easy or difficult this could be. I found the Microchip LAN9313 chip that is a 3 port Ethernet switch IC, but I'm not sure how difficult it is to actually design everything around it. Is it just Attaching these little transformers and an ethernet connector to the chip, or does it require more than that? What about the internal connection to the MCU's ethernet interface, the Microchip IC has one port without a PHY, could this be used to hook up the network port of the MCU in a simple way? If you know a website describing the design of ethernet schematics in a good way, I'd also be happy about links, I didn't find that much useful information. Edit: Corrected the Title, of course I meant "ethernet switch" instead of "ethernet witch"
  11. Thank you for your replies, I learned a lot through these Posts Althoug I still don't know where the MTU defined in the Ethernet library, my problem was solved by the fact, that I don't need these big packets for my application anymore
  12. Update: I just found out, that it works, if I change my display settings, so that the external display becomes the primary Screen. So the problem seems to be the same for Linux and Windows?
  13. I'm not sure if my problem is related to the post above, I installed Energia to a Windows 8 System, everything works fine at first. But when I place libraries that work with other Energia installations in my libraries Folder, Energia just won't start anymore. But I have the same problem with my external Monitor plugged in - so I can't find the relation to the start post in this point.
  14. Hi, is there any specified limit for the size of incomming UDP packets in the EthernetUDP Library? I work with a device that sends xml strings with a size of about 1300 Bytes from time to time. While any other packets are received correctly, these packets do not appear when calling UDP.parsePacket(). Wireshark displays these Packets, so they are definetly sent.
  15. Well, I already used embedXcode (I was the guy that had problems compiling projects containing the ethernet library) and like using this great plugin at home, as I'm a mac user. But the project I work on recently needs an IDE working with Windows as the second programer I work together with has no mac. And since I know Eclipse/CCS relatively good, it still seems to be the best Solution to use the Energia Import function in CCS. I just didn't think of the dependency on timers and so on - in fact these are ressources I'd like to use too in my code. So my conclusion is that I'll go on using Code Composer with the Import function first to work time effectively and will maybe try to reimplemt these functions in future if I find time for that. Maybe next year
×