Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: luni

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. I'm controlling a particle brake with the builtin...

    I'm controlling a particle brake with the builtin DAC but doing that with an external DAC would be no issue.
  2. Replies
    13
    Views
    333

    I just remembered that I had another issue with...

    I just remembered that I had another issue with the STL some time ago when it complained about a missing std::__throw_bad_alloc();
    IIRC, this function is required if you have -fno-exceptions. It...
  3. Replies
    13
    Views
    333

    Yes, but exception handling should be deactivated...

    Yes, but exception handling should be deactivated by -fno-exceptions (which teensyduino sets). Maybe one of the libs which are linked in binary were originally compiled without -fno-exceptions? But...
  4. Replies
    13
    Views
    333

    Interesting. Seems to be some known problem. E.g....

    Interesting. Seems to be some known problem. E.g. https://answers.launchpad.net/gcc-arm-embedded/+question/203480. Simply adding definitions for the two symbols makes the linker happy and everything...
  5. Replies
    13
    Views
    333

    Just tried std::string and std::vector. The...

    Just tried std::string and std::vector. The following compiles and runs without problems. Tested on a T4.0


    #include "Arduino.h"
    #include <vector>
    #include <string>

    void setup()
    {
    ...
  6. Replies
    21
    Views
    208

    Did a quick search for crc16.h and found a few of...

    Did a quick search for crc16.h and found a few of them on my system. I'd try to change something in the "intended" header to provoke a compiler error. If you don't get an error it probably includes a...
  7. Replies
    21
    Views
    208

    Compiles nicely with VisualTeensy...

    Compiles nicely with VisualTeensy (https://youtu.be/8oTSou1I3IM) so in principle it should be possible with Platform.io as well.

    As you already pointed out it looks like it doesn't find the crc16...
  8. Saw that you trying Platform.io now. Just in case...

    Saw that you trying Platform.io now. Just in case you are still interested in VisualTeensy here a quick video showing how to compile the NXPMotionSense library in VisualTeensy.
    ...
  9. Replies
    4
    Views
    78

    Thanks Paul, I already implemented that after...

    Thanks Paul, I already implemented that after defragsters post.

    Your remarks about the sensibility of that are true of course. Thinking of it, it might be better to not pretend to restore things...
  10. Replies
    4
    Views
    78

    Thanks, that might be even better than setting it...

    Thanks, that might be even better than setting it to the default value;
  11. Replies
    4
    Views
    78

    Attach default Interupt Vector

    I'm attaching an interrupt handler with attachInterruptVector(...). Does anyone know how to re-attach the original default handler? There is a "unused_interrupt_vector" in startup.c but this seems...
  12. Replies
    11
    Views
    330

    Never finalized it but if you want to go that...

    Never finalized it but if you want to go that way, here a starter https://forum.pjrc.com/threads/47783-Teensy-programs-Teensy?highlight=usb-host
  13. Replies
    11
    Views
    330

    I had the same problem in a production...

    I had the same problem in a production environment a couple of years ago. You can disable this behaviour in the windows registry. See here:
    ...
  14. Replies
    3
    Views
    71

    In case you are interested: here is the...

    In case you are interested: here is the definition of Serial.begin... Useful if you want your code to be compatible to legacy boards, but if you code for a Teensy it is rather pointless to call it...
  15. Wow, I do not comment on other people's coding...

    Wow, I do not comment on other people's coding style, so, let's put it that way: this is a very interesting way to structure a program.

    The problem for VisualTeensy is that this 1700 + 200 line...
  16. I'll give it a try, hang on

    I'll give it a try, hang on
  17. Replies
    5
    Views
    240

    No, the CMDLIne tool seems to be at its "pre T4"...

    No, the CMDLIne tool seems to be at its "pre T4" state. There is also a peculiarity regarding the base address of the firmware. I followed the information from this issue...
  18. Replies
    5
    Views
    240

    No, that's a good point. Do you know where I can...

    No, that's a good point. Do you know where I can find information about that?
  19. Just to make sure: You did select the needed...

    Just to make sure: You did select the needed libraries in the libraries tab?
  20. Set the Arduino Folder to...

    Set the Arduino Folder to C:\Arduino\1.8.9-TD-1.47 and use Quick Setup in the Project Tab

    17472
  21. Sounds familiar :-)

    Sounds familiar :-)
  22. Replies
    5
    Views
    240

    TeensySharp is now compatible to T4.0

    I updated TeensySharp https://github.com/luni64/TeensySharp to be compatible with Teensy 4.0.

    It provides a few helper classes for C# Windows applications to perform the following tasks:


    ...
  23. No, this is exactly what it should read. It...

    No, this is exactly what it should read.

    It might be easier if you just explain what you want to do and what doesn't work. You really don't need to edit the makefile it will be generated...
  24. Replies
    35
    Views
    21,985

    If you refer to the TeensySharp library that...

    If you refer to the TeensySharp library that uploads via USB port and the bootloader chip on the Teensy.
  25. ....\AppData\Local\Arduino15\preferences.txt

    ....\AppData\Local\Arduino15\preferences.txt
  26. LIBS_SHARED_BASE should be the base folder of...

    LIBS_SHARED_BASE should be the base folder of your shared libs. Usually ...\documents\Arduino\libraries. It reads the path from the Arduino config file.
    The LIBS_LOCAL_BASE is the base folder for...
  27. Good thing is that vsCode remembers the last...

    Good thing is that vsCode remembers the last choice. I.e. you only need Ctrl+Shift+B ENTER to recompile and upload after the first time.
  28. Yes this is a quite impressive piece of software....

    Yes this is a quite impressive piece of software. Runs out of the box for nearly all modern hardware and probably fits the needs most of the users.

    The reason why I did VisualTeensy non the less...
  29. Replies
    35
    Views
    21,985

    Just for fun I added a quick example "firmware...

    Just for fun I added a quick example "firmware uploader" to the TeensySharp repo. It is a simple WPF app and can easily be styled in any way you like. Since it is just an example, I didn't bother for...
  30. Replies
    10
    Views
    571

    Did this with a T3.6 using VisualCode (the IDE...

    Did this with a T3.6 using VisualCode (the IDE I'm developing with anyway) and the CortexDebug extension. Works without any problems. I removed the bootloader chip connected the two JTag signals, and...
  31. Replies
    35
    Views
    21,985

    At least for windows you can have a look here...

    At least for windows you can have a look here https://github.com/luni64/TeensySharp The purpose of the library is to provide firmware download capability for user applications. You can of course use...
  32. Replies
    17
    Views
    272

    One remark: Would be great if one could pass a...

    One remark:
    Would be great if one could pass a Stream into the file generation instead of the hardcoded Serial as output. I more or less always use Serial for PC/Teensy command communication so,...
  33. Replies
    17
    Views
    272

    Perfect, I'll have a look into that. Thanks for...

    Perfect, I'll have a look into that. Thanks for your support so far.
  34. Replies
    17
    Views
    272

    Ok, writes weird stuff on Serial after the...

    Ok, writes weird stuff on Serial after the waiting period.
    Next step will be to generate a file out of this. Don't want to install python for that. Is it just binary data which needs to be stored...
  35. Replies
    17
    Views
    272

    Ah ha, doesn't crash if I apply the -pg only tho...

    Ah ha, doesn't crash if I apply the -pg only tho the cpp and .S files. Lets see if it outputs something...
  36. Replies
    17
    Views
    272

    Yes, grew somehow over the years. Anyway, the...

    Yes, grew somehow over the years. Anyway, the flags are automatically extracted from boards.txt so they should be OK.

    Doesn't link without the Flags_COM on the c and assembler files. Do you want...
  37. Replies
    17
    Views
    272

    Tried it with a T3.6, same result, Teensy crashes...

    Tried it with a T3.6, same result, Teensy crashes and vanishes from the bus.
  38. Replies
    17
    Views
    272

    Unfortunately not. I only set the -pg for the...

    Unfortunately not. I only set the -pg for the compiler not the linker

    Here the makefile. See the section Flags and Defines.

    ...
  39. There are a lot of alternative IDEs out there. ...

    There are a lot of alternative IDEs out there.

    If you want something running out of the box you can give Platform.io a try.
    Defragsters/FankBs TSet (search in the forum) works with any decent...
  40. Replies
    17
    Views
    272

    Wanted to try in steps and started with the...

    Wanted to try in steps and started with the following (I'm using a makefile & vsCode not the Arduino IDE)

    Board: Teensy 3.2
    Changed/added compile flags: -O0 -gp

    Result:
    Compiling a test...
  41. Replies
    17
    Views
    272

    Sounds interesting, I'll give it a try. The...

    Sounds interesting, I'll give it a try.

    The output you show is generated by the Linux/Mac/Win executable which is listening on a serial port right?
  42. Replies
    5
    Views
    120

    Something like this?...

    Something like this?
    https://www.ebay.com/itm/5pc-Screw-machine-Pin-Header-1x40-40p-pitch-2-54m-Round-pin-Gold-or-Tin-Plated-/141322622504
    or this:...
  43. Might be wrong. but to me it looks like the OP...

    Might be wrong. but to me it looks like the OP makefile does not handle the *.S files?
  44. Here a link to defragsters script...

    Here a link to defragsters script https://github.com/Defragster/Tset



    Here you are:


    #******************************************************************************
    # Generated by...
  45. In case you are running under Windows you can...

    In case you are running under Windows you can have a look at VisualTeensy . It generates makefiles and all the required *.json files to use vsCode as an IDE. If you don't want to use vsCode you...
  46. Thread: One shot timer

    by luni
    Replies
    8
    Views
    451

    There are always ways to do things :-) ...

    There are always ways to do things :-)

    Originally, the library was designed to use one of the FTMs only -> only one TeensyDelay object would ever exist -> Having a class doesn't make sense -> I...
  47. Here a new release which should improve the first...

    Here a new release which should improve the first startup. It doesn't try to be smart anymore and simply provides a dialog to select an Arduino-folder manually instead. ...
  48. Thread: One shot timer

    by luni
    Replies
    8
    Views
    451

    Glad that it works. Just to make sure:...

    Glad that it works.



    Just to make sure: Did you see the possibility to manually set the prescaler in line 23 of the config? Setting this to small values gives you a sub Ás resolution. However,...
  49. That's true. I'll extend the search range a bit....

    That's true. I'll extend the search range a bit. Might also be good to have a dialog to manually set the Arduino location if it doesn't find one.
  50. Thread: One shot timer

    by luni
    Replies
    8
    Views
    451

    https://github.com/luni64/TeensyDelay might...

    https://github.com/luni64/TeensyDelay
    might work for you.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4