Search results

  1. W

    Suggestion for Ethernet Library improvement

    Networking uses "big-endian": https://en.wikipedia.org/wiki/Endianness#Networking
  2. W

    Suggestion for Ethernet Library improvement

    Then just we maybe just could add a new class like "swappedIPAddress" to the header. This will keep backwards compability to the user, but it may result in slower code.
  3. W

    Suggestion for Ethernet Library improvement

    a current example where the current byte order is annoing: newMask = ptr32[0][_headerSize / 4]; // reading in in the correct order, but receiving e.g. "255 255 128 0" instead of "0 128 255 255" currentIp = Ethernet.localIP(); uint32_t a = ~newMask; a++; a = a & (~newMask); //...
  4. W

    Suggestion for Ethernet Library improvement

    Another suggestion: In the Ethernet library, the byte order of the IP-Address is reversed to common use of an unsigned integer. All serializing stuff is putting the lowest byte in/out first. The class IPAddress does the opposite of this. This is quiet annoying, cause when reading in a new IP...
  5. W

    Suggestion for Ethernet Library improvement

    I'll do. Yes i know, you said this a few posts before. I am just posting suggestions here, as it is the category of this post. I don't expect anything, just sharing ideas ;-) Shall i share ideas and suggestions for improvement to both forums or only to the arduinos one?
  6. W

    Suggestion for Ethernet Library improvement

    hello there, i'd like to share another suggestion for the Ethernet library. Since, with the W5500, it is not possible to determine a limited-broadcast nor a directed-broadcast (exept on socket 0 in MACRAW-mode), it would be nice to add the possibility in UDP-mode to turn on "BCASTB" (=...
  7. W

    programming languages

    yes, you are complete right with this. well yes, i really understand what you mean. But to tell from my experience, one of the most bad things happend to me, while learning to programm, were things i'd like to work, and sometimes did this "copy & paste" stuff, but just one missing information...
  8. W

    Suggestion for Ethernet Library improvement

    Hello paul, thanks for you work on Ethernet 2.0.0. Yes i saw it and it looks very nice, but at the moment i really need my individual buffer sizing so that i cannot use Eth. 2.0.0 at the moment. Maybe i will post some more suggestions to this thread and hopefully also with examples why to...
  9. W

    Problems with accessing internal registers

    hey defragster, did you mean by this the "not turned on clock"?
  10. W

    Problems with accessing internal registers

    hello there, i found the problem: The chip is designed so that you can turn any hardware module on and off via the "SIM" module by simply turning the clock on or off. So if you do not turn on the uartx module, you want to access, the CPU will get stuck, because the module won't return any value...
  11. W

    Problems with accessing internal registers

    Hello defragster, if you have no idea, what this register is for: it is to configure a UART controller (in the example above case #3); This definition, you found, is just a definition in the "kinetis.h" file. If you search deeper, you will find a definition of a pointer, starting at...
  12. W

    Problems with accessing internal registers

    as you can read in my last post, i tried both...
  13. W

    Problems with accessing internal registers

    ok, i just created a new sketch in arudino itself ( i was working with microsoft visual studio): #include <kinetis.h> #define LED 45 void setup() { //Serial.begin(500000); //while (!Serial); pinMode(LED, OUTPUT); digitalWrite(LED, 1); uint8_t temp; temp = UART3_C2...
  14. W

    Problems with accessing internal registers

    i tried out to read from UART3_C2: Serial.println("no bug here"); uint8_t temp; temp = UART3_C2; Serial.printf("register: %d\r\n", temp); "register: %d" is not being printed;
  15. W

    Problems with accessing internal registers

    Well, i had the same idea of trying another compiler setting and tried out some others, but it doesn't work. AND...sometimes compilers do crazy stuff, but i don't think its about the compiler options, because all the libraries used for SerialX do the same (at different compiler settings) and...
  16. W

    Problems with accessing internal registers

    oops, sry, will will just edit the first post.
  17. W

    programming languages

    hi aaay, the language used for teensy is c/c++ (c++ originated from c). So u can decide, which language you want to programm with, but if mixing them, be careful not to write bad confusing code. There are lots of tutorials, where u can learn c/c++ e.g. at the website www.tutorialspoint.com...
  18. W

    Problems with accessing internal registers

    Hello, i am trying to access registers of the uart-controller of teensy 3.5. But if i do so, the µC get stuck. Serial.println("no bug here"); // configure UARTX-Controller: UART3_C2 &= 0x7f; // disable TIE; Serial.println("no bug here"); UART3_C2 |= UART_C2_TCIE...
  19. W

    Suggestion for Ethernet Library improvement

    at the end i would programm functions like this. eg.: void foo(){ uint32_t mySocket = 2; EthernetUDP udp(); udp.begin(mySocket); // or something like this: #define _2k 2048 uint32_t myNeededBufferSize = _2k // -> maybe there is a need to increase the buffer size in a time...
  20. W

    Suggestion for Ethernet Library improvement

    Hi Paul, at the moment i only change the buffersizes only via the Ethernet.h file and the w5500.h file. I didn't do any implementation for API yet. I am using my controller for receiving a stream via UDP and streaming it out again via hardware ports - so i build a steaming device. But as the...
  21. W

    Suggestion for Ethernet Library improvement

    hi sstaub, thanks for your reply! Yeah i know, but the W5500 can have unto 8 sockets. I saw your implementations in your library. This looks very nice! I think i will try yours out when i have time. Another suggestion: Also i would be a great possibility to know, whether a received packet is a...
  22. W

    Suggestion for Ethernet Library improvement

    Hello there! =) At my Ethernet-Work with multiple sockets at the same time, it came out for me that i have to change the number of sockets used for my requirements in Ethernet.h. But this wasn't enough for me...i needed multiple sockets, but with different buffer sizes e.g.: 1. socket: 8k...
  23. W

    Simple HTTP-Webserver

    the ending of a file doesn't change the content of a file - it just tells a machine how to interpret it. By the fact that you can upload any files on several servers as .mp3, .txt, .png, .jpg ect., i won't think trying out .html ending would help. The simple solution for this problem was, that...
  24. W

    Simple HTTP-Webserver

    Hello, i want to build a simple Web-Server on the Teensy 3.5. I can successfully send my content, e.g. .css, .html, etc. files over Ethernet to a webbroswer from a SD-Card. But trying to upload data to the teensy doesn't work over html. Seems, like the browser just doesn't upload the files. I'd...
  25. W

    pin assignment of uart

    Hey there, i solved the problem! :) i also had to update the file "pins_teensy.c", from line 41, following. No i can use my expanded pins too with Serial, or digitalWrite.
  26. W

    pin assignment of uart

    hey paul, back to my problem: i would like to use the uart3 at pins PTC17 & PTC16 (TX&RX). First of all, i wanted to turn on these pins manually, so i looked up to the core_pins.h and extended this lib. i named pins as following: PTC17 -> pin64 PTC16 -> pin65 PTC15 -> pin66 PTC14 -> pin67...
  27. W

    pin assignment of uart

    btw: i found a mistake on the file "serial4.h" in line 201 - there is a semicolon too much, wondering, that the compiler doesn't give out a mistake?! case 62: CORE_PIN62_CONFIG = cfg | PORT_PCR_MUX(3);; break;
  28. W

    pin assignment of uart

    hello there, i want to use the pinned 100-LQFP version of teensy 3.5. is it possible to configure the uart3 and uart4 via the serial library to pins PTC16-17 (UART3) and pins PT14-15 (UART4)? regards, welocs
  29. W

    Using multiple spi hardware controllers on teensy

    yes, i know the examples, but there's no example of using multiple SPI cores. ok, thank you very much for your answer. This seems to be beginner stuff, but when you are often on different systems and languages it's not the problem about the logic, it's more the problem about missing...
  30. W

    Using multiple spi hardware controllers on teensy

    so i don't need SPI.begin(), i just can use SPI.beginTransaction() for SPI0 and SPI1.beginTransaction() for SPI1, right?
  31. W

    Using multiple spi hardware controllers on teensy

    hi kurte, thanks for your reply! so, if i understand this correctly, i just can code like this?: // begin, settings and transfer for SPI0 SPI.begin(SPISettings()); SPI.transfer(); // begin, settings and transfer for SPI1 SPI1.begin(SPI1Settings()); SPI1.transfer();
  32. W

    Using multiple spi hardware controllers on teensy

    Hi there! I'd like to use more than one SPI hardware controller of the teensy (or even arduino), but i don't find any information about how to do it, or if it is implemented in the spi library. AND - NO! I don't want to connect all my spi devices on one spi controller, i really want to use...
  33. W

    Teensy 3.5 different packages

    OK, problem solved... i miss-soldered one pin...VBat had no VDD... i fixed it and everything's fine, serial monitor works and two LEDs blinking. Good too know for others, which like to use the small package too...lets see, if some bug will occur... (...how much delight two blinking LEDs can...
  34. W

    Teensy 3.5 different packages

    Hi there, it is written, that the following chips can be programmed via the programming IC from the pjrc store: My question: I want to build up a custom board with teensy 3.5, but i'd like to use the small package (100 pin TQFP / MK64FX512VLL12) instead of the bigger one (144 TQFP /...
  35. W

    Pin count discrepancy.

    hey there, for creating board i am using EAGLE. There i've searched for the chips of MK64FX512 (teensy 3.5) too and i found a programm called Ultra Librarian, where you can search for many components already drawn in many datatypes (e.g. egale files or cad-types)...
  36. W

    Cortex - read out status register of ALU

    yes i was was :)... Yeah i saw it. I thought there may be a standard function in C like the min(), max() functions or the stio's. But thank you so far, you helped me a lot!
  37. W

    Cortex - read out status register of ALU

    hi paul, thank you very much! yes, i found this online documentation and it too me a few minutes to find everything i wanted to know...(see the link above) i think i will now just check it with a simple if condition. at the moment i don't have time to get the knowledge of the right asm inline...
  38. W

    Cortex - read out status register of ALU

    ok, i found out, that in the cortex-m4 core you cannot access the status register directly. Information about negative, zero, overflow, carry/borrow and dsp overflow flags are available in the PSR register which "contains" the APSR register. These are accessible through the following assembler...
  39. W

    Cortex - read out status register of ALU

    Hi there, as the title says, i want to get information about a computation of the ALU. Are these register/s available for teensyduino - or can i find these register/s in the datasheet for teensy 3.x? Why i want this register/s? I want to write dimming functions on my own (too learn and so on -...
  40. W

    Forum bug

    hi there, it is sad, that you cannot search for words with two charakters in this forum, so threads for SD card apllications might be hard to find, cause user may only use the letters "SD" without using the word "card" so u may not find many discussions about this. Also the site prints out a...
  41. W

    Teensy 3.5 use SDcard with another SPI-controller

    Hi there, as the title says, i'd like not only to use the on-board sd card connection on the teensy 3.5. Questions: 1.) Does teensy 3.5 only use (read/write) sd cards with SDHC or with SPI? 2.) Is there a possibility to use another SPI-Port(-hardware controller e.g. SPI2, SPI3) for SD-card...
  42. W

    Teensy 3.5 Octo2811 lib - second LED bug

    hi turbok, There is no possibility to solve the problem, except of "imitating" the first LED or provide the correct signals! The chips have no possibility to detect to be the first/second LED.(see example circuit in datasheet page 6) For this, you would need another hardware configuration...
  43. W

    Issues with Teensy 3.2 I2C

    hi, did you also remove code with something like waiting for serial events, data comming in, serial port available etc. e.g.: //wait serial port to open/connect while(!Serial){ //nothing; } ... the mcu may get stuck if somewhere in your code waiting for serial events.
  44. W

    Programming without bootloarder

    Hi there, is there a possibility to programm e.g. the cortex-m4-f from teensy 3.5 via your programming software without using any bootloader? I'd like to create small boards and programm the chip via his own pins so i have more space for another hardware stuff. Or could i maybe get the...
  45. W

    Teensy 3.5 Octo2811 lib - second LED bug

    hey there, thank you again 4 testing my code. I found the problem, and it has to do with one of the first things i have learned really quickly in the first year of my apprenticeship... -> never trust, what someone says... too bad that you have to proove nearly the simplest things. but thats...
  46. W

    Teensy 3.5 Octo2811 lib - second LED bug

    dear defragster, of course i tested different lengths...but in this case, the 2812 chip work as a shift-register, so a longer stripe should not have any effect to ONLY the second LED. I think only high currents over the whole stripe could cause damage or bugs, but then, nobody would use this...
  47. W

    Teensy 3.5 Octo2811 lib - second LED bug

    does nobody has an idea? :(
  48. W

    Teensy 3.5 Octo2811 lib - second LED bug

    Hi there, i tried out you octo lib and have the following problem (btw, thx 4 this lib) with 2812B LEDs: every LED is addressable, except of the second one (address #1). First i connected the teensy 3.5 without a level converter, just to test the library. Then i thought, the problem is because...
Back
Top