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

Search:

Type: Posts; User: NikoTeen

Search: Search took 0.00 seconds.

  1. That's tricky. Without "const" it works. void...

    That's tricky.
    Without "const" it works.

    void somename(char* myString)
    {
    Serial.println(myString);
    }

    Thank you
  2. how to use "dir(void (*callback)(char *))"?

    In a code example there is a function to print a directory.
    The function:

    /* Prints a directory.
    * Callback must point to a function that prints one string. void SdPlayClass::dir(void...
  3. Replies
    13
    Views
    398

    I have no access to the compile line because I am...

    I have no access to the compile line because I am compiling from the Arduino/Teensyduino IDE.
    But nevertheless, what does it mean: -Wextra?
  4. what is the best method for access to interrupt variables?

    If a program needs access to variables which are used/changed by an interrupt routine they have to be declared volatile.
    That's clear so far, but what is the best method then to access such...
  5. Replies
    13
    Views
    398

    Hi, both problems now have settled down. As...

    Hi,
    both problems now have settled down.
    As already posted, problem 1 was a matter of char being unsigned for ARM but signed for Arduino.
    Now problem 2 is solved too. It was a char array overflow....
  6. Replies
    2
    Views
    151

    Oh my goodness! quickly edit without thinking...

    Oh my goodness!
    quickly edit without thinking :confused:
    I transferred Arduino AVR code containing type char variables to Teensy code. In C++ for AVR char is signed but for ARM it is unsigned!
    So...
  7. Replies
    2
    Views
    151

    Seria.print() an uint8_t variable

    When code shall be written for Arduino and Teensy it is recommended e.g. to use uint8_t instead of byte.

    But Serial.print() does not accept uint8_t type variables.

    Is there a simpler method...
  8. Replies
    13
    Views
    398

    hi, problem 1 is solved. The code was initially...

    hi, problem 1 is solved.
    The code was initially written for an Arduino controller.
    The decoder class has been transfered to Teensy code without any modification.
    In C++ for Arduino the type char...
  9. Replies
    13
    Views
    398

    Well, in a former post I got this answer too. ...

    Well, in a former post I got this answer too.
    But in this case it is necessary to compile with LTO in order to get correct results.
    Without LTO every second data set is missed and switching...
  10. Replies
    13
    Views
    398

    For testing and to reconstruct the effects...

    For testing and to reconstruct the effects replaying the wav file generates a clean digital signal which will not need a comparator.
    But the real application gets the output of a 433 MHz receiver...
  11. Replies
    13
    Views
    398

    Sorry for the missing attachment. Now they are...

    Sorry for the missing attachment.
    Now they are here.

    KurtE,
    the sketch is not working with wav files. The files are needed as external input to the comparator in the T3.2. The effects described...
  12. Replies
    13
    Views
    398

    compile/optimize error?

    hi,
    in my program for a Teensy 3.2 I see effects which I only can explain by errors in compiling/optimization.

    Mainly there are two problems, both happen in an interrupt routine:
    1) a function...
  13. Replies
    2
    Views
    158

    limit of attachment size?

    I want to attach two wav files to a posting. Bot are compressed in a zip file and have a size of about 6 MBytes. After click on "Upload" I get an error:
    Upload of file failed

    The files are...
  14. Replies
    13
    Views
    587

    Because my program is quite complex and uses...

    Because my program is quite complex and uses external interrupts, I tried to reduce my program to a version which can be posted here and made several tests. But then the effects are away. This leads...
  15. Replies
    13
    Views
    587

    You say that LTO is buggy. But in my case only...

    You say that LTO is buggy. But in my case only LTO generates correct code. Even optimization "debug", which in my understanding is no optimization at all, is printing the variable Scount as some...
  16. Replies
    13
    Views
    587

    meaning of "with LTO"

    hi,
    a search in this forum for "with LTO" brings a lot of threads but nothing concerning this type of compiler optimization.

    My project on a Teensy 3.2:
    A 433 MHz receiver outputs digital...
  17. Replies
    14
    Views
    944

    The background for my question was, that a code...

    The background for my question was, that a code which successfully runs on an Arduino Nano makes problems when run on T3.2.
    The sketch is decoding a Manchester coded signal from a 433 MHz receiver....
  18. Replies
    14
    Views
    944

    micros() within Interrupt possible?

    Hi,
    I want to use interrupts to measure pulse lengths with a Teensy 3.2. The time between interrupts shall be measured by micros().
    But anywhere I read that using micros() within interrupts might...
  19. Replies
    1
    Views
    199

    hi, my initial post was rather complex. Now I...

    hi,
    my initial post was rather complex. Now I have a more simple question.
    For setting the clock rate the SimpleSDAudio library contains two functions, SD_L0_init() and SD_L0_SpiSetHighSpeed().

    ...
  20. I am late with my reply. Did you solve your...

    I am late with my reply.
    Did you solve your problem and if so, what library did you use?

    I am looking for a solution how to speed up SD data transfer with a Teensy 3.2 (96 MHz) which as slow as...
  21. If you are asking for code on block SD read then...

    If you are asking for code on block SD read then I recommend the library SimpleSDAudio.
    Yesterday I opened a post "speed up SD card transfer" asking how to speed up SD data transfer with that...
  22. Replies
    1
    Views
    199

    speed up SD card transfer

    Hi,
    I started a project with Arduino Mega2560. This project contains a library for audio output, SimpleSDAudio, see attachment. This library allows to output audio (speech in my application) by...
  23. Replies
    0
    Views
    290

    testing Teensy comparator

    Hi,
    for a project I needed a comparator with some filtering features. Teensy 3.2 comparators are matching this requirement very well.

    To check the necessary settings I made a test setup with a...
  24. That is exactly the code I also use with some...

    That is exactly the code I also use with some minor changes.
    - The code within setupu() is contained in a function SD_L0_Init(void)
    - The last 2 lines of setup() are shifted to a further function...
  25. Replies
    2
    Views
    1,443

    what are relevant defines for Teensy

    analyzing code of libraries often shows define statements like

    #if defined(__MK20DX256__)
    #define KINETISK
    #define HAS_KINETISK_UART0
    ...

    and so on

    Between a #if defined(...) ... #endif,...
  26. SPI: important difference between Arduino Atmel and ARM

    hi,
    there is an important difference between Arduino Atmel controllers and ARM controllers:
    When porting a software using SPI interface for a SD card from Mega2560 to Teensy3.2 the transfer of data...
  27. Replies
    3
    Views
    1,093

    I have Win7.

    I have Win7.
  28. I stripped the code down to only those parts for...

    I stripped the code down to only those parts for SD card and made a new project SDcardTest. I am testing with IDE 1.8.4 and Teensy extension.
    The folder structure is:...
  29. Replies
    3
    Views
    1,093

    how to reinstall USB driver?

    During some test loops - changing code, compiling, running with outputs on Serial Monitor - the USB driver seems to be lost. An information window appeared that a USB driver is being installed. But...
  30. Replies
    26
    Views
    4,761

    I doubt if hardware or software Serial is...

    I doubt if hardware or software Serial is suitable for this task. A serial link is based on a fixed number of bits to be read.

    If the Teensy is fast enough then using digitalRead() combined with...
  31. SD-card reading with Teensy3.2 much slowlier than with Arduino2560

    Hi,
    I am porting a project from Arduino Mega2560 to Teensy 3.2 in order to speed up the processing.
    Teensy 3.2 is clocked with 96 MHz, Arduino Mega2560 with 16 MHz.

    A part of the project is...
  32. Sorry for the inconvenience, meantime the...

    Sorry for the inconvenience,
    meantime the problem is solved:

    In the Arduino version there was an assembler file .S included for the interrupt routine which is not necessary for the Teensy...
  33. [solved] curious errors porting a project from Arduino to Teensy

    Hi,
    I want to port a project from Arduino 2560 to Teensy 3.2 with a 3rd party library SimpleSDAudio from Arduino Playground.
    I'm advancing step by step. Replacing fast PWM on Arduino with...
  34. It does not work. I tried it also with pointer,...

    It does not work.
    I tried it also with pointer, but also no success.
    I don't understand that.

    But meantime I found a solution. I transferred the creation of the timer into a class definition...
  35. [solved] new problem with start/stop interrupts with IntervalTimer

    Hi,
    I declared my old post on "start/stop interrupts with IntervalTimer" as solved.
    But now there is a new problem. The following code of a test sketch describes it.


    // Create an IntervalTimer...
  36. Replies
    4
    Views
    1,727

    Hi, that's an interesting project. Therefore I...

    Hi,

    that's an interesting project. Therefore I had a look into the referenced adafruit pages (https://learn.adafruit.com/adafruit-neopixel-uberguide). Because you referenced it, I guess you did it...
  37. Replies
    3
    Views
    626

    Hi KurtE, it really works! I tried to...

    Hi KurtE,

    it really works!
    I tried to understand the code but I did'nt. It does'nt matter.
    It is so fine that experts like you take their time to help beginners.

    Thank you very much
    ...
  38. Replies
    3
    Views
    626

    [solved] start/stop interrupts with IntervalTimer

    Hi,
    the IntervalTimer is a fine library. In my application I'd like to start and stop the the individual interrupts of the special timer which is used by a created object of IntervalTimer.

    In the...
  39. Thank you all for the answers. It helped me -...

    Thank you all for the answers.
    It helped me - until new questions will arise :)

    NikoTeen
  40. Thank you for the explanation. Testing my...

    Thank you for the explanation.

    Testing my Arduino sketch on Teensy 3.2 rises new questions.
    1) where can i get a list of data types valid for ARM controllers?
    2) the sketch contains defines,...
  41. compiling for Teensy fails but for Arduino is ok

    hi,
    I am a beginner with Teensy. Up to now I was using Arduino with the Arduino IDE.
    Now I want to run some code written for Arduino Uno with Teensy 3.2.
    Everything is ok with Arduino but...
Results 1 to 41 of 41