Search results

  1. Frankthetech

    OTA through Ethernet with Teensy 4.1

    Thanks AndyA, question the hex.data, &hex.addr, &hex.num, &hex.code are not declared, nor are process_hex_record, parse_hex_line what library am I missing that these come from?
  2. Frankthetech

    OTA through Ethernet with Teensy 4.1

    I'm working on using this flasherX to remote update over Ethernet. I got the transfer of the hex file to the teensy4.1 working, but I not sure how to get the lines of hex into the buffer. Does the (flash_write_block) keep track of the address to write the lines to or do I need to do that? I...
  3. Frankthetech

    OTA through Ethernet with Teensy 4.1

    AndyA, are you saying that including flasherX in my code should be enough to meet this check? Well that didn't seem to work for me. I had to use it somewhere in the code before it would work. Although that makes sense I'll check it again.
  4. Frankthetech

    OTA through Ethernet with Teensy 4.1

    I know this is an older thread but I'm reading this to figure out how to do these updates to the 4.1. been working with the older 3.1. Anyway I noticed the issue about the flash ID and found it's necessary to use the ID in your code somewhere, like Serial.println("fw_teensy41"); Did not work for...
  5. Frankthetech

    CPU clock read

    Thanks for the info, I will try some different code without the delay function. this is only a test to see how close to the cpu freq I can get usable data. I'll write some asm code to test this further.
  6. Frankthetech

    CPU clock read

    I'm running the following code on a teensy 3.2 and getting results that I don't quite understand. at 96 mhz I'd expect to see a stable output. //read and display cpu clock unsigned long cpu = 0; unsigned long cpu1 = 0; unsigned long dif = 0; void setup() { Serial.begin(19200)...
  7. Frankthetech

    t3.5 write sd listing to file

    Ok I think I found it, I create a 'file savData' then call root.ls(&savData, LS_R); this sends the output to the savData file. So far seems to work but I found a glitch, When I send the output to the Serial with root.ls(LS_R) I get the following list.. ss718/ SteriA/ 2020/ followed...
  8. Frankthetech

    t3.5 write sd listing to file

    I'm trying to write a file to the sd card that contains a listing of all the files on the sd card. my question is can I use root.ls(LS_R) and send it to a file instead of it sending to the serial? I can do it with the printDirectory example but seems I should be able to send the output from...
  9. Frankthetech

    sdEx with t3.5 add struct to single file problem

    Update, turns out its not so much a write problem. I set a test up and was able to write well over 10000 44byte structs to a single file no problem. Must be a glitch in another part of the program. This post can be deleted!
  10. Frankthetech

    sdEx with t3.5 add struct to single file problem

    I have a logging code that writes a struct of 44 bytes (a simple database) to a single file. Each write is just added to the end of the file. In my main code I just call dataBase.openCreate(dbName) where dbName is the path. Works like it should, the databaseEx library (see attached) handles...
  11. Frankthetech

    'Over the Air' firmware updates, changes for flashing Teensy 3.5 & 3.6

    Over Ethernet is something I'm working on, have not been able to finish it yet. lots of other stuff todo. The path I'm on is sending the flash data in the body of a post request, then code the teensy side to strip the data out of the body. Sending the data is easy, Using curl to send the hex...
  12. Frankthetech

    'Over the Air' firmware updates, changes for flashing Teensy 3.5 & 3.6

    Ya I get that kind of break up too. The first two 0x08 and 0x04 are easy to combine. but at only 12 bytes would need to grab 4 bytes from the next line too. just need to compute the right checksum. :04 AD78 00 F8 B5 00 BF 6B line is going to write 0xBF to AD7C and the next line :08 AD7C 00 68...
  13. Frankthetech

    'Over the Air' firmware updates, changes for flashing Teensy 3.5 & 3.6

    Great stuff! It works with my file 8120 lines x 16 bytes = 129920 bytes code size flashed with no problem. Code seems to work as expected, will test and report. Joe thanks for making this work. now we have a way to do updates remotely.
  14. Frankthetech

    'Over the Air' firmware updates, changes for flashing Teensy 3.5 & 3.6

    I was able to get it working. Flasher3b has no problem with 130k code size. uploaded and works. Thanks for all the help! Still some more to do, make code with the flasher and test.
  15. Frankthetech

    'Over the Air' firmware updates, changes for flashing Teensy 3.5 & 3.6

    I working on this some more and looking into the code compiled I see this about middle of the code (about 129k total code size) :10FFE000704700BF18EA0100054A02608A7D02716D.. :10FFF000CA7D42710A7E82714A7EC271704700BF1B.. :020000021000EC.. :1000000018EA0100064A02608A7 F0271CA7F4271C3.. does the...
  16. Frankthetech

    'Over the Air' firmware updates, changes for flashing Teensy 3.5 & 3.6

    I did some work on this, just trying to understand the workings of the hex file. I complied a blink program, looked at the hex file and found that at about 3/4 into the file was a misaligned data line. :0C2BA0009E467047992600003504000096 :042BAC00F8B500BFB9 I noticed these two lines were 12 and...
  17. Frankthetech

    'Over the Air' firmware updates, changes for flashing Teensy 3.5 & 3.6

    Thanks for your help, if I can help with coding, testing just let me know.
  18. Frankthetech

    'Over the Air' firmware updates, changes for flashing Teensy 3.5 & 3.6

    I'm using notepad++ then arduino only to compile and teensyduino to load. target is t35 code is about 129k
  19. Frankthetech

    'Over the Air' firmware updates, changes for flashing Teensy 3.5 & 3.6

    I must be lucky..lol I can still upload the flasher code to the t35. I dont try to :flash xxx if it reports a mismatch. so no bricked teensy yet. I'm still thinking it might be intelhex limits to 64k
  20. Frankthetech

    'Over the Air' firmware updates, changes for flashing Teensy 3.5 & 3.6

    I'm testing and am wondering if the problem is with intelhex, seems it only reports memory 0000 to ffff written. the flasher works with code converted thats under ffff bytes in length. :10040000F3627FE700283FF47DAF204601F030FA29
  21. Frankthetech

    'Over the Air' firmware updates, changes for flashing Teensy 3.5 & 3.6

    I have gotten some success in this with your help, I need some help understanding this output done, 4097 hex lines, address range 0:10000, waiting for :flash 4097 lower FSEC (fffff9deffffffff) and upper FSEC (fa30f0014620af7d) do NOT match looking at the flasher3b.h file my file is less then...
  22. Frankthetech

    'Over the Air' firmware updates, changes for flashing Teensy 3.5 & 3.6

    Thanks for your help. I will work on this and see if I can get it working.
  23. Frankthetech

    'Over the Air' firmware updates, changes for flashing Teensy 3.5 & 3.6

    will this be all I need to add to the code #define FLASH_SIZE 0x80000 // 512Kb of program flash #define FLASH_SECTOR_SIZE 0x1000 // 4Kb sector size #define FLASH_WRITE_SIZE 8 // 8-byte/64-bit flash memory writes #define FLASH_ID "fw_teensy3.5"...
  24. Frankthetech

    'Over the Air' firmware updates, changes for flashing Teensy 3.5 & 3.6

    Can the flasher3b version handle the hex file output from the complier? or is it necessary to convert it with intelhex.exe first? when I try to use the hex file as is I get 'flash_block align error cant flash 4 bytes to dc10' on the last line of the file. When I convert it with IntelHex I get...
  25. Frankthetech

    'Over the Air' firmware updates, changes for flashing Teensy 3.5 & 3.6

    That did it, thanks. I missed that somehow. What is the best way to send the file to the teensy? Realterm? other?
  26. Frankthetech

    'Over the Air' firmware updates, changes for flashing Teensy 3.5 & 3.6

    I've tried the flasher 3b and it goes well till it responds with lower FSEC and upper FSEC match then stops, the example file never runs. Am I missing something? If I power cycle the t3.5 it still has the flasher code running. Should not the example code start running? I can use the teensy...
  27. Frankthetech

    Need to hire coding expert

    I'm looking to hire someone to help with coding for a project. My need is for code to send the contents of the sd card over ethernet for backups. The hardware is done. Get me in touch with me if you can help. Thanks
  28. Frankthetech

    Teensy 3.2 EEPROM

    I am using the 3.2 teensy and was uploading new code, does anyone know if the eeprom is suppost to be wiped (cleared to 255) during upload? I have set the lock bit, so I do have to push the button to load new code. It would seem that it does wipe the eeprom. Just wondering if this is by design...
  29. Frankthetech

    Can i use my Teensy 2 to control 2 analog thumb-sticks.

    Ok now I see what you are trying to do. I think... You want to plug in the teensy to your computer and have it show up as a usb joystick? So forget the above code, it won't do what your after.. From Teensy examples... This is what you were using. * Basic USB Joystick Example Teensy becomes...
  30. Frankthetech

    Can i use my Teensy 2 to control 2 analog thumb-sticks.

    How do you know? the code you posted doesn't do any thing with the values you read from the joy sticks. Check manitou's post, you need to send the results somewhere to see them. Check my post from before I've added a serial monitor print statement... Just add Serial.println statements as needed.
  31. Frankthetech

    Can i use my Teensy 2 to control 2 analog thumb-sticks.

    You need to identify each one, try void setup() { Serial.begin(9600); pinMode(0,INPUT_PULLUP); pinMode(1,INPUT_PULLUP); } void loop(){ int Joystick1x=analogRead(A0); int Joystick1y=analogRead(A1); int Joystick2x=analogRead(A2); int Joystick2y=analogRead(A3); int...
  32. Frankthetech

    interupts interfering with serial?

    I do agree, it's unlikely that a few cycles could cause serial data to be missed. You are right, I may not use the watchdog. It was more of a learning exercise anyway. And the reason for this post was to try to understand why.. I set up the watchdog first thing as follows: #ifdef __cplusplus...
  33. Frankthetech

    interupts interfering with serial?

    I have a question, a project I'm working on is missing serial1 data at random times. I'm coding for a teensy 3.2 and trying to use the watchdog timer to prevent the software from locking up. But when I disable the watchdog it seems to work fine. So, is it possible that when the watchdog halts...
  34. Frankthetech

    updating time date

    I'm posting to see if anyone has a idea how I can update the rtc on the teensy 3.2. This unit is a stand alone device, has no buttons and the usb port is not available. It does have an sd card to log data. I don't believe this would have to be done very often as the clock should keep good time...
Back
Top