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

Search:

Type: Posts; User: wangnick

Search: Search took 0.00 seconds.

  1. Replies
    797
    Views
    33,693

    Plans for T4.1 Ethernet library I was...

    Plans for T4.1 Ethernet library

    I was wondering what are the plans for the software support of the native T4.1 Ethernet. Will the https://github.com/PaulStoffregen/teensy41_ethernet be extended...
  2. Replies
    797
    Views
    33,693

    Ok, I connected T41 to HR911102A as follows: T+...

    Ok, I connected T41 to HR911102A as follows: T+ TD+(1), T- TD-(2), R+ RD+(7), R- RD-(8), LED G+(9), GND G-(10). I left TDC(3), (4), (5), RDC(6), Y+(11) and Y-(12) of the HR911102A unconnected (on the...
  3. Replies
    797
    Views
    33,693

    Hi Paul, I finally received my beta T4.1! ...

    Hi Paul,

    I finally received my beta T4.1!

    MAybe you can help me with a small issue. I still have quite a few HanRun HR911102A from a previous project around, which I connected at that time as...
  4. Replies
    797
    Views
    33,693

    Is a magjack with transformers sufficient? I...

    Is a magjack with transformers sufficient? I still have a few from a previous project of mine. But I thought you'd need a PHY chip in between the magjack and the T4.1?

    Kind regards,
    Sebastian
    ...
  5. Hi JKIM, can you not traverse your application...

    Hi JKIM,

    can you not traverse your application data down to a reasonable depth, and then on-by-one emit the objects on that depth as a reasonably-sized JSON substring onto the file stream? I don't...
  6. Hi laptophead, the TX buffer size increase...

    Hi laptophead,

    the TX buffer size increase should now avoid the TX buffer ever filling up completely and therefore Serial5.write() should not take longer anymore than the copying into the TX...
  7. Hi laptophead, Your longest output string is...

    Hi laptophead,

    Your longest output string is "M.Curr: M1:%.1fA %.1fA %.1fA %.1fA B: M11:%.1fA %.1fA %.1fA %.1fA, Volts:%.1fA %.1fA Total," which is about 100 characters long (depending a...
  8. I've also seen posts that for HC-05 3V3 should be...

    I've also seen posts that for HC-05 3V3 should be enough. NCS, SDA, SCL pullups for the MPU9250 are on the module, I guess?

    If I was you I would always foresee the ability to power cycle those...
  9. That is the low-level Arduino way of increasing...

    That is the low-level Arduino way of increasing the PWM frequency on pins D9 and D10 that are controlled by Timer 1 on Atmega328. Your analogWriteFrequency(4,25000) replaces that.



    Maybe you...
  10. Hi Johnny, 1. You try to activate the input...

    Hi Johnny,

    1. You try to activate the input pullup on the RPM_FAN_PIN_GREEN by writing HIGH to the INPUT pin. This is seemingly (looking at cores/teensy4/digital.c:digitalWrite) not implemented on...
  11. I'm missing the analogWriteFrequency call in your...

    I'm missing the analogWriteFrequency call in your code ...

    Kind regards,
    Sebastian
  12. If you ask me, putting an SD card and other...

    If you ask me, putting an SD card and other devices on the same SPI bus is a fragile design, as any "accidental" power cycle of the SD card returns the card into SD mode, possibly unnoticed by the...
  13. Hi, if you use an SD card and some other...

    Hi,

    if you use an SD card and some other devices on the same SPI bus, then the first thing to do after power-on is to bring the SD card into SPI mode. By default SD cards are in SD mode after...
  14. Superb, keep going. Others said before it...

    Superb, keep going. Others said before it wouldn't be possible at all on the T4. Plus, 12-bit color sounds great!

    Kind regards,
    Sebastian
  15. Replies
    89
    Views
    19,926

    If I'm not mistaken then this is an excerpt of a...

    If I'm not mistaken then this is an excerpt of a perfectly valid HEX file. So I guess you'd have to rewrite the flasher4 or whatever you use to buffer the binary stream as it is being decode, and to...
  16. Replies
    16
    Views
    621

    If this is a must why not seal in a second T4,...

    If this is a must why not seal in a second T4, also connected to CAN, able to program the first one using USB host mode ...

    Kind regards, Sebastian
  17. Replies
    89
    Views
    19,926

    Congratulations! Sometimes it helps just to know...

    Congratulations! Sometimes it helps just to know that it is possible, no?

    I'm a bit confused what you mean with lower and upper. There is a nice Memory Layout picture in...
  18. Replies
    89
    Views
    19,926

    Jumping to 0x60000000 will probably not work....

    Jumping to 0x60000000 will probably not work. Have a look at the .lst file that is generated from your code -- at 0x6000000 seems not to reside any proper instructions.

    Rather, you could think...
  19. Replies
    89
    Views
    19,926

    On Teensy 4.0 the flash memory starts at...

    On Teensy 4.0 the flash memory starts at 0x60000000 and has a size of 0x200000. The last 0x10000 are used by Teensyduino for EEPROM emulation and a 4kB know-good LED blink program.

    You can compute...
  20. Replies
    89
    Views
    19,926

    Hi bigboosted, all, I got this to work. In my...

    Hi bigboosted, all,

    I got this to work. In my case I use a Raspberry Pi with Mosquitto, PostgreSql and node-red, a Teensy 4.0 as an mqtt-to-canbus "router", and on the canbus I have a Teensy 3.2...
  21. Replies
    2
    Views
    368

    Ok, thanks. Nice to know that HW_OCOTP_MACn...

    Ok, thanks.

    Nice to know that HW_OCOTP_MACn are already predefined. Your teensyMAC() confirmes my assumptions.

    FWIW, Teensy 3.2 seem to be nmbered 1xxxx, Teensy 3.5/3.6 3xxxx, and Teensy 4.0...
  22. Replies
    2
    Views
    368

    Teensy 4.0 Serial Number

    Dear all,

    on the Teensy 3.x there is a 32-bit unique id in one of the records of the program-once area of the flash. You can retrieve it using e.g. https://github.com/sstaub/TeensyID.

    Stefan...
  23. Ah, I wasn't aware that the interrupt would...

    Ah, I wasn't aware that the interrupt would re-execute as long as it is enabled with the originating flag still asserted. From AVR is was used to the hardware clearing the corresponding flag prior to...
  24. attachInterruptVector(IRQ_CMP1,isr), how to write isr?

    Dear all,

    I'm trying to measure the time it takes an 100nF capacitor to discharge via a 100kΩ resistor to about 1V after being fully charged to 3.3V, using analog comparator 1 of a Teensy 3.2,...
  25. Replies
    89
    Views
    19,926

    Ok, as 0x100000 points to space not backed by...

    Ok, as 0x100000 points to space not backed by storage this is not surprising. 0x60100000 works much better ...

    Kind regards,
    Sebastian
  26. Replies
    89
    Views
    19,926

    For me flash_erase_sector(0x100000) does not...

    For me flash_erase_sector(0x100000) does not return ...

    Any idea?

    Kind regards, Sebastian
  27. The datasheet is, ahem, utterly misleading IMHO....

    The datasheet is, ahem, utterly misleading IMHO. Refer also https://community.nxp.com/thread/325090. To interpret it correctly one seemingly has to deduce know that on a little-endian processor, when...
  28. Nice work indeed. I'm working on means to update...

    Nice work indeed. I'm working on means to update Teensy 3.x application in the field (actually: in the garden) via CAN bus.

    But I'm currently extremely puzzled about the endianness involved....
  29. Replies
    17
    Views
    1,305

    I have a 64x64 LED panel on the garden fence...

    I have a 64x64 LED panel on the garden fence towards the street as a lit house number with a 5A buck converter, a Teensy, Smartmatrix, and some code of mine. I have 65m of 6x2x0.8mm sealed telephone...
  30. Replies
    3
    Views
    2,987

    Thanks Paul. I was too scared so far to dig into...

    Thanks Paul. I was too scared so far to dig into the DMA business. Also, I need to perform run-length encoding on the outgoing data if I want to go beyond the 500-800 kSamp/sec, so filling the...
  31. Replies
    3
    Views
    2,987

    ARM assember code

    Hi all,

    following issue: Teensy 3.0 should work as logic analyser. Fastest possible sampling rate whilst streaming results via USB to PC.

    So I've set up the PIT0 timer to sample the data port...
  32. Replies
    9
    Views
    3,429

    For me it works without any change to...

    For me it works without any change to mk20dx128.h.

    pit_isr_simple.ino:

    #include "pit.h"

    void setup() {
    Serial.begin(0);
    pit_setup();
    }
  33. Replies
    9
    Views
    3,429

    This has to be in a .cpp or in a .h. If it's in...

    This has to be in a .cpp or in a .h. If it's in the .ino the Arduino IDE magic preprocessor will pick the function definition up and add an early declaration which lacks the extern "C".
  34. Teensy 3.0 as logic analyzer, instruction timing

    Dear all,

    I'm working on rewriting the Arduino Logic Analyzer from Andrew Gillham (https://github.com/gillham/logic_analyzer, see also http://letsmakerobots.com/node/31422) to run on the Teensy...
Results 1 to 34 of 34