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

Search:

Type: Posts; User: NikoTeen

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    199

    where to position an interrupt routine?

    My project is using the comparator within a T_3.2 or T_3.5 and CMP1 interrupts.
    The functions for comparator configuration and handling are located in COMP1.h and COMP1.cpp.
    COMP1.h is included in...
  2. Replies
    2
    Views
    219

    enable CMP! interrupt on T_3.5

    Hi,
    in this forum I found code examples for using the comparator in a Teensy 3.5.
    For comparator 1 a code example used

    NVIC_ENABLE_IRQ(IRQ_CMP1); // handler is now cmp1_isr()
    The macro name...
  3. Replies
    1
    Views
    157

    TyTools expects different hex file

    Hi,
    from recommendations in this forum I installed TyTools. But after some time using it the serial monitor didn't work any more. So I uninstalled TyTools. But then it was not possible to upload any...
  4. Replies
    4
    Views
    237

    more info: During testing T_3.5 the connection...

    more info:
    During testing T_3.5 the connection between VUSB and Vin was cut and there was a 4.2V external power supply via Vin-pin.

    For such a configuration, is it necessary first to connect...
  5. Replies
    4
    Views
    237

    no reactions at all. I guess I killed it. With...

    no reactions at all.

    I guess I killed it. With the USB connected, all 3.3V outputs only show 0.5V. Except the USB cable there are no connections at all.
    A small black chip about 1cm from the...
  6. Replies
    4
    Views
    237

    device not recognized, T3.5

    Hi,
    after many tests with a Teensy 3.5 uploading various code versions, now it is not possible to upload any code any more.

    USB type is serial. But I canot set the port as usual. Only COM1 is...
  7. Replies
    3
    Views
    238

    Oh sorry, it is in the manual for a Teensy3.2 and...

    Oh sorry, it is in the manual for a Teensy3.2 and also Teensy 3.5.
  8. Replies
    3
    Views
    238

    What is "Pass Through Mode" with CMP?

    In the Teensy manual for register CMPx_MUXCR there is a bit PSTM which means pass throug mode.
    What happens with pass throug mode?
  9. Replies
    1
    Views
    113

    RTC pins of T3.5

    Hi,
    I want to use the RTC with a Teensy 3.5 board but cannot find where the pins for crystal and VBAT are located.
    Are these pins available on the board at all?
  10. Replies
    1
    Views
    168

    By try and error I found that...

    By try and error I found that delayMicroseconds(5) between wdt_config() and wdt_halt() is sufficient to immediately stop the WD-timer.

    The reason for the necessary delay is open.
  11. Replies
    1
    Views
    168

    watchdog on Teensy 3.5

    Hi,
    I'm observing a curious behaviour of the watchdog on a Teensy 3.5.
    To demonstrate this I connected pin 0 and pin 1 (RX1, TX1) and used the following sketch:

    #define RFrec Serial1
    #define...
  12. Replies
    6
    Views
    227

    WDT_T4 is for Teensy4. I'm using Teensy3.5. I...

    WDT_T4 is for Teensy4. I'm using Teensy3.5.
    I found a thread for Teensy3x which only suggests functions to set the timeout and to reset the WD-timer.
    I also need to stop the watchdog and to...
  13. Replies
    6
    Views
    227

    The problem is a different one. The code I...

    The problem is a different one.
    The code I posted was an extract from a large code. I missed to copy some lines with watchdog statements. Sorry for that.

    The reset caused by the watchdog clears...
  14. Replies
    6
    Views
    227

    Serial Monitor goes offline

    I have the following test setup:

    1) a board with a serial output
    2) a Teensy 3.5, RX1 connected to the serial output
    Every 8 seconds the board is sending a string and after each fourth string it...
  15. definition of data types uint8_t, uint16_t

    Hi,
    for a sketch with Teensy 3.5, developped on Arduino IDE/Teensyduino, I want to use data types uint8_t and uint16_t.

    What header file has to be included to know these data types?
  16. That's tricky. Without "const" it works. void...

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

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

    Thank you
  17. 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...
  18. Replies
    13
    Views
    2,202

    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?
  19. 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...
  20. Replies
    13
    Views
    2,202

    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....
  21. Replies
    2
    Views
    699

    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...
  22. Replies
    2
    Views
    699

    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...
  23. Replies
    13
    Views
    2,202

    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...
  24. Replies
    13
    Views
    2,202

    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...
  25. Replies
    13
    Views
    2,202

    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...
  26. Replies
    13
    Views
    2,202

    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...
  27. Replies
    13
    Views
    2,202

    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...
  28. Replies
    2
    Views
    754

    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...
  29. Replies
    13
    Views
    2,175

    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...
  30. Replies
    13
    Views
    2,175

    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...
  31. Replies
    13
    Views
    2,175

    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...
  32. Replies
    14
    Views
    4,235

    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....
  33. Replies
    14
    Views
    4,235

    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...
  34. Replies
    1
    Views
    1,246

    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().

    ...
  35. 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...
  36. 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...
  37. Replies
    1
    Views
    1,246

    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...
  38. Replies
    0
    Views
    1,457

    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...
  39. 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...
  40. Replies
    2
    Views
    2,570

    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,...
  41. 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...
  42. Replies
    3
    Views
    2,130

    I have Win7.

    I have Win7.
  43. 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:...
  44. Replies
    3
    Views
    2,130

    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...
  45. Replies
    29
    Views
    10,989

    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...
  46. 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...
  47. 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...
  48. [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...
  49. 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...
  50. [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...
Results 1 to 50 of 56
Page 1 of 2 1 2