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

Search:

Type: Posts; User: Jacob.Schultz

Search: Search took 0.00 seconds.

  1. Is CAN bus fast enough for you, its a solution...

    Is CAN bus fast enough for you, its a solution without collisions. You can only reduce collisions not avoid them in a multi master setup on rs485.
  2. One way is to make a short random delay before a...

    One way is to make a short random delay before a master begins the transmission so they don't start at the same time. The normal procedure is to make a simple protocol with a checksum so you can...
  3. __exidx is defined in the linker script and is...

    __exidx is defined in the linker script and is probably missing. It's used for stack unwinding. It can be turned off with following option -fno-unwind-tables.
    A good alternative to STL on embedded...
  4. Replies
    9
    Views
    475

    Maybe a guess, but I've seen MCUs that can't boot...

    Maybe a guess, but I've seen MCUs that can't boot after a soft reset because the startup code doesn't initiate all registers properly in case that something uncommon is screwed up.If the WDT is...
  5. Replies
    9
    Views
    475

    The most obvious will be to write a hardfault...

    The most obvious will be to write a hardfault handler that can reveal the cause if you haven't done so already.
    ...
  6. The eRPC (Embedded Remote Procedure Call) from NXP

    I have made a port of the eRPC library to Teensy for test purposes. It can be found there: https://github.com/jasa/teensy_erpc if anyone wants to try it out. It depends on the case, but it can...
  7. Replies
    13
    Views
    566

    I just tested my first version with the cpu dummy...

    I just tested my first version with the cpu dummy load (wasteSomeTime) and it is reacting as expected. If you have blocking IO or delays in your program the CPU load might not reflect the clock...
  8. Replies
    13
    Views
    566

    Remove wasteSomeTime() function if you included...

    Remove wasteSomeTime() function if you included it. It's only a dummy CPU load for testing. It could give the result you have.

    Remove this line too:

    // create some cpu load
    itimer.begin([]...
  9. Replies
    13
    Views
    566

    The idle cpu load at 72 Mhz is should be 0.8% due...

    The idle cpu load at 72 Mhz is should be 0.8% due to systicks overhead or else something is wrong. If you comment out the itimer.begin i my example it shoud almost be zerro.
    Of course, you should...
  10. Replies
    4
    Views
    226

    What you have done is equivalent to this: ...

    What you have done is equivalent to this:



    union {
    uint8_t byte1[8] = { 0xff, 0xde, 0xbc, 0x9a, 0x78, 0x56, 0x34, 0x12 };
    uint64_t val;
    } x;

    (x.val >> 3) & 0xfff) = 412
  11. Replies
    13
    Views
    566

    You only have to call cpuLoadSleep() then your...

    You only have to call cpuLoadSleep() then your application is in idle state and the cpu will stop until a interrupt starts it again. The timer and wastesometime funtion is only for test and is not...
  12. Replies
    13
    Views
    566

    These counter methods for monitoring cpu load...

    These counter methods for monitoring cpu load depends on compiler optimization, versions, etc. and has to be adjusted for each case. I have found another method that always will give a correct...
  13. Have you tried to use "minicom" or other serial...

    Have you tried to use "minicom" or other serial terminal software to rule out issues with your IDE and Manjaro? Also try to run dmesg as root to see if there are any relevant log output.
  14. Replies
    4
    Views
    220

    If you look in keymap.h it is limited to 10...

    If you look in keymap.h it is limited to 10 row's. I haven't looked at the source code thoroughly, but maybe you just can increase the value. -)

    #define MAPSIZE 10 // MAPSIZE is the number of...
  15. Replies
    4
    Views
    220

    No one is telepathic and can't guess you problem....

    No one is telepathic and can't guess you problem. souce code is a MUST if you want help.
  16. Replies
    4
    Views
    228

    The flash programming is controlled by a small...

    The flash programming is controlled by a small external processor, you don't have any control over it at all. You have to find another way to turn off the led's before reprogramming.
  17. I found the problem, was just too tired. I exceed...

    I found the problem, was just too tired. I exceed the stack in the hex dump. The stream library does not appear to be reliable for debugging it never finishes the output.
  18. Reboot out of control in hardfault handler

    I have a problem with following code, the Teensy board reboots before the hardfault handler is finished printing out the message. It's like a hidden watchdog :-) It seems to be a specific problem...
  19. Missing Auxiliary control register in kinetic.h

    It look like the SCB _ACTRL register is missing in the kinetic.h
    Maybe not the most important one, but it should be there.

    #define SCB_ACTRL (*(volatile uint32_t *)0xE000E008) //...
  20. If i'm up to date, there is no high speed USB...

    If i'm up to date, there is no high speed USB stack ready for that. It looks like Teensy 4 in the future will give you a ethernet option.
  21. I helped someone with a project yesterday and had...

    I helped someone with a project yesterday and had a look at TeensyThreads and found some flaws in it. I hope this can help.

    1. The way FPU registers are saved and restored unconditionally are very...
  22. Replies
    49
    Views
    2,132

    There are many who misunderstand how Cortex...

    There are many who misunderstand how Cortex handles interrupt priorities. Only the 4 most significant bits are used in the priority registers. So in realty there are only 16 interrupt priorities.
    ...
  23. Replies
    21
    Views
    1,265

    I found a Teensy 3.6 in my drawer and made a...

    I found a Teensy 3.6 in my drawer and made a test. The result is the same as before i got exactly 30.000.004 lines every time in the output file, no data loss. I had floating input under the test and...
  24. Replies
    21
    Views
    1,265

    If you are doing 300k samples/sec you are on the...

    If you are doing 300k samples/sec you are on the limit of available bandwidth. You also have a CR and LF character for every sample. With 5 bytes pr sample (only 3 digits) you are on the limit of a...
  25. Replies
    21
    Views
    1,265

    The ringbuffer speed is not bad at all, you can't...

    The ringbuffer speed is not bad at all, you can't get it much faster. I compared these two and the speed is identical on ARM. On Intel the ADC circular buffer is 10% faster witch surprised me.


    ...
  26. Replies
    21
    Views
    1,265

    Remember to set your interrupt priorities on the...

    Remember to set your interrupt priorities on the ADC it's important. It makes your first example work without problems. It should be lower than the usb.

    NVIC_SET_PRIORITY(IRQ_ADC0, 30);
  27. Replies
    21
    Views
    1,265

    I done some fast testing and you cannot blame the...

    I done some fast testing and you cannot blame the USB. The Ringbuffer is certainly not efficient the default size is only 8 bytes (in my version) witch is useless.
    I can recommend a look at...
  28. Replies
    21
    Views
    1,265

    I modified a program for a test and i am able to...

    I modified a program for a test and i am able to send 628571 bytes/sec over USB without any data loss. It only uses 17.8% cpu on a Teensy3.2 at 72Mhz. It's a quite big program i used and it has some...
  29. Replies
    8
    Views
    506

    It should be like this And please note the...

    It should be like this
    And please note the square brackets i have added, sorry i forgot that.

    AudioEffectEnvelope *myEnvelope[] = { &envelope1, &envelope2, &envelope3, &envelope4 };
  30. Replies
    8
    Views
    506

    Envelope Array Problems

    envelope1-16 is instantiated objects not a char type as you defined. I cannot see the name of the object in you code, i guess in this example it's Envelope, maybe you have to look in header files for...
  31. Is there any need for a Remote Teensy API or a "Teensy on a wire" project :-)

    First, sorry for my bad grammar skills.

    I have made a small high efficient ActiveObject framework for real time programming, and for testing in that connection I ended up with a kind of remote...
  32. I don't know the MCUExpresso environment but i...

    I don't know the MCUExpresso environment but i can give you the basic steps for the GNU MCU C/C++ plugin and its probably more or less the same. First copy the entire Teensy source to a sub folder in...
  33. IRC48M clock works pefect with USB in current...

    IRC48M clock works pefect with USB in current setup. (the highspeed host port needs a different setup)

    You only have to define SDK_OS_BAREMETAL for usb_osa.h
    and enable KHCI og disable EHCI in...
  34. Be carefull, Don't compare directly. pjrc are...

    Be carefull, Don't compare directly. pjrc are using raw register values and Kinetis are using macros to translate human readable values into register values.
    So VDIV is 45 in Kinetis world AND and...
  35. Replies
    4
    Views
    754

    Sorry, your right nothing is wrong, i was cheatet...

    Sorry, your right nothing is wrong, i was cheatet by some macro translations Teensyduino code is using the raw register values not human readable.

    VDIV 11101 45
  36. Replies
    4
    Views
    754

    Is a bus divisor that equals 2 not proof enough. ...

    Is a bus divisor that equals 2 not proof enough.
    180/2 != 60 Mhz
  37. Replies
    4
    Views
    754

    Teensy3.6 clock frequency

    I found a mismatch in the 180 Mhz clock configuration in Tensyduino

    The only way to hit a 180 Mhz clock in HS mode exactly with a 16 Mhz crystal with Kinetis own online clock tools is the...
  38. The clock_config is generated with Kinetis own...

    The clock_config is generated with Kinetis own online tool and the speeds are verified. In addition, it uses safe divisors so you can change speeds on the fly without destroying it by accident. If...
  39. There is no dependencies at all. You can download...

    There is no dependencies at all. You can download a working example from the following link: https://drive.google.com/file/d/1VJDUJaGhVrZhsBgG9y9hnUlQUKuJilwT/view?usp=sharing
    It's much easier to...
  40. Replies
    13
    Views
    5,445

    HW-RNG speed

    I compared the speed with some good software random generators for fun and the HW is very slow. ISAAC is a cryptsafe cipher and uses about 2 KB of ram, the code can be found here:...
  41. Getting Kinetis SDK examples to work on the Teensy

    Hmm, there is nothing wrong with the UART code in my SDK, i thing your clock configuration is wrong. I have attached a new clock configuration made for Teeny3.6.

    It contains 3 different functions...
Results 1 to 41 of 41