Forum Rule: Always post complete source code & details to reproduce any issue!
Page 2 of 4 FirstFirst 1 2 3 4 LastLast
Results 26 to 50 of 92

Thread: Teensyduino 1.21 Test #2 Available

  1. #26
    Member Kontakt's Avatar
    Join Date
    Jan 2015
    Location
    Norfolk, VA
    Posts
    21
    I have verified expected functionality with the modified prototype.

  2. #27
    @Paul, do you have a deadline if I want to submit the SmartMatrix Library to be included in Teensyduino 1.21? Do you know if you're going to update FastLED to version 3.x for Teensyduino 1.21?

  3. #28
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,550
    Anytime in the next few weeks would be good.

  4. #29
    Senior Member duff's Avatar
    Join Date
    Jan 2013
    Location
    Las Vegas
    Posts
    969
    Paul, did you try this with RAW-HID (Serial) yet? It does not print to serial monitor. My setup -> OSX 10.9.5, Arduino 1.0.6
    Last edited by duff; 01-09-2015 at 01:15 AM.

  5. #30
    It seems the Mouse.move(x,y) has reversed directions. To achieve the same directions as 1.20 I had to replace it with Mouse.move(-x,-y).

    Not a big concern for me, but you never know...

  6. #31
    Senior Member
    Join Date
    Mar 2013
    Location
    Austin TX
    Posts
    425
    Question on the toolchain setup. I'm trying to update my Eclipse setup to Arduino 1.0.6 and Teensyduino 1.21. The toolchain directory is different, but moreover things like make.exe are gone. I'm at a loss on where to point things. Looking in the makefile at: arduino\hardware\teensy\cores\teensy3\Makefile, it appears to be wrong. The COMPILERPATH is incorrect.

    Do I need to install this separately as described here? : http://gnuarmeclipse.livius.net/blog...tools-windows/

    Is there an existing thread on this topic?

  7. #32
    Senior Member
    Join Date
    Mar 2013
    Location
    Austin TX
    Posts
    425
    Quote Originally Posted by nox771 View Post
    Do I need to install this separately as described here? : http://gnuarmeclipse.livius.net/blog...tools-windows/
    A followup, downloading the build tools from http://sourceforge.net/projects/gnua...Miscellaneous/ (as provided by above link), and installing the .exe and .dll files provided to: arduino\hardware\tools\arm\bin has restored functionality to my Eclipse build process.

    I'm curious if the make.exe functionality is provided via some other mechanism in the 4.8.4 build process? Or is this an oversight? make.exe was in my previous Teensyduino 1.19 install.

  8. #33
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,679
    The #define FASTRUN needs (at minimum) an additional attribute "noinline". maybe more, i'm investigating this..

  9. #34
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,679
    Paul, i would suggest
    #define FASTRUN __attribute__ ((section(".fastrun"), noinline, noclone ))
    Last edited by Frank B; 01-11-2015 at 12:18 PM.

  10. #35
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    3,248
    Quote Originally Posted by Frank B View Post
    Paul, i would suggest
    #define FASTRUN __attribute__ ((section(".fastrun"), noinline, noclone ))
    Just to be safe, you want two leading underscores before/after each word just in case somebody decides to #define noinline, etc.:

    Code:
    #define FASTRUN  __attribute__ ((__section__(".fastrun"), __noinline__, __noclone__))

  11. #36
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    3,248

    Cool

    Quote Originally Posted by Frank B View Post
    Paul, i would suggest
    #define FASTRUN __attribute__ ((section(".fastrun"), noinline, noclone ))
    Just to be safe, you want two leading underscores before/after each word that is not within quotes just in case somebody decides to do some like #define noinline, etc.:

    Code:
    #define FASTRUN  __attribute__ ((__section__(".fastrun"), __noinline__, __noclone__))

  12. #37
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,679
    Don't know if it were mentioned before, two warnings when using SD:
    Code:
    C:\Arduino\libraries\SD\utility\Sd2Card.cpp: In member function 'uint8_t Sd2Card::readData(uint32_t, uint16_t, uint16_t, uint8_t*)':
    C:\Arduino\libraries\SD\utility\Sd2Card.cpp:478:12: warning: unused variable 'n' [-Wunused-variable]
       uint16_t n;
                ^
    C:\Arduino\libraries\SD\utility\Sd2Card.cpp: At global scope:
    C:\Arduino\libraries\SD\utility\Sd2Card.cpp:145:13: warning: 'void spiSend(const uint8_t*, size_t)' defined but not used [-Wunused-function]
     static void spiSend(const uint8_t* output, size_t len) {
                 ^

  13. #38
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,679
    Still with malloc_trim():
    Code:
    c:/arduino/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv7e-m\libc_s.a(lib_a-mtrim.o): In function `malloc_trim':
    mtrim.c:(.text.malloc_trim+0x6): undefined reference to `_malloc_trim_r'
    collect2.exe: error: ld returned 1 exit status
    Can you please add it ?
    For the codecs, i want to check the free space (they need much ram) before playing, and this works better with trim..

    Even better would be a malloc that does not crash if no memory is available (if possible(???))
    EDIT: just tested again, sorry, it does not crash.. (funny, i remember that it did some time ago...)
    Last edited by Frank B; 01-18-2015 at 10:59 AM.

  14. #39
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,679
    Maybe you could set in "control_sglt5000 " the chip select pins for SD and SPIFlash "high" ... (if not already done there or elsewhere)
    I just noticed that - according to the schematic - there are pullups missing...perhaps it causes problems when the flash is soldered and has a floating chipselect...
    Last edited by Frank B; 01-18-2015 at 12:31 PM.

  15. #40
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,550
    A new revision of the audio board is on the way. It has 2 real pullup resistors on the SD and SPI Flash chip selects.

  16. #41
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,679
    hm.. according to this document http://alumni.cs.ucr.edu/~amitra/sdc...note_foust.pdf, (i just found it, because i'm doing some research..) there a some more pullups needed (?)
    Is this correct ?
    The external pullups shown are required by the SD protocol, and must be present even for the unused data pins.
    Last edited by Frank B; 01-22-2015 at 09:36 PM.

  17. #42
    Senior Member
    Join Date
    Nov 2012
    Location
    Boston, MA, USA
    Posts
    1,107
    This is what happens when usage of a standard requires paying USD 2000 per year and the specification lives behind a paywall.

    People reply on leaked summaries which may be incomplete, and there is no channel for reporting bugs. Having a pin labelled "unused (or IRQ)" with a mandatory pullup to stop the interrupt being randomly triggered would be one such bug that might be reported.
    Last edited by Nantonos; 01-22-2015 at 10:35 PM.

  18. #43
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,679
    See:
    http://www.nxp.com/documents/applica...te/AN10911.pdf Table 3

    For SD, CS, CMD, Dat0-DAT2 10K-100K(90K), for MMC 4k7(CMD) or 50-150k (Table 7)
    Last edited by Frank B; 01-23-2015 at 03:37 PM.

  19. #44
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,679
    http://embdev.net/attachment/39390/T...cification.pdf (the last one, dont want annoy. Sorry. Please. see 6.4. SD card Electrical Characteristics)

  20. #45
    Senior Member
    Join Date
    Jan 2013
    Posts
    966
    I'd like to bring up the bonjour/ multicast topic again discussed in the TD1.2 thread.

    Paul, you mentioned a fallback solution in this post. Could you provide a more specific pointer where I would find that perhaps in what file so I can start looking at this ?

  21. #46
    Senior Member xxxajk's Avatar
    Join Date
    Nov 2013
    Location
    Buffalo, NY USA
    Posts
    528
    Experiencing too many compiler bugs with gcc version 4.8.4 20140725
    (I write some complex C++ code, apparently!)
    Going to see if gcc-arm-none-eabi-4_9-2014q4-20141203 resolves them.

  22. #47
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,550
    Maybe write simpler code?

  23. #48
    Senior Member xxxajk's Avatar
    Join Date
    Nov 2013
    Location
    Buffalo, NY USA
    Posts
    528
    LOL! Nice :-) Not an option. Handling USB and filesystems can be a complicated affair.

  24. #49
    Senior Member
    Join Date
    Jun 2013
    Location
    So. Calif
    Posts
    2,828
    Quote Originally Posted by xxxajk View Post
    Experiencing too many compiler bugs with gcc version 4.8.4 20140725
    A short example or two?

  25. #50
    Senior Member xxxajk's Avatar
    Join Date
    Nov 2013
    Location
    Buffalo, NY USA
    Posts
    528
    First the good news.
    Code that was majorly broken now compiles without complaints.
    optimizer bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58545
    has been fixed! YAY! Progress!


    Now for the bad news...
    There is still some strange issue with using a derived child class beyond 2 levels when said code is fully contained in a header file and simply included.
    Technically this shouldn't matter, but for some silly reason, it does.
    I still need to continue the research on this

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •