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

Search:

Type: Posts; User: Frank B

Search: Search took 0.01 seconds.

  1. Done.... :)

    Done.... :)
  2. That old code does not support the T4.1 - i'll...

    That old code does not support the T4.1 - i'll update the post....
  3. That's too unspecific.. I connected an...

    That's too unspecific..

    I connected an audioshield and tested the Guitar - example: works.
    Can you post a !minimal! example which does not work?
  4. ah..ok...I thought is was for Teensy4.0

    ah..ok...I thought is was for Teensy4.0
  5. @luni: add these lines: ...

    @luni:

    add these lines:


    teensy40.menu.usb.2xserial=2x Serial
    teensy40.menu.usb.serial.build.usbtype=USB_DUAL_SERIAL
    teensy40.menu.usb.3xserial=3x Serial...
  6. sure... :) is it -DUSB_DUAL_SERIAL and...

    sure... :)
    is it -DUSB_DUAL_SERIAL and -DUSB_TRIPLE_SERIAL ?
    (a fake serial would be better for debugging - needs no comport)
  7. LOL... as you want... 19140 No need to edit...

    LOL... as you want...
    19140

    No need to edit platform.txt.
    @Tim: set memory=
    should do it.

    .. Have fun til next update :)

    Perhaps one should write an automated Arduino-patcher... maybe...
  8. Edit: Ok, new try :) rename linkerfile above...

    Edit:

    Ok, new try :) rename linkerfile above to imxrt1062f.ld

    FASTRUN works. The pervious version from an hour ago had a problem with the calculated number of ITCM blocks. This is fixed.
    Edit:...
  9. attached a working boards.txt for "Teensy40Flash"...

    attached a working boards.txt for "Teensy40Flash" - name the ld file from above imxrt1062f.ld
    that should work, I hope :)
  10. hm, ok, that does not work. so just change the...

    hm, ok, that does not work.
    so just change the name of the file in the teensy40 section in boards txt.
  11. Just add a new "board" to boards.txt with the new...

    Just add a new "board" to boards.txt with the new file. Maybe name it "Teensy 4-flashmem" or something like that. Copy and paste from Teensy4 and edit the name of the ld file.
  12. With the script above, ITCM is zero. As I said -...

    With the script above, ITCM is zero.
    As I said - have not found a way to re-enable FASTRUN. Maybe this weekend. At least it would be nice to know the reason for the linkage error.
  13. @Defragster, WMXZ: tried the *.ld above? ...

    @Defragster, WMXZ: tried the *.ld above?

    Coremark is now 2316 - ok, it fits into the cache.

    When trying to move only FASTRUN to ITCM, I always get a relocation error - not sure why. Jumps too...
  14. Init only - or things where speed does not matter.

    Init only - or things where speed does not matter.
  15. T4: This loads _everything_ to flash: (even...

    T4:
    This loads _everything_ to flash:
    (even "Fastrun")



    MEMORY
    {
    ITCM (rwx): ORIGIN = 0x00000000, LENGTH = 512K
    DTCM (rwx): ORIGIN = 0x20000000, LENGTH = 512K
  16. I can try today. No risk - no fun :) Have no idea...

    I can try today. No risk - no fun :) Have no idea if it will work :)
  17. The decision what needs to be where is not always...

    The decision what needs to be where is not always easy.
    For printf -don't know if it is possible to move it without special linkerfile.
    The other libs -from core- already use FLASHMEM.
  18. @wmxz: you're right. (And they should at least...

    @wmxz: you're right. (And they should at least have their init code in flashmem by default)

    If I had wishes free for Arduino, i'd knew a lot.

    Project settings, force rebuild, serial monitor...
  19. ... but I'm with you: Would be good to have a way...

    ... but I'm with you: Would be good to have a way to choose a different linkerfile from the Arduino-menus.

    But, really, as long Arduino does not save the settings on a per-project basis, it's only...
  20. You can use FLASHMEM to run code from flash,...

    You can use FLASHMEM to run code from flash,
    PROGMEM to have const data in FLASh,
    And you can use malloc() or DMAMEM to use the OCRAM.

    Combining these can help a lot - without changing the...
  21. I tried this :) I added a Serial.print("alarm")...

    I tried this :)
    I added a Serial.print("alarm") to the High_low_temp isr.
    Huston .. we have a problem.. it gets called again and again. Because..yes.. sure, the high temp stays high.
    Maybe we...
  22. That works, my Teensy shuts down! For the...

    That works, my Teensy shuts down!

    For the blink, wouldn't we use the "high" Temp Alarm? (Give the program time to shut down external hardware or do other things)


    Maybe like this?

    normal...
  23. That's a good point. Maybe we can also extend...

    That's a good point.
    Maybe we can also extend startup.c so that it shuts down after reboot(?)
  24. @mjs, it's now part of T4_PowerButton...

    @mjs, it's now part of T4_PowerButton
    Sorry, no documentation so far - just see the .h file
    Attention, the lib uses the startup_late_hook() now for resetting the memory, so that maxstack() can...
  25. As I said, not a big problem - but if you copy...

    As I said, not a big problem - but if you copy 99% of a whole program, modify just a very few lines and upload to another platform( Github) a little info there (Github) is nice.
    Here, it's not...
  26. Yes :) I don't use it anymore. Edit: Would...

    Yes :)

    I don't use it anymore.

    Edit: Would have been nice to see my name there - but OK, not really needed for such a dumb program with a few lines.
    I'm using the sketch-version now - needs...
  27. Great. Not easy to use - It's quite possible that...

    Great. Not easy to use - It's quite possible that if you change only one line in your program, the free space can be the half or even near zero :) - or you can get the opposite effect if one more...
  28. No (addsomedummycharacters)

    No
    (addsomedummycharacters)
  29. ..and if you want to know the maximal stack usage...

    ..and if you want to know the maximal stack usage during runtime,
    this should give an answer:
    (well, if there is no horrible bug)



    extern "C" {
    void startup_late_hook(void) {
    extern...
  30. @DD4WH, others: here is a better (more exact)...

    @DD4WH, others:
    here is a better (more exact) version of the Runtime-Ram-Info:


    /*
    (c) Frank B, 2020
    License: MIT
    Please keep this info.
    */
  31. ..ah, ok, I typed my #ifdef question before you...

    ..ah, ok, I typed my #ifdef question before you edited your answer.

    ok, I'll find a other way :)
  32. Ah, ok , good to know. Thank you :) Is there a...

    Ah, ok , good to know. Thank you :)
    Is there a way (for annyoing users like me) to change this without patching teensyduino? Or can be added a "#ifdef" for that?
  33. When did it happen that OCRAM is in use in a...

    When did it happen that OCRAM is in use in a blank program, and what uses OCRAM here?
    My RAM-Info says, 12384 bytes are not available.

    I tried to use a 512kB Block.. and was sure that it is free..
Results 1 to 33 of 34