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

Search:

Type: Posts; User: tonton81

Page 1 of 10 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    1
    Views
    51

    yes the controller is built into teensy hardware...

    yes the controller is built into teensy hardware you just need the transceiver and you are set :)
    All nodes can talk at same time
  2. Replies
    4
    Views
    125

    you tried resolution change? ...

    you tried resolution change?

    https://forum.pjrc.com/threads/41911-Teensy-3-6-ADC-resolution?p=132525&viewfull=1#post132525
  3. Replies
    4
    Views
    44

    I don’t see any pullups on I2C. You absolutely...

    I don’t see any pullups on I2C. You absolutely need them
  4. I would also declare them as weak in case the...

    I would also declare them as weak in case the real ones get added later on :) (or duplicates)
  5. yes buffer is the data field output, 8 bytes, you...

    yes buffer is the data field output, 8 bytes, you can access the bytes from the canSniff function

    16 bits is 2 data bytes

    (uint16_t)(msg.data[0] << 8) | msg.data[1];
    should join 2 bytes to get...
  6. your sketch looks alright, check the baudrate is...

    your sketch looks alright, check the baudrate is correct and dont cross the canh/canl lines, must be canh to canh, canl to canl, and common ground, either from teensy or the ground pin of the shield
  7. Also tell the library to use the alt pins for...

    Also tell the library to use the alt pins for Can0, which is normally 3 and 4 for default, you need to change them
  8. there are 3 pins per chip side on teensy, 2 are...

    there are 3 pins per chip side on teensy, 2 are for can lines, the other 1 is the transceiver enable pin. enable the pin and digitalwrite it ground
  9. Replies
    44
    Views
    997

    the T4 flexcan library is in development stages...

    the T4 flexcan library is in development stages so it’s been being rewritten off it’s older IFCT counterpart to be working with the T4 hardware, FD is currently being worked on CAN2.0 will be...
  10. enable the touch library AFTER you set the pins,...

    enable the touch library AFTER you set the pins, this will reconfigure the old pins as touch. If you init touch before the audio then modify pins, the touch is still overridden by the audio before...
  11. uint32_t var = 0b110; var &= ~(3UL

    uint32_t var = 0b110;
    var &= ~(3UL << 1);
    var |= (3UL << 1);
    var |= 0b1101001; // comment EN, FRAME, TEST, CRC, etc (comment on sequential bits)
    var == 0b1101111; <óóanswer

    if you donít...
  12. they are not changed at runtime once its...

    they are not changed at runtime once its configured (the library), so changing it after initializing library is fine, and its per sketch so your other sketch is unaffected, i am not familiar with...
  13. Manually doing the bits not only makes you learn...

    Manually doing the bits not only makes you learn how it works (itís how I learned), allows you to handle not only single bits but multiple bits as well. bitSet, bitClear would be an eyesore for...
  14. You can then take the inverse of the flip...

    You can then take the inverse of the flip afterwards !digitalRead

    keep a little //comment there if you do this so you understand why later on when working on your project :)
  15. why not set them in the sketch after you...

    why not set them in the sketch after you initialized the controller? the pin configs can be changed at any time

    have each project run a diff pin config in setup after the audio shield is...
  16. Replies
    13
    Views
    532

    you could use the flexcan memory region while...

    you could use the flexcan memory region while it’s in freeze mode to access the RAM in that area for temporary data (wiped on reset). They are at offsets 0x080 to 0x47F. Since theres 3 controllers,...
  17. Replies
    180
    Views
    13,878

    yes thats read only you could copy it to...

    yes thats read only

    you could copy it to modify it

    CAN_message_t copyFrame = frame;
    copyFrame.seq = 1;

    modify everything in copyFrame.
  18. Replies
    6
    Views
    92

    its dual fifo on 3.6, each have fifo. just...

    its dual fifo on 3.6, each have fifo. just disable the RX mailboxes and call it a day. The problem with mailboxes are if you dont read then by the time the next frame pops in the timestamps also...
  19. Replies
    6
    Views
    92

    if you are looking for ordering good luck. FIFO...

    if you are looking for ordering good luck. FIFO is your friend with mailboxes set to disabled or TX.
    FIFO will always have them ordered as they are accepted by hardware filters, no timestamp...
  20. Replies
    44
    Views
    997

    skpang the bitrate is hardcoded to match what the...

    skpang the bitrate is hardcoded to match what the sdk is using by default. There is no baudrate calculation yet for flexcan_t4, still work to do, setbaudrate is unused currently until then
  21. Replies
    13
    Views
    532

    1062, 1052 will not be used anymore

    1062, 1052 will not be used anymore
  22. Replies
    44
    Views
    997

    they were always tpp, its a templated library...

    they were always tpp, its a templated library with compile time objects :)
    This way you can choose custom buffers and load only resources for the controller(s) you use and omit wasting it on other...
  23. Replies
    44
    Views
    997

    setRegions(x) has been added and included in the...

    setRegions(x) has been added and included in the beta demo on github
    x can be 8,16,32,64 and the amount of total mailboxes are returned.
    If you attempt to put 24, 32 will be selected, process of...
  24. Replies
    44
    Views
    997

    yes skpang, i might need help with the bittiming...

    yes skpang, i might need help with the bittiming as thats beyond my current expertise, currently i matched the ones against the SDK, but i will be needing help with the calculations, so if your...
  25. Replies
    44
    Views
    997

    Good news guys, finally have FD working on teensy...

    Good news guys, finally have FD working on teensy 4.0. It’s so fast I had to slow it down, kept crashing the other node running the SDK. :) But running stable so far on its own.

    Both memory...
  26. Replies
    44
    Views
    997

    It’s okay, the library is still in development,...

    It’s okay, the library is still in development, base functionality is the goal and once it’s setup I will add features like I did in IFCT. Aside from the baudrate it’s setup to use the oscillator...
  27. Replies
    44
    Views
    997

    common ground? i get why you dont want us to see...

    common ground? i get why you dont want us to see a ball of wires but sometimes if we see a little we might spot something :)
  28. Replies
    44
    Views
    997

    Can you try that test on 1.47beta5 teensyduino? ...

    Can you try that test on 1.47beta5 teensyduino?

    msg.ext is a macro in t3.6, you should be able to use msg.flags.extended in both t3/4

    do you have resistor 120 ohm on the line?
  29. Replies
    1
    Views
    106

    IFCT can he used to read specific mailboxes in...

    IFCT can he used to read specific mailboxes in either hardware mode or software mode, the masking in hardware mode is fully automated by ID input, so the user doesn’t need to worry about How...
  30. Replies
    418
    Views
    83,098

    mutexes are only used if you plan to use one...

    mutexes are only used if you plan to use one serial object in 2 or more threads. If you are using the serial object ONLY in one thread, no mutex is needed
  31. Replies
    180
    Views
    13,878

    it’s just an array of 8 bytes, by default it will...

    it’s just an array of 8 bytes, by default it will pickup all IDs however you can filter it in callback via software or hardware via filtering.

    your second code is software filtering but yeah...
  32. Replies
    180
    Views
    13,878

    Please check the simple examples posted with the...

    Please check the simple examples posted with the library, it shows you how to send/receive the 8 bytes.
    You can do your 32 bit conversions before/after if necessary :)
  33. good reference, thanks :)

    good reference, thanks :)
  34. yes but you still have to toggle after every...

    yes but you still have to toggle after every request, and then your loop can still update the array in the callback. Obviously since the array is used from an ISR callback you should protect the...
  35. ideally on both libraries the transactions are...

    ideally on both libraries the transactions are finished upon deassertions, spi is fast enough so toggle between transactions. the hold low method was just a test to see if you get the ISR active or...
  36. also note that the way that this slave library...

    also note that the way that this slave library was designed in order to allow continuous data response, the main loop will never run till after deassertion. you could probably put a led blinking in...
  37. the isr fires once and only ends on deassertion,...

    the isr fires once and only ends on deassertion, the pins must be specified as it’s set in the hardware registers to trigger
  38. you can tie the pin low if you want and the isr...

    you can tie the pin low if you want and the isr will keep looping over the array till the line is deasserted. make sure the array response buffer is big enough for the bytes your sending, the demo...
  39. no, well, yes but the array will continuously run...

    no, well, yes but the array will continuously run in response, at least if you toggle you can fill new data, the function callback cuts out the moment the CS is deasserted

    make sure you are using...
  40. the isr will only fire if the CS is fired with a...

    the isr will only fire if the CS is fired with a common ground, i dont see how it wont work the only issues we faced in the past were bad jumper cables or connections

    since the callback wont fire...
  41. yes, just be careful the example responds 2 bytes...

    yes, just be careful the example responds 2 bytes in an array, so either have master send 2 bytes or have the array pointer reset. Teensy to teensy lines are different between 3.x and LC, on one one...
  42. check the source files for this library for help:...

    check the source files for this library for help:

    https://github.com/tonton81/TSPISlave
  43. Replies
    180
    Views
    13,878

    sorry I forgot the extra frame info you need to...

    sorry I forgot the extra frame info you need to add
    EXT for extended, STD for standard frame:

    Can0.setFIFOFilter(0, 0x05, STD);

    filter 0, ID 5, Standard frame
  44. Replies
    180
    Views
    13,878

    mailboxes are not FIFO, but FIFO has 8 filters by...

    mailboxes are not FIFO, but FIFO has 8 filters by default 0-7, if you want specific mailbox as reception in a sepearate callback you can use a mailbox for that
  45. Replies
    180
    Views
    13,878

    Can0.setFIFOFilter(0,0x01);...

    Can0.setFIFOFilter(0,0x01);
    Can0.setFIFOFilter(1,0x02);
    Can0.setFIFOFilter(2,0x03);

    This should allow IDs 1 2 and 3 to pass FIFO, rest blocked.
    Be sure to run Can0.setFIFOFilter(REJECT_ALL); to...
  46. Replies
    1
    Views
    103

    usually theres a watchdog register flag you can...

    usually theres a watchdog register flag you can check in the datasheet, its set after a watchdog reset, and cleared during a normal reset.
  47. Replies
    1,837
    Views
    117,394

    teensy supports RTS and CTS and has high baud...

    teensy supports RTS and CTS and has high baud rates, no need to implement it in software when itís capable in hardware. Not sure if rasp pi supports RTS/CTS but itís there on teensy side, it prevents...
  48. Replies
    1,837
    Views
    117,394

    It’s won’t work because of chip specific...

    It’s won’t work because of chip specific registers and custom protocol for two way communication, a complete code rewrite is needed for the rasp pi, to be compatible with this, and it won’t be an...
  49. Replies
    4,284
    Views
    443,105

    Chrome is good for exposure to viruses and deep...

    Chrome is good for exposure to viruses and deep discharging your portable's batteries, I'll stick to waterfox :)
  50. Replies
    4,284
    Views
    443,105

    Indeed, how about not calling mailboxStatus? Does...

    Indeed, how about not calling mailboxStatus? Does it lock up? Thats the only function that prints to Serial4
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4