Search results

  1. E

    Looking for some good optimization/profiling techniques...

    Thanks for the replies. I have used a timer for this, but wanted to try something with per-function precision like the stuff that gcc supports with -p (IIRC). Years ago I did this, and yes it does cause a real-time hit on performance, but in this case I can deal with it. The issue that may...
  2. E

    Looking for some good optimization/profiling techniques...

    Hi, I've been using Teensy4.1 for a while. My most recent project requires more text space than available in ITCM, so I have to carefully place functions in ITCM space based on their frequency of use. This means I have a mix of functions some in external SPI flash and some in ITCM. Ideally...
  3. E

    Is it possible to load Teensy4.1 if total data in .hex file exceeds MAX_MEMORY_SIZE?

    I use this in a makefile, so a gui version doesn't work for me...
  4. E

    Is it possible to load Teensy4.1 if total data in .hex file exceeds MAX_MEMORY_SIZE?

    Thanks again... I guess my question is a bit more fundamental. I realize I'm jumping around in space that probably isn't heavily played in, but that's my problem... All I really want to know is whether or not it is legal for me to have a .hex file that starts off at 0x60000000 and has 5M of...
  5. E

    Is it possible to load Teensy4.1 if total data in .hex file exceeds MAX_MEMORY_SIZE?

    One more note... I tried just changing MAX_MEMORY_SIZE to 0x400000 in teensy_loader_cli.c and that seems to work. Empirical data can be deceiving. Is that a safe change? Ed
  6. E

    Is it possible to load Teensy4.1 if total data in .hex file exceeds MAX_MEMORY_SIZE?

    Thanks to both (@defragster & @KurtE) for the quick responses! Sorry, still confused... I'm using Teensy4.1 on a few projects, but in a very non-standard way. In both cases the Teensy4.1 module is mounted to custom hardware, I don't use the IDE and I just use teensy_loader_cli as my...
  7. E

    Is it possible to load Teensy4.1 if total data in .hex file exceeds MAX_MEMORY_SIZE?

    Hi, Apologies if this is already addressed somewhere, I couldn't find anything... I was attempting to program Teensy4.1 with a .hex file and I kept getting this error message: error reading intel hex file "nxp_fmurt1062-v1_default.hex" After digging a bit, I realized it was because my hex file...
  8. E

    What is the frequency stability rating of the 24MHz crystal used on teensy4.0/1?

    Wow, thanks for digging (more effectively than I did)!
  9. E

    What is the frequency stability rating of the 24MHz crystal used on teensy4.0/1?

    I won't have a reference, just standalone teensy4 (if possible), so I'm hoping I can get the manufacturer's rating. I can see "2400T E8YU2" on the crystal, but can't get any info from google on that... Thanks,
  10. E

    What is the frequency stability rating of the 24MHz crystal used on teensy4.0/1?

    I'm working on something that requires pretty minimal drift between multiple devices. I'm hoping I can pull it off with a Teensy4. Is there a part-number/manufacturer (or just a rating) for the 24MHz crystal used on these boards? Specifically, I need to know the PPM rating of the main crystal...
  11. E

    Any suggestion for off-the-shelf speaker driver for use with teeny4 audio board?

    Thanks for the responses! I'll post back with whatever I end up using just for future reference...
  12. E

    Any suggestion for off-the-shelf speaker driver for use with teeny4 audio board?

    Not much power.. 3-5W, 4 or 8ohm spkr... Found these so far: https://smile.amazon.com/gp/product/B077MKQJW2 https://smile.amazon.com/gp/product/B00N42NP6W https://www.amazon.com/PAM8403-Channel-Digital-Amplifier-Potentionmeter/dp/B01MYTZGYM Cheap enough to buy one of each and try. Thanks,
  13. E

    Any suggestion for off-the-shelf speaker driver for use with teeny4 audio board?

    Hi, I have to put together a quick audio project that drives a speaker directly. I've used the Teensy4.1 successfully on a different audio/usb project, so I'd like to use Teensy4.x and the audio shield if I can... Has anyone driven a speaker directly and if so, any recommendations on a...
  14. E

    can FPB be used for breakpoints on teensy4?

    Hmmm... digging into this more, it appears that BKPT will never cause an exception; rather it triggers a "pattern" on the debug signals (which, I'm guessing, is what halfKay catches). So, am I correct to assume that FPB and BKPT are typically only used with an external debugger?
  15. E

    can FPB be used for breakpoints on teensy4?

    Hi, I am trying to use the FPB unit on teensy4.1, and I *thought* I had it working but when an address that is loaded into FP_COMPN is hit the board locks up. Then I read that FPB apparently (note I am not an ARM expert by any means) looks like a BKPT to the ARM. For teensy4, bkpt 251 is used...
  16. E

    How to reset teensy 4.1?

    Just to confirm, I did the following... 1. I transferred a 0x800000 byte file to PSRAM 2. I pushed the reboot button 3. From linux I ran: teensy_loader_cli -mmcu=imxrt1062 -b 4. I retrieved the 0x800000 bytes from PSRAM to another file 5. Comparison of the two validated that resetting this way...
  17. E

    How to reset teensy 4.1?

    @luni, Ok, "teensy_loader_cli -b -mmcu=imxrt1062" does exactly what I want! Thanks much, hopefully this will give me everything I need...
  18. E

    How to reset teensy 4.1?

    Excellent! I will give that a try... Thanks,
  19. E

    How to reset teensy 4.1?

    Just thinking a bit more about my reply to luni... An interesting feature for halfKay (IMHO) would be for it to timeout after some duration waiting for a firmware update and just reset the main SOC...
  20. E

    How to reset teensy 4.1?

    @luni Never used tyCommander. See my response to defragster regarding my non-standard context. Regarding the reboot button on the Teensy4.1... as far as I understand things, that drops the board to halfKay bootloader (waiting for a firmware update), and if I don't reload the firmware at that...
  21. E

    How to reset teensy 4.1?

    @defragster, I'm sure I contributed some to the click count, just looking for a reply. Regarding ONOFF... All I meant there was that I tried grounding that pin (thinking it would cause a reset) and it didn't. Then I read more about the pin function (yea, I should've read before grounding :-(...
  22. E

    How to reset teensy 4.1?

    Well, after what appears to be about 140 views, but no replies; I guess there is no easy (i.e. button-push) way to do this. I haven't come up with anything. :-( So, I guess I stick with just depending on the watchdog, since that's what it's made for... Meanwhile, if anyone comes up with a...
  23. E

    How to reset teensy 4.1?

    Is there a way to reset the Teensy4.1 without removing power? I have code that locks up the board, but there are trace logs that I push to psram prior to that. I'd like to be able to restart the CPU without having a power-cycle mess up the PSRAM. As far as I can tell, the ONOFF pin doesn't do...
  24. E

    Teensy4.1 fusemap confusion... my MAC entries appear to be programmed already...

    If there's anyone reading this that may be as confused with this as I was with the fusemap stuff, a post was added to my original question on the NXP forum that *I believe* clarifies things... Go here: https://community.nxp.com/message/1341876 and scroll to the near bottom. HTH Ed
  25. E

    What pad on the backside of Teensy4.1 is the PROG pad?

    Hi, Is there a backside drawing for the Teensy4.1 anywhere? I have a Teensy4.1 in a physical orientation that makes it difficult to get to the PROG button. Is there any reference I can go to so I can verify what pad is the PROG pad? Tx Ed
  26. E

    Firmware update without button...

    Hi, Yes, that worked just fine for me; I used it alot. My environment gave me easy command line access to invoke this, so that just made it more convenient than the button. The only obvious caveat is that it assumes your running code is sane so that you are able to invoke the asm("bkpt #251")...
  27. E

    Teensy4.1 fusemap confusion... my MAC entries appear to be programmed already...

    Nevermind, I just verified that the MAC address that I use with the above orientation is in fact from PJRC... Tx
  28. E

    Teensy4.1 fusemap confusion... my MAC entries appear to be programmed already...

    Sorry if this is documented somewhere... The 6 bytes of the MAC address are stored in OTP@22 and OTP@23 (relative to figure 23-2). OTP@22 has the entire word programmed (4-bytes) and OTP@23 has the lower 2 bytes programmed... Is it correct to assume the two bytes of OTP@23 are the upper 2 bytes...
  29. E

    When halfkay (teensy4.1) loads a new program, how much flash does it erase?

    Hmmm... just thinking about it, my guess is that everything below the eeprom emulation space is erased. True?
  30. E

    When halfkay (teensy4.1) loads a new program, how much flash does it erase?

    Hi, I have a program that takes up about 64K*3 flash space; but when I burn it into Teensy4.1 using teensy-loader/halfkay, it seems that more than the necessary amount of sectors are erased. How does halfkay determine what needs to be erased prior to burning in the new image? I ask because...
  31. E

    Teensy4.1 fusemap confusion... my MAC entries appear to be programmed already...

    Yup, understood. Your environment is really nice; no question there. I've got other iMXRT projects on the queue that a Teensy won't fit in, so I need to climb this learning curve anyway. Thanks much for your responses, and unfortunately for you, I'll be back!
  32. E

    Teensy4.1 fusemap confusion... my MAC entries appear to be programmed already...

    By the way, I am referencing the code in Teensyduino libs, but that's about it. Just using GCC and teensy_loader_cli with a COM port tied to one of the UARTs for initial devel. Painful, but a very good learning process. My hope is to soon have my boot monitor on Teensy4.1 with 1 PSRAM chip and...
  33. E

    Teensy4.1 fusemap confusion... my MAC entries appear to be programmed already...

    Yea, I've pondered that diagram (for too long) trying to figure out how the "non-reserved" entries (0,5,6,7,F, etc..) correspond to locations in the fusemap. Some are clear (LOCK@0x00 = fusemap-0x400, etc..) but others aren't as obvious to me. For example, how do the three BOOT_CFG entries...
  34. E

    Teensy4.1 fusemap confusion... my MAC entries appear to be programmed already...

    Hi, I'm currently trying to understand the OCOTP and Fusemap on the iMXRT1062. Seems my Teensy4.1 came with the MAC0 (Fusemap 0x620 & 0x630) location programmed... Is that supposed to be pre-programmed? According to the 1060's reference manual, that should be all zeros (with each OTP bit...
  35. E

    XIP from external memory on 4.1?

    Ok, good to know. I'll just allocate that upper 256K for the same purpose. Tx
  36. E

    XIP from external memory on 4.1?

    I'm back to transitioning from an eval board to Teensy4.1 and I'm having some trouble getting my image booted with HalfKay, so I just wanna make sure I'm doing things correctly... Am I correct to assume that as long as I limit the addresses in the .hex file (fed to teensy_loader_cli) to space...
  37. E

    Firmware update without button...

    I haven't worked at the bit level with JTAG, but I'm guessing you have access to that value... One interesting feature of HalfKay would be to provide a "bkpt NNN" that simply told it to hard-reset the main '1062 processor.
  38. E

    Firmware update without button...

    This is probably a question only the writer of HalfKay can answer... Is there any significance to the '251' argument?
  39. E

    Firmware update without button...

    The teensy_loader_cli code issues some USB magic to cause the board to call __asm__ volatile ("bkpt"); So, in your code, just replace _reboot_Teenshduino_(); with __asm__ volatile ("bkpt"); and you'll transition to HalfKay. Not sure why _reboot_Teensyduino_() isn't in the core anymore, but that...
  40. E

    Firmware update without button...

    Replying to my own question here... Ok, I realize now that the external connection to the PROG pin isn't necessary (at least not for cases where the processor has remained sane). I now use the __asm__ volatile ("bkpt") instruction which puts the '1062 in debug mode and does some magic on JTAG...
  41. E

    XIP from external memory on 4.1?

    Hi, I'm considering what I guess would be a non-standard memory map; but it depends on the ability to run XIP from the add-on memory (PSRAM &| FLASH) on the Teesny4.1. I see that they are hooked up to the FlexSPI interface on the chip, and the 1060 does support XIP from FlexSPI, so is there any...
  42. E

    Firmware update without button...

    Hi, I have been working with an NXP evaluation board for the '1062, and recently decided to take a go at the Teensy4.x. I am working on a 6-channel microphone board that the Teensy4.x will plug into and the application will essentially be a 6-channel USB audio device. I have pieces of this...
  43. E

    CS42448 OSHPark board prebuilt version available?

    Is anyone selling already-built versions of the CS42448 board?
  44. E

    Any work with USB audio?

    @MikeDB I would be quite happy just having 8in and 8out (simultaneously) at 44.1/16. The text I quoted uses 'or' so it kinda implies one or the other...
  45. E

    Any work with USB audio?

    @JBeale Yea, I don't know if the 8/384/32 is a bandwidth limit or channel count limit. If it is just implying a bandwidth max, then certainly a lot more channels will run when at 44.1kHz/16.
  46. E

    Any work with USB audio?

    I got a response from NXP. Here is the dialog: Question I posted: Answer I received: I have not had a chance to look at their pointers; maybe over the weekend...
  47. E

    Any work with USB audio?

    @PaulStoffregen First, please realize I am 3-4 days into thinking through this project, so if my "hopes and dreams" are absurd I claim full responsibility. :-) I jumped on this when I heard about the Teensy4.0 board. Regarding the NXP support page... I think you can "Invite" listeners to a...
Back
Top