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

Search:

Type: Posts; User: yoonghm

Search: Search took 0.00 seconds.

  1. Replies
    77
    Views
    27,217

    You have to check if inserting SD card would...

    You have to check if inserting SD card would cause the K64 to wake up.

    There is a thread library, perhaps can try to run two threads, one is to serve MTG, another is to run other tasks.

    I think...
  2. Replies
    77
    Views
    27,217

    Sorry for delay, it took time to reinstall, read...

    Sorry for delay, it took time to reinstall, read the forum, update and test again.

    I have updated the MTP into https://github.com/yoonghm/MTP, with comments for Teensyduino 1.39.
    I have also...
  3. I believe one can use IntervalTimer to trigger...

    I believe one can use IntervalTimer to trigger create() to pre-create another file before the start of a new day and when the app is not writing log to sd card. Then another IntervalTimer to trigger...
  4. Thread: CMSIS problems

    by yoonghm
    Replies
    25
    Views
    7,416

    Looking forward for the new github repository. ...

    Looking forward for the new github repository. Thanks
  5. Thread: CMSIS problems

    by yoonghm
    Replies
    25
    Views
    7,416

    I saw this ...

    I saw this

    https://hackaday.io/project/18505-chibios-on-teensy-36

    Has you seen it?
  6. For #3, see this post ...

    For #3, see this post

    https://forum.pjrc.com/threads/38027-Teensy-3-6-Power-supply
  7. Thanks for the quick reply.

    Thanks for the quick reply.
  8. How to program MKL02/MKL04 MCU without soldering them?

    Just curious, how does Paul flash so many MKL02/MKL04 MCU without soldering them? Thanks.
  9. Replies
    7
    Views
    2,949

    During VLLS1 mode, the 32-byte VBAT register file...

    During VLLS1 mode, the 32-byte VBAT register file remain powered for customer-critical data.
  10. Replies
    3
    Views
    1,508

    I did not check the datasheet, i did not see...

    I did not check the datasheet, i did not see serial pin in 40

    https://www.pjrc.com/teensy/td_uart.html
  11. Replies
    10
    Views
    1,873

    Hi, there was a typo. Making unused pins to...

    Hi, there was a typo. Making unused pins to input, instead of output, reduces leakage current.
  12. Replies
    10
    Views
    1,873

    10669 You may consider to power it from the same...

    10669
    You may consider to power it from the same supply to Teensy. You have to check voltage and cut out the trace.

    I am curious who do you make all the pins input instead of input, which may...
  13. Teensy 3.6 Stop working, think the voltage regulator is gone

    I tested out LEDs with Teensy 3.6 yesterday. Now it is not working. Voltage across 3.3V and GND gives 0.33. I think the voltage regulator is not gone. Any possibility to replace the voltage...
  14. Quick and smart solution.

    Quick and smart solution.
  15. SMC_VLLSCTRL register is not found in K66 (Teensy 3.6)

    Teensy 3.1/3.2 (K20) and 3.5 (K64) have SMC_VLLSCTRL register.
    However Teensy 3.6 (K66) doest not have SMC_VLLSCTRL register. Instead it has SMC_STOPCTRL register. Need to update kinetis.h ...
  16. Replies
    6
    Views
    2,170

    Did try both, forgotten to update void...

    Did try both, forgotten to update



    void blink(uint8_t pin, uint32_t count) {
    volatile uint32_t index;

    for (; count; --count) {
    digitalWriteFast(pin, !digitalReadFast(pin));
    ...
  17. Replies
    6
    Views
    2,170

    Update: void blink(uint8_t pin, uint32_t...

    Update:



    void blink(uint8_t pin, uint32_t count) {
    // volatile uint32_t index;

    for (; count; --count) {
    digitalWriteFast(pin, !digitalRead(pin));
    delay(100);
  18. Replies
    6
    Views
    2,170

    Got it. It confused me.

    Got it. It confused me.
  19. Replies
    6
    Views
    2,170

    Update: void toggle(uint8_t pin, uint32_t...

    Update:



    void toggle(uint8_t pin, uint32_t count) {
    // volatile uint32_t index;

    for (; count; --count) {
    digitalWriteFast(pin, !digitalRead(pin));
    Serial.print("+");
  20. Replies
    6
    Views
    2,170

    Bug in digitalReadFast()

    If you make the built-in LED to blink 5 times, it will blink 3 instead, then blink the external LED, followed by another 2 blinks on the built-in LED.

    If you make the built-in LED to blink 6...
  21. Replies
    7
    Views
    4,024

    The following code was tested on Teensy 3.6 ...

    The following code was tested on Teensy 3.6



    void flashLed(int del)
    {
    pinMode(LED_BUILTIN, OUTPUT);
    digitalWrite(LED_BUILTIN, HIGH);
    delay(del);
    digitalWrite(LED_BUILTIN, LOW);
  22. Replies
    36
    Views
    14,076

    I would like to use a core interrupt, i.e.,...

    I would like to use a core interrupt, i.e., system tick timer (SysTick) which is at Vector 15, with no IRQ number. SPI.usingInterrupt() is for non-core interrupt.
  23. Replies
    36
    Views
    14,076

    I tried teensy_ssd1351, it is working fine except...

    I tried teensy_ssd1351, it is working fine except
    a) Cannot work with interrupt. I noticed that it try to handle port interrupt. However i used other interrupts. I disable the SPI via a new public...
  24. These two are on usage, not definition. Perhaps...

    These two are on usage, not definition. Perhaps they are inside C runtime library comes with GCC. Need to look at the library files to confirm.
  25. Add new function in SSD1351 to stop SPI Bus

    SSD1351 makes use of SPI which, at the moment, only supports external interrupts (PIOx_IRQn). I made a small change to disable SPI within SPIClass.

    I added the following into ssd1351.h, around...
  26. Source code and definition for the followings:

    Hi:

    I am working on SPI now, wonder where I can find source code for the definitions such as



    BOARD_PIN_TO_SPI_PIN
  27. Replies
    77
    Views
    27,217

    I have converted the file into library. The...

    I have converted the file into library. The library could be downloaded from

    https://github.com/yoonghm/Teensy_3.x/tree/master/Libraries/MTP

    This library requires the following changes
    * ...
  28. Replies
    77
    Views
    27,217

    If you cast a pointer to a different kind of...

    If you cast a pointer to a different kind of pointer and then dereference it, then your program has executed an undefined behavior.

    The in-line function returns a pointer to a real MTPContainer...
  29. Replies
    6
    Views
    3,011

    Thank you for the update.

    Thank you for the update.
  30. Replies
    77
    Views
    27,217

    This is wonderful. MichealMC@ could you post the...

    This is wonderful. MichealMC@ could you post the complete code of your changes? Thanks
  31. Replies
    6
    Views
    3,011

    Do you have update on using Teensy 3.x on u8g2 library?

    Hi xtof:

    Do you have update regarding using u8g2 with Teensy 3.x?

    Regards
    Hor Meng
  32. Replies
    77
    Views
    27,217

    I did this: Updated the two file as in...

    I did this:

    Updated the two file as in https://github.com/PaulStoffregen/cores/pull/230
    Updated menu and built the code with USB_MTPDISK


    Below are my observation

    A lot of warning on...
  33. Replies
    2
    Views
    944

    Thanks, i did not realize that the systick is...

    Thanks, i did not realize that the systick is 1ms.



    volatile int status = 0;

    void systick_isr() {
    systick_millis_count++; // Original ISR code
    if (systick_millis_count % 1000 == 0) {...
  34. Replies
    2
    Views
    944

    systick_isr() does not work fully

    volatile int status = 0;

    void systick_isr() {
    systick_millis_count++; // Original ISR code
    status = !status;
    }

    void setup() {
    Serial.begin(9600);
    pinMode(LED_BUILTIN, OUTPUT);
  35. Replies
    8
    Views
    10,489

    Could not find any pinout in...

    Could not find any pinout in https://www.pjrc.com/store/teensy36.html
  36. Replies
    8
    Views
    1,741

    TimerOne and TimerThree are 16-bit resolutioj...

    TimerOne and TimerThree are 16-bit resolutioj timers. The example comes with tensyduino does not work even if i used 0xffffff (16 bits) or 0xffffffff (24 bits) for initiaoize (unsigned long...
  37. https://drive.google.com/file/d/0BygifsaKFkWVYldpT...

    https://drive.google.com/file/d/0BygifsaKFkWVYldpTnpKUVV1MGs/view?usp=docslist_api
    Here is the photo.
  38. Replies
    16
    Views
    4,068

    https://github.com/PaulStoffregen/cores/blob/maste...

    https://github.com/PaulStoffregen/cores/blob/master/teensy3/mk20dx128.c

    Found it.Thanks.
  39. Replies
    16
    Views
    4,068

    Yes but how to instruct the bootloader a) to act...

    Yes but how to instruct the bootloader
    a) to act as hid, serial, keyboard etc.?
    b) set the clock speed?
  40. Replies
    16
    Views
    4,068

    The Serial Port will appear in the Device Manager...

    The Serial Port will appear in the Device Manager dialog box even if you have empty block in the loop () and init () functions. What make Teensy appear as serial port by the boot loader inside the...
  41. Replies
    16
    Views
    4,068

    Hi I have another problem, may be related ...

    Hi

    I have another problem, may be related

    If I use Arduino (with Teensy's addon), the Serial Port appears in Device Manager dialog. However, if I use other library, such as mbed, the Serial...
Results 1 to 41 of 43