Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • Mcu32's Avatar
    10-04-2021, 11:26 AM
    It enough to just add a Serial.println() somewhere to the code. No commandline option can do that.
    14 replies | 545 view(s)
  • Mcu32's Avatar
    10-01-2021, 01:14 PM
    This double negative is irritating.. :) Shouldn't it be after tx_noautoflush=1 ? Ok, tried it too. Indeed, no missing lines with the dsb:::memory and without the availbleForWrite - I added the barrier everywhere...
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    10-01-2021, 11:15 AM
    If that does anything good, it might be useful in yield too: if (running) return; // TODO: does this need to be atomic? running = 1; after running = 1. The garbage comes from windows. But it might help...
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    10-01-2021, 09:50 AM
    The intention is to block autoflush, as bad things can happen to the serial tx if it runs at the wrong time. Missing sent chars, etc. Could be tested by disabling autoflush completely and see if it changes something....
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    10-01-2021, 09:37 AM
    Let me ask again, is this OK, as it is? For me, it looks like there may races be possible. I'm not that sure, though... an timer interrupt can happen before tx_noautoflush got written? Not sure about the inner workings...
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    10-01-2021, 08:39 AM
    Try to rewrite the define in src\aWOT.h:74:44: to #define P(name) static const unsigned char name (rmv the PROGMEM) Does it help?
    2 replies | 181 view(s)
  • Mcu32's Avatar
    10-01-2021, 07:55 AM
    My new test: //Use a Terminal that can log to a file. //Check if the line numbers fit. //Windows: There is a memory bug in the USB CDC driver, so you'll probably see strange results. const int n = 100000;...
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    10-01-2021, 07:39 AM
    Ok, running the "1MB" test in a loop now. I inserted a 3 secs delay after each 1MB packet. Also, this gives a terminal the time to print it's buffer. TY still shows a slow speed - but I havn't seen any garbage so far....
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    10-01-2021, 07:04 AM
    You can also just add an audio I2S - this chooses the right pin automatically and provides the clock.
    5 replies | 322 view(s)
  • Mcu32's Avatar
    10-01-2021, 06:51 AM
    In some rare cases, corruption is also a Windows false positive. Have seen this in the past. When reinserting the card reader, the message disappeared and the card was "OK". But that didn't happen that often, and...
    18 replies | 654 view(s)
  • Mcu32's Avatar
    10-01-2021, 06:43 AM
    I have the impression that the memory requirement has increased somewhat with the last IDE versions. I have had this message several times now. Since the change of the setting however no more, but that does not have to...
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-30-2021, 09:54 PM
    Nobody answered so far... hm If this program works on the other boards, there is no reason why it shouldn't work on the problematic boards. It must be a hardware issue, but nobody can say whats wrong without any...
    1 replies | 166 view(s)
  • Mcu32's Avatar
    09-30-2021, 09:29 PM
    Yes, was expected. And this really happens with new cards, too? Could you post a schematic? How sure are you that are no voltage spikes or similar..?
    18 replies | 654 view(s)
  • Mcu32's Avatar
    09-30-2021, 09:22 PM
    hmmmm.,...quite possible that a solution might be somewhere hidden in the useless casual posts here. probably. Just add it to your list of low priority issues.
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-30-2021, 03:26 PM
    kd5 got excited that I mentioned it. Have no Idea, why. As said, I don't care about the NPE, I just thought it might be interesting for you to know. I have no idea how to reproduce this reliably. I must have closed the...
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-30-2021, 01:26 PM
    If the military as your customer accepts null pointer exceptions, it freightens me very much. I have no problem with the errormessage when closing the monitor. But it must be allowed to inform PJRC about it? Seems,...
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-29-2021, 08:28 PM
    Remember these are quite different CPUs. If you're not using any special things and esp. no hard coded register-accesses or such, chances are good.
    9 replies | 414 view(s)
  • Mcu32's Avatar
    09-29-2021, 08:07 PM
    I have no idea how this can happen with read only accesses as long as the voltage is stable.I think I can't help there. But a Teensyduino update will hardly help. I can not imagine a software problem.
    18 replies | 654 view(s)
  • Mcu32's Avatar
    09-29-2021, 07:53 PM
    Have I missed something, or are these really only read accesses to the card? Then I would try another card. And maybe see if the voltage is stable, and maybe add a buffer capacitor.
    18 replies | 654 view(s)
  • Mcu32's Avatar
    09-29-2021, 09:49 AM
    Is it possible to use a win7 usbser.sys ? Or to emaulate an other device which has own drivers? FTDI or such?
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-29-2021, 09:22 AM
    It it this bug? https://social.msdn.microsoft.com/Forums/vstudio/en-US/b61dad9b-48f7-4eca-ab56-3c2ee92d62fa/windows-10-usbsersys-has-a-bug-it-corrupts-data-how-can-i-report-it-and-how-can-i-demonstrate-it?forum=wdk...
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-29-2021, 07:42 AM
    There is still a bug. Got garbage, and then this, when I closed the window. Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at processing.app.FifoDocument.free(FifoDocument.java:168) at...
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-29-2021, 07:06 AM
    This runs better (subjective) -XX:+UseG1GC -XX:+UseStringDeduplication -Xms512M -Xmx1024M -Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true https://www.baeldung.com/jvm-garbage-collectors
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-29-2021, 06:38 AM
    Might help to give it much more RAM. I think the file is arduino.l4j.ini ini. Maybe Defragster wants to test this, too.
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-28-2021, 09:14 PM
    if (status & 0x68) { // TODO: what if status has errors??? printf("ERROR status = %x, i=%d, ms=%u\n", status, tx_head, systick_millis_count); } This fires sometimes.
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-28-2021, 08:37 PM
    My understanding is that there should be a ""dmb:::memory" (why is dsb used ?) after each tx_noautoflush = 1; in the code. this is not the case. Likewise, certainly before each tx_noautoflush = 0;
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-28-2021, 02:52 PM
    I have some messages in the windows error log: "RADAR_PRE_LEAK_64" Info from here says: RADAR_PRE_LEAK_64 simply means the OS has detected a resource intensive process running which isn't managing its memory very...
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-28-2021, 02:04 PM
    Hm, but the visible data seems to come from the PC memory. I wouldn't invest too much time here. For your test program, it's probably easiest to limit it to 3 seconds of runtime. 3-second bursts, and then a long...
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-28-2021, 11:34 AM
    Your monitor shows garbage, the original gets stopped and the whole task deleted (by windows?), hterm shows a hourglass and gets stopped after a while, too. And now?
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-28-2021, 11:23 AM
    Will do it.
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-28-2021, 11:00 AM
    Sorry for the missing braces, had a wrong copy in the clipboard. Indeed, the short variant works fine in h-term The later posted variants print 10 million lines. Is too less, too? At this size h-term start to fail too...
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-28-2021, 10:14 AM
    From the FAQ: Startup error on Windows that VCRUNTIME140_1.dll was not found Go to Microsoft, download and install vc_redist.x64.exe for Visual Studio 2015, 2017 und 2019 ...
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-28-2021, 10:12 AM
    The output to screen is slow in h-term. But logging to file seems to be very good. Maybe Defragster can send you the missing DLLs. For me, it worked out of the box.
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-28-2021, 09:11 AM
    I'd say longer tests just show memory problems. I bet there is no code that says "If running more than 5 Seconds, call bug()" And to have the same prerequisites you have to clear the buffers (in any program)...
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-28-2021, 08:54 AM
    Very last Info: Restartet Arduino. Switched the timestamps off, and... tadaaa.. It was possible to copy&paste it. Surprise. It's pretty fast, faster than the teensy edition. No Garbage (with the while..) ...
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-28-2021, 08:39 AM
    Final info: I don't know what the special Teensy edition does. The normal, standard Arduino monitor works perfectly. It has a large enough scrollback buffer and is not that much slower. No garbage, everything is...
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-28-2021, 08:15 AM
    Serial Monitor with availableForWrite(): 000999999 001000000 10000000 Bytes in 5566463 us = 14.37 Megabits per second But it has no logfile, so nobody knows if it worked correctly. The scrollback buffer is way...
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-28-2021, 08:03 AM
    And with this: void setup() { Serial.begin(9600); delay(10000); volatile uint32_t t = micros(); const int n = 100000 * 10; for (int i=1; i< n + 1; i++) while( Serial.availableForWrite() < 10 ) {} ...
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-28-2021, 07:02 AM
    Ok, with this settings: And this code: void setup() { Serial.begin(9600); delay(10000); volatile uint32_t t = micros(); const int n = 100000 * 10; for (int i=1; i< n + 1; i++)
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-28-2021, 06:21 AM
    It can't be the USB drivers, otherwise no USB stick would work. It must be something else. It is remarkable that H-Term does not log or output random characters. The problem of missing lines also seems to occur in...
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-27-2021, 08:59 PM
    Yes I tried that too. The output to screen is slow. But the logged file shows no garbage. Tried to transfer 10MB - indeed, then, a few lines are missing. Not sure what the reason is. But: no garbage in the log file. It...
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-27-2021, 08:09 PM
    I think it was this: https://forum.pjrc.com/threads/67860-RAHID-performance?p=285082&viewfull=1#post285082
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-27-2021, 07:58 PM
    Probably you're using the wrong software. I remember a thread about a "bug" in serial comm which turned out to be too slow software on PC and missing flow control. If Java is too slow flow control is needed. But I...
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-27-2021, 07:41 PM
    - A reset is a indication for a bug in your program. - It does not ignore the DS3231, its a bug in your program or wrong usage. - You can send the time from the PI to the Teensy. - With the RTC on the Teensy,...
    2 replies | 218 view(s)
  • Mcu32's Avatar
    09-27-2021, 07:32 PM
    The serial problem is only a problem of Java. Or maybe how the serial mon or Java uses USB. There are Windows terminal programs that can log e.g. to a file without errors (and without the garbage print) and at high...
    269 replies | 7774 view(s)
  • Mcu32's Avatar
    09-27-2021, 12:33 PM
    Can't you do a file transfer via MQTT? This page suggests it's possible. http://www.steves-internet-guide.com/send-file-mqtt/ As you already have MQTT, this seems to be the easiest? If you have a USB to a PC, just...
    4 replies | 317 view(s)
  • Mcu32's Avatar
    09-25-2021, 11:25 AM
    The question seems to be too confuse..? Ok, so: How do I use preallocate() with that pointer. Just assume it is needed for fast writes in case of SD. If it is not possible: Again, how would you create the library API...
    343 replies | 8223 view(s)
  • Mcu32's Avatar
    09-25-2021, 10:45 AM
    So I would use an init with a variable number of arguments like void func( ... ) (like printf) that takes all the pointers. Then how do I know which one to use, i.e. if the program specifically wants to write to SD?...
    343 replies | 8223 view(s)
  • Mcu32's Avatar
    09-25-2021, 10:07 AM
    So it needs a pointer to the filesystem. Ok. That was my question. Maybe not clear enough. The assumption was that you don't know the FS at compile time, or it can at least vary. The lib should be able to use all of...
    343 replies | 8223 view(s)
  • Mcu32's Avatar
    09-25-2021, 09:18 AM
    There is an abstraction layer missing. Or maybe there is a C++ trick?
    343 replies | 8223 view(s)
  • Mcu32's Avatar
    09-25-2021, 09:04 AM
    Is there a way to write a library that uses a file and/or uses open(), i.e. to write a new file? How to handle all the different media? It looks like, that it is not possible. I could imagine a way which uses typeof or...
    343 replies | 8223 view(s)
  • Mcu32's Avatar
    09-23-2021, 11:42 AM
    You could also wait for Serial1 available() >= 32 in loop()
    12 replies | 491 view(s)
  • Mcu32's Avatar
    09-23-2021, 11:28 AM
    void read_fpga_line(){ char character = 0; for(int i = 0; i < 32; i++){ while (fpga_serial.available() == 0) {;} //wait for a character serial_to_host.write(fpga_serial.read()); } ...
    12 replies | 491 view(s)
  • Mcu32's Avatar
    09-23-2021, 05:54 AM
    For FM demodulation you are not interested in the amplitude. It is even a known principle to overdrive the signal and make it rectangular to remove it's influence. You need the frequency /time, not the amplitude. You...
    11 replies | 535 view(s)
  • Mcu32's Avatar
    09-22-2021, 08:32 PM
    Just emulate the other periphals too.. there is a c64 emulator for Teensy 3.6. The T4 is much faster.
    10 replies | 596 view(s)
  • Mcu32's Avatar
    09-22-2021, 08:30 PM
    The T4 has two 1MSPS ADCs inbuilt. Might be worth a try to just use them? As far I know you can overclock them, too (might mean a bit more noise)
    11 replies | 535 view(s)
  • Mcu32's Avatar
    09-22-2021, 08:15 PM
    Yes, you're wrong. The Audio lib adds almost no overhead. An alternative is not worth hours of tinkering. And it supports both, master and slave.
    1 replies | 219 view(s)
  • Mcu32's Avatar
    09-22-2021, 07:36 PM
    Why not just emulate the 6502?
    10 replies | 596 view(s)
  • Mcu32's Avatar
    09-17-2021, 07:34 PM
    Mark, my favorite word (cite) is *censored* for guys answering on this level. As I already said that I have, and take the time to edit that line each time, everything is OK for me. But not for you, it seems? Seems you...
    39 replies | 2423 view(s)
  • Mcu32's Avatar
    09-17-2021, 04:34 PM
    How large was the large test and how many % of programs is that large? Never had any issues. The compile is dead slow anyway compared to other systems, and the lst generation never took longer than half a second. It...
    39 replies | 2423 view(s)
  • Mcu32's Avatar
    09-17-2021, 04:26 PM
    Useful comment.
    39 replies | 2423 view(s)
  • Mcu32's Avatar
    09-17-2021, 04:08 PM
    It was the default. Changing defaults is never a good idea. My two cents.
    39 replies | 2423 view(s)
  • Mcu32's Avatar
    09-17-2021, 04:04 PM
    Oh. That means it uses SPI, not the fast SDIO. The noise can be a electrical problem. I don't know. Or the card to too slow with the small block sizes microcontrollers use.
    10 replies | 456 view(s)
  • Mcu32's Avatar
    09-17-2021, 03:52 PM
    Here is the recording: https://github.com/FrankBoesing/Teensy-WavePlayer/blob/5dc9b682b38f490d21a88ba0c938147b203774d0/play_wav.h#L184
    10 replies | 456 view(s)
  • Mcu32's Avatar
    09-17-2021, 03:49 PM
    The SD slot on the Teensy. Don't use the one on the shield.
    10 replies | 456 view(s)
  • Mcu32's Avatar
    09-17-2021, 03:45 PM
    Yes, found that. Not nice to disable that for all users. The opposite would be better: a comment thats says it can be disabled.
    39 replies | 2423 view(s)
  • Mcu32's Avatar
    09-17-2021, 03:40 PM
    Yes, it records. Not sure why it is not documented. Maybe too new. Just ask him. Don't you use the Teensy4 socket?
    10 replies | 456 view(s)
  • Mcu32's Avatar
    09-17-2021, 03:06 PM
    Mcu32 replied to a thread teensy 4 and wifi in Project Guidance
    Usb wlan would be cool.
    14 replies | 828 view(s)
  • Mcu32's Avatar
    09-17-2021, 02:36 PM
    Why are lst files removed?
    39 replies | 2423 view(s)
  • Mcu32's Avatar
    09-17-2021, 02:24 PM
    You need a good SD Card. Expensive does not means good! Try a Kingston Canvas Go! Plus. The Sandisks PJRC recommends is not good anymore. Then the user Frank B has an extended waveplayer +recorder on his github...
    10 replies | 456 view(s)
No More Results
About Mcu32

Basic Information

Statistics


Total Posts
Total Posts
70
Posts Per Day
2.03
Last Post
std::deque Won't Compile for Teensy 3.x 10-04-2021 11:26 AM
General Information
Join Date
09-17-2021