Search results

  1. J

    Arduino 2 - serial port disappears

    What else needs to be added for the early hook?
  2. J

    Arduino 2 - serial port disappears

    Do I need to initialize the pins in fast mode upfront? IOMUXC_GPR_GPR27 = 0xFFFFFFFF; // Initialize pins GPIO9_GDIR |= (1<<4); // pinMode(2,OUTPUT); GPIO9_DR_SET &= ~0xF7; // digitalWrite(2,LOW); GPIO6_GDIR |= (1<<2); // pinMode(1, OUTPUT); GPIO6_DR_SET = (1<<2); //...
  3. J

    Arduino 2 - serial port disappears

    Would this be correct for the "startup_early_hook"? GPIO9_GDIR |= (1<<4); // pinMode(2,OUTPUT); GPIO9_DR_SET &= ~0xF7; // digitalWrite(2,LOW); GPIO6_GDIR |= (1<<2); // pinMode(1, OUTPUT); GPIO6_DR_SET = (1<<2); // digitalWrite(1, HIGH); GPIO6_GDIR |= (1<<3); // pinMode(0...
  4. J

    Arduino 2 - serial port disappears

    I change to FLASHMEM void startup_early_hook(void) { ... } and it works . Thanks everybody!
  5. J

    Arduino 2 - serial port disappears

    Thanks for the input guys. Pauls hint " I can tell you programs which crash early" pushed me into the right direction. I was able to cut down the problem to this code: extern "C" void startup_early_hook(void) { pinMode(2,OUTPUT); digitalWrite(2,LOW); pinMode(0,INPUT); pinMode(1,INPUT)...
  6. J

    Arduino 2 - serial port disappears

    Small sketches work fine.
  7. J

    Arduino 2 - serial port disappears

    I downgraded the Teensy support to 0.59.5 but the problem persists When I flash an empty sketch, the Teensys startsup ok and comes up with the serial port.
  8. J

    Arduino 2 - serial port disappears

    @kd5rxt-mark Serial is set to "serial". I added "Crash report", but i do not get any serial port from the device. As if the microcontroller doesnt run the whole program proberly.
  9. J

    Arduino 2 - serial port disappears

    it's about 40k lines of code.
  10. J

    Arduino 2 - serial port disappears

    I upgraded my hardware to Mac OSX Sonoma 14.2.1 and running an M3 unit Arduino: 2.2.1 Teensy via boards manager: 1.58.1 Old unit was still an MacIntel machine (10.15.7): Arduino: 1.8.13 Teensyduino: 1.53 When I upload my perfectly running program, the serial port disappears and the program...
  11. J

    How to use CAN bus on Teensy 4.1, 4.0 and 3.2 ?

    I try to setup filter for can bus. This does not work: #include <FlexCAN.h> void setup() { CAN_filter_t defaultFilter; defaultFilter.ext = 0; defaultFilter.rtr = 0; defaultFilter.id = 0x700; for (int c = 4; c < 16; c++){ Can0.setMask(0xFFFF,c)...
  12. J

    Teensy 3.1 and CAN Bus

    Remove the explanation mark here: if(!CANbus.available()); {
  13. J

    Teensy 3.1 and CAN Bus

    Played around a bit and the solution is right here: #include <FlexCAN.h> unsigned long time=0; byte stopper=0; class ExampleClass : public CANListener { public: void printFrame(CAN_message_t &frame, int mailbox); void gotFrame(CAN_message_t &frame, int mailbox); //overrides the parent...
  14. J

    Teensy 3.1 and CAN Bus

    Is it possible to stop/restart the CAN listener somehow? this snippet for the listener does not work: //start: Can0.attachObj(&exampleClass); exampleClass.attachGeneralHandler(); //end: exampleClass.detachGeneralHandler(); //start again: exampleClass.attachGeneralHandler();
  15. J

    Teensy 3.1 and CAN Bus

    That is just a lable issue. Not a probleme here, sir. Switch H and L, that's it. I figured out it's an issue when I'm sending AND receiving at the same time with the same RX/TX on the teensy. Could that be an issue? Is that supported?
  16. J

    Teensy 3.1 and CAN Bus

    I have two devices (with Teensy 3.2) and both receive frames correctly from a proven sender (ECU). Connecting both devices (With Teensy 3.2) to each other I get the described problem.
  17. J

    Teensy 3.1 and CAN Bus

    I did a temporary connection from RS to GND - no change.
  18. J

    Teensy 3.1 and CAN Bus

    There is a 55M on the transceiver.
  19. J

    Teensy 3.1 and CAN Bus

    There is a JUmper at "CAN TERM", which is currently set. The "C-GRID" is the plug to the Can Bus from the other device. So actually the resistor connects H and L. I just measured between H and L and it is exactly 120 Ohm.
  20. J

    Teensy 3.1 and CAN Bus

    It's a custom board and works fine with sending frames. I use two of them. One for sending and one for receive.
  21. J

    Teensy 3.1 and CAN Bus

    Yes on both ends. (edited post no 335!)
  22. J

    Teensy 3.1 and CAN Bus

    Well, I do. And sometimes it transmits the data without any problems and sometimes it just stops. Do I need to clear the mailboxes or anything? I changed the library a bit: I send 3 messages in a "thread": I get:
  23. J

    Teensy 3.1 and CAN Bus

    Problem with sending I try to send CAN Bus data with the FlexCan library and this code: #include <FlexCAN.h> static CAN_message_t msg; // ------------------------------------------------------------- void setup(void) { delay(1000); Can0.begin(500000); msg.ext = 0; msg.id = 0x100...
  24. J

    Individual Teensy loader

    Thank you, I will have a look.
  25. J

    Individual Teensy loader

    I was able to compile it. Installed MingW and ran this command: mingw32-gcc.exe -O2 -Wall -s -DUSE_WIN32 -o teensy_loader_cli.exe teensy_loader_cli.c -lhid -lsetupapi Unfortunatly Teens 3.2 is not supported for windows CLI. Is there a specific reason? Anything planned in the near future?
  26. J

    Individual Teensy loader

    With teensiduino everything runs fine. Thank you guys. But now I need to have a look at the cli.
  27. J

    Individual Teensy loader

    Oh I see. Dammit. I will have look. Thanks!
  28. J

    Individual Teensy loader

    On my mac everything works. I'm now on windows and use the make file that's included with the windows option uncommented together with winavr.
  29. J

    Individual Teensy loader

    For a specific use I need to use the cli. Anyone who can help me compiling it? I'm stuck at the mentioned point.
  30. J

    Individual Teensy loader

    Can you tell me how to compile the teensy_loader_cli with Arduino IDE? If not I think I'll need to go on with winavr. Anyone else who can help?
  31. J

    Individual Teensy loader

    It works with smaller files but when I try a large file I get: "Warning, HEX parse error line 8193" Any hints? I tried to compile the loader on my own. Here is the output from my "make" WHat do I need to do afterwards? Sorry absolute newbee
  32. J

    Compiling Teesy 3.5 and Adafruit_TFTLCD

    The hint from HWGuy did it. I replaced #include "pins_arduino.h" with #if !defined(__MK20DX128__) && !defined(__MK20DX256__) && !defined(__MK64FX512__) && !defined(__MK66FX1M0__) #include "pins_arduino.h" #endif Thank you guys!!!
  33. J

    Compiling Teesy 3.5 and Adafruit_TFTLCD

    Kurt, I have uploaded the versions I'm using.
  34. J

    Compiling Teesy 3.5 and Adafruit_TFTLCD

    This library worked with 1.6.5 with some minor optimization. I added the teensy 3.5 options but only little success. Does this have something to do with the KINETIK variable? Because there is the definition of the above non-declared values.
  35. J

    Compiling Teesy 3.5 and Adafruit_TFTLCD

    I recently did an update from Arduino IDE 1.6.5 and Teensyduino 1.25-beta2 to Arduino IDE 1.6.11 and Teensyduino 1.30 Now I get some errors during compiling. Does anyone have got a hint? Applications/Arduino.app/Contents/Java/hardware/teensy/avr/cores/teensy3/core_pins.h: In function 'void...
  36. J

    Individual Teensy loader

    OK got it. Thanks!
  37. J

    Individual Teensy loader

    I would like to but a simple compile of the original source fails (MAC OSX) gcc -o teensyload teensy_loader_cli.c Undefined symbols for architecture x86_64: "_hard_reboot", referenced from: _main in teensy_loader_cli-585e4e.o (maybe you meant: _hard_reboot_device)...
  38. J

    Individual Teensy loader

    Hello guys, if it finally comes to a commercial product and I want my customers to update the teensy on there own, it would be great to personalize the teensy loader application with an own picture and an own "name". Would that be even possible? Cheers Hendrik
  39. J

    Teensy CAN Bus IRQ

    Thanks for your detailed answer. So for me it is now up to this point. I thought I do this already with this piece of code, don't I? interrupts(); NVIC_ENABLE_IRQ(IRQ_CAN_MESSAGE); attachInterruptVector(IRQ_CAN_MESSAGE,tester);
  40. J

    Teensy CAN Bus IRQ

    Well I just start in "setup()) with CANbus.begin(); (without any masks). Within the ISR I will later isert something like this: if(killCAN==true){this->pause();} if ( CANbus.available() ) { // check if data coming while ( CANbus.read(rxmsg) ) { // do stuff } } return true;
  41. J

    Teensy CAN Bus IRQ

    Hello folks, i try to attach an interrupt to the can bus of a teensy 3.2 during setup: interrupts(); NVIC_ENABLE_IRQ(IRQ_CAN_MESSAGE); attachInterruptVector(IRQ_CAN_MESSAGE,tester); interrupt routine: void tester(){ Serial.println("CAN"); return; } But nothing happens. There is...
  42. J

    Teensy 3.1 and CAN Bus

    I would also be interested. Anyone have a clue on how to implement interrupts on RX?
  43. J

    Teensy 3.1 and CAN Bus

    Is it possible to run two transceivers on ONE single teensy? I want to filter out certain messages between a device and the "core CAN bus", so I need one transceiver to connect to the device and the other one to connect to the "core bus". Any ideas?
  44. J

    New to Teensy and looking for some guidance with compiling errors. Graphicstest???

    Update: I was able to break this down to "pins_arduino.h". It does neither detect "#if defined(KINETISK)" nor "#elif defined(KINETISL)" Which one should I go for?
  45. J

    New to Teensy and looking for some guidance with compiling errors. Graphicstest???

    I got same messages trying to compile the example "breakouttouchpaint" from "Adafruit_HX8357_Library-master" Build options changed, rebuilding all Using library Adafruit GFX Library in folder: /Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Adafruit_GFX Using library SPI...
Back
Top