Search results

  1. F

    Datalogger Serial Communication - break detection work unstable - isr wrong

    I need some Help, could someone look over my code i have no idea why my code works unreliable. The code is for a datalogger project with a special serial communication protocol. The protocol is like LIN Protocol but with higher speed and no synch byte. The communication speed is 57600 Baud...
  2. F

    Timestamp at packet receive in serial 1 ISR

    Serial print did'nt work... i get an error message: C:\Users\Muenznef\Desktop\TeensyLogger_old\arduino-1.0.5-r2\hardware\teensy\cores\teensy3\serial1.c:738:4: error: 'Serial' undeclared (first use in this function) the DigitalWriteFast works at this time - a strange thing happend in my ISR - i...
  3. F

    Timestamp at packet receive in serial 1 ISR

    ok, at this time i get the code in assembly - because i had some trouble to understand the asm opcode - i used the mixed version (-S). But i this help me only minimal. Im Interested in understanding, but at this time i must solve my trouble with the datalogger. For this i want to switch on an...
  4. F

    How to create ISR routines?

    I found some code for serial isr modification.... i found it's really elegant - because it extend an existing isr - therefore this solution should be backward compatible... I did'nt know that a way like this exist... The attachInterrupt is known to me - but i used only for systick or eventbased...
  5. F

    How to create ISR routines?

    In the past ( Arduino 1.0.5.r2) i used modified ISR routines for serial reception. This routines are realised by modify existing code in serial1.c in my case. It can be done by this way - but it is really unflexible because everytime the hardwaredriver changed this files must be modified again...
  6. F

    Timestamp at packet receive in serial 1 ISR

    Many thanks to your explication, could you please explain more deep... this is the micros function inside of pins_teensy.c // the systick interrupt is supposed to increment this at 1 kHz rate volatile uint32_t systick_millis_count = 0; //uint32_t systick_current, systick_count...
  7. F

    Teensy 3.1 not more recognised after flashing with cli - unbrickableTeensy bricked???

    Hi kurt, you saved my day.... i try many thinks but not plug it in while holding in the program button.. after i have done it i cane flash my teensy again. Many many thanks for your succesfull recommendation.
  8. F

    Timestamp at packet receive in serial 1 ISR

    I my code in my logger SW shord make a Timestamp every Time a Serial Frame Error is recognised - because i need this information - for this i use this code: I use Arduino 1.05 r2 because i modify old project from 2014 an library parameters have changed since them. ISR in Serial1.c void...
  9. F

    Constantly changing serial port number?

    the changing portnumber only happen in my applications if i use another teensy. At this time i have used more than 90 teensy in my projects - every new teensy is a new com device. With the same this behavior is unknown to me. Ps.: My Os is Win7
  10. F

    Teensy 3.1 not more recognised after flashing with cli - unbrickableTeensy bricked???

    Hi i had never test used the cli before - but because a customer must change my firmware i test it before our customer must use it. For my test i use the newest version of cli and generate a batch file. In this file this commands are used. teensy_loader_cli -mmcu=mk20dx256 -s -v...
  11. F

    MP3-Player Lib, with example

    Hi Frank, thanks for your fast answer. As you reccommend i will open a new thread. Which errors i get? the errors is because of double initialisation of i2c0_isr (more or less this name - sorry my little child is crying for me, the most time for things like this is the night....) the solution...
  12. F

    MP3-Player Lib, with example

    Teensy Audio MP3 codec / trouble with alternative I2C Hi Frank, at first - many thanks for your great work with the mp3 decoder. I try it first time and it Works really fine. I try to use it for an audio player for my little child. My child player has 2 hmi . 1. movement detection and...
  13. F

    LIN network - how do use LINbreak detect interrupt in receiving LIN Message.

    state documentation.... at the end all is working fine... my code at this time is some quick and dirty adaptation of the openlog source to teensy. At this time i can log to an SD card: LIN communication - (sniffer mode) RS232 The Teensy serial1 is modified to recognise also Errors like...
  14. F

    Suggestions/ wishlist for future functionality

    Hi Paul, I like the Teensy and i think you have done a good job. I knew the Teensy from the OHM2013 - it's a fine small powerfull mcu for a cheap prise. As i used it at home i did'nt see the trouble which i would get if i use more than on teensy. Four a datalogger project at work i recommend...
  15. F

    LIN network - how do use LINbreak detect interrupt in receiving LIN Message.

    Thanks for your answer. Makus - many thanks for your Link to your code and for sharing - it is really usefull If i understand your code correct - than it is necessary to check (poll for Framing Error bit (Uart_S1[1] - clear it - and then read the Lin frame Its a nice solution - but I'm not...
  16. F

    LIN network - how do use LINbreak detect interrupt in receiving LIN Message.

    Hello - i have a big topic an i need help. * Background At my work we have some trouble with our electronics and we get some suspect error message reported from our customer as reported from field tests. Our electronics component are coupled by a Lin network together. One electronic component...
Back
Top