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

Search:

Type: Posts; User: JarkkoL

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    44

    Cool thanks, works! :D

    Cool thanks, works! :D
  2. Replies
    2
    Views
    44

    How to flush cache on T4 (for DMAMEM)?

    Hi,

    I read from the T4 memory layout specs section that DMAMEM specified buffers needs to be flushed for DMA transfer because RAM2 is cached. Is there documentation about these "cache management...
  3. Replies
    3
    Views
    102

    You shouldn't use smart pointers in any...

    You shouldn't use smart pointers in any environment ;)
  4. Replies
    14
    Views
    580

    You can write inline assembly...

    You can write inline assembly in gcc if you want to dive deep into bare metal coding. In general gcc does pretty good job, but there are some cases (e.g. tight high-performance loops) which you may...
  5. Thread: MCU trends

    by JarkkoL
    Replies
    9
    Views
    344

    Oh yeah, the project is for the long run and I...

    Oh yeah, the project is for the long run and I expect there to be few iterations of T4 before T5 hits the market.
  6. Thread: MCU trends

    by JarkkoL
    Replies
    9
    Views
    344

    Waiting for Teensy 5 with Helium support, that'll...

    Waiting for Teensy 5 with Helium support, that'll give nice perf boost for my project :D
  7. Replies
    16
    Views
    560

    Ported the 3D renderer to T4 (w/ DMA), runs much...

    Ported the 3D renderer to T4 (w/ DMA), runs much faster! :D


    https://www.youtube.com/watch?v=Xs_5Sv9oBtk
  8. Replies
    24
    Views
    1,063

    Just ordered this 3.5" 320x480px ILI9488 display...

    Just ordered this 3.5" 320x480px ILI9488 display from Amazon: https://www.amazon.ca/gp/product/B075FP83V5

    Cheap with good Amazon rating and comes with Prime just in time for the weekend to play...
  9. I implemented a fiber library that you can use:...

    I implemented a fiber library that you can use: https://github.com/JarkkoPFC/fiber

    There's an example what does pretty much what you ask for.
  10. Replies
    16
    Views
    560

    The rasterizer renders the image in tiles...

    The rasterizer renders the image in tiles (64x64px tiles in the video), so it doesn't require much memory for operation. For ILI9341 after rendering each tile I submit the pixel data for that tile to...
  11. Replies
    16
    Views
    560

    @mjs513 Very cool! Nice to have other 3D graphics...

    @mjs513 Very cool! Nice to have other 3D graphics enthusiast working on Arduino as well :) I got the lib working on T4 via synchronous SPI transfer, but I have to port the DMA code to T4 as well....
  12. Replies
    16
    Views
    560

    Added DMA support, which gave nice performance...

    Added DMA support, which gave nice performance boost :D


    https://www.youtube.com/watch?v=c-mBRbB1NF8
  13. FWIW, the DMA code in your OS lib has been very...

    FWIW, the DMA code in your OS lib has been very helpful reference for me to implement the DMA transfers for my 3D graphics lib :) It freed up the MCU to do rasterization while transferring the data,...
  14. Replies
    16
    Views
    560

    Thanks for the nice feedback :)

    Thanks for the nice feedback :)
  15. Replies
    16
    Views
    560

    This 3D model is taking only 37kb of memory and...

    This 3D model is taking only 37kb of memory and stored in MCU flash so it's not an issue at all. I have a tool which processes and compresses 3D objects with custom vertex formats so that they can be...
  16. Replies
    16
    Views
    560

    3D Rendering on Teensy

    Had some fun porting my tiled software rasterizer to Teensy & ILI9341 :)


    https://www.youtube.com/watch?v=-7QWQ_h17sw

    Cheers, Jarkko
  17. You could try Arduino Music Player...

    You could try Arduino Music Player to play music on LC.
  18. Replies
    6
    Views
    255

    It's fine to define constructor (and any member...

    It's fine to define constructor (and any member function for that matter) as a template function though, but I guess that's not the behaviour what the OP is after.

    i.e. this is just fine:

    ...
  19. @KurtE Ok, it's perhaps too difficult of a change...

    @KurtE Ok, it's perhaps too difficult of a change to an existing API with various drawing functions which assume random access to the frame buffer. I'm just working on a graphics project which can...
  20. For more compact memory usage, you could double...

    For more compact memory usage, you could double buffer the sub-frames. Just let client to define in how many slices they want to update the screen, and then just call "flip" as many times. E.g. if I...
  21. Replies
    5
    Views
    233

    Thanks for checking it out. Cheers, Jarkko

    Thanks for checking it out.

    Cheers, Jarkko
  22. This is handled by graphics API's by client code...

    This is handled by graphics API's by client code calling flip() once it's done drawing a frame. Then you can decide to start DMA transfer or stall depending on the state of the previous DMA transfer.
  23. Replies
    5
    Views
    233

    Had some problems trying to upload hex & elf, but...

    Had some problems trying to upload hex & elf, but attached is the project. I'm compiling on Win10 & Arduino IDE 1.8.10 (uploading via Visual Micro also fails), Teensyduino 1.48. This is also using...
  24. Replies
    5
    Views
    233

    Teensy 4 probs with >1MB elfs

    I have an issue with >1MB elfs on Teensy 4. If I have >1MB program running on T4 and I want to upload another elf, regardless of the size of the new elf, this upload always fails (gives "Download...
  25. Thread: 3D graphics

    by JarkkoL
    Replies
    0
    Views
    106

    3D graphics

    Hi,

    Is there a low-level 3D graphics library for Arduino (along the lines of DirectX/Vulkan/Metal/etc.) to render 3D graphics? I checked around and found only quite primitive 3D rendering...
  26. Replies
    6
    Views
    150

    Well, if you absolutely want to take a trip to...

    Well, if you absolutely want to take a trip to the syntax crazy land:


    #define KEY(name__, ...) unsigned int pulse##name__[]=__VA_ARGS__;\
    Key key##name__={#name__,...
  27. Replies
    6
    Views
    150

    you could do something along the lines of: ...

    you could do something along the lines of:


    struct Key {
    char Name[8];
    unsigned int *Pulse;
    };

    unsigned int pulseOn[]={9070,4480, 610,530, 600,530, 610,520, 600,530, 00};
    Key keyOn =...
  28. You only need to update pixels for the needle so...

    You only need to update pixels for the needle so there's no perf issue and the needle can also overlap the background graphics. You can even have a texture for the needle for some added visual flair....
  29. Yeah, the sample data is stored at the end of the...

    Yeah, the sample data is stored at the end of the file which takes bulk of the file, so you just cut some of that data out but memory past your buffer is still referred from the sample metadata....
  30. You could load the music data from SD card and...

    You could load the music data from SD card and store it in flash, but it must exists in the memory all at once. Unlike mp3 which can be streamed, the PMF data is randomly accessed based on the played...
  31. The format is actually documented in...

    The format is actually documented in doc/file_format_pmf.xlsx file. The signature is "pmfx" .. don't remember why I added "x" there but the signature must be 4 bytes to make the rest of the file data...
  32. You could do this with Teensy 3.2 by storing the...

    You could do this with Teensy 3.2 by storing the background image in flash and updating the needle with triangle rasterization on top of it. Since you don't need to actually update other than...
  33. Quote from ILI9341 page here (with link to the...

    Quote from ILI9341 page here (with link to the mentioned HW mod thread): https://www.pjrc.com/store/display_ili9341_touch.html

    "We do not recommend using the SD card socket on this display. It...
  34. Ported the TFT visualizer to Teensy 4, which...

    Ported the TFT visualizer to Teensy 4, which seems to work fine even when using hardware CS pin for the TFT. The audio shield uses the hardware CS pin for SD card so it doesn't conflict with the...
  35. Replies
    9
    Views
    362

    Unlikely if your memory manager isn't horrible,...

    Unlikely if your memory manager isn't horrible, but if you want to be particular about it, it's left as an exercise to the reader to do it without the heap :p
  36. Hey thanks Chris! Incidentally I worked on...

    Hey thanks Chris! Incidentally I worked on ILI9341 based visualizer for the project, currently running on Teensy 3.6, but I'm about to port it to Teensy 4 :D I think it should be quite...
  37. Replies
    3
    Views
    211

    You can do this already by dynamically...

    You can do this already by dynamically creating/deleting audio connection objects though.
  38. The problem with VMicro is that it copies all the...

    The problem with VMicro is that it copies all the dependent files needed for the project to a temp dir when you first time compile it, which can take a long time. After the initial compilation the...
  39. Any Teensy board should easily manage 8000 lines...

    Any Teensy board should easily manage 8000 lines project since the program is stored in the MCU flash memory. The dynamic memory usage is more likely to become a bottleneck, i.e. how you do heap and...
  40. Added stereo support for Teensy 3.5/3.6 as well,...

    Added stereo support for Teensy 3.5/3.6 as well, and better recording to demonstrate the audio quality of the 12bit onboard DAC's:


    https://www.youtube.com/watch?v=lHedBAKhhnM
  41. Replies
    6
    Views
    175

    You could use free OpenMPT (https://openmpt.org)...

    You could use free OpenMPT to do some basic sample editing, setup sample loops (forward/bidi), resample & adjust note pitch, convert to mono & bit depth and also setup instruments (note-sample...
  42. Replies
    6
    Views
    175

    Hurdy gurdy sounds like quite a simple instrument...

    Hurdy gurdy sounds like quite a simple instrument which should easily fit in Teensy 4 flash, but you would need to do some work to set it up properly, i.e. setup sample loops and potentially volume...
  43. Ah yes, I was wondering if it's a common practice...

    Ah yes, I was wondering if it's a common practice to have "soft clamping" for audio. We do this similar stuff in graphics where we use different tone mapping operators to map HDR image to SDR range,...
  44. Replies
    6
    Views
    175

    It sounds an overkill to have several tens of...

    It sounds an overkill to have several tens of megabytes for an instrument. Do you have a separate wavetable for every single note on the instrument?

    FYI, I posted to this another thread about...
  45. For polyphony all the audio channel mixing is...

    For polyphony all the audio channel mixing is done on Teensy and the final data is sent to a DAC (onboard DAC for <T4 or external). For mixing you need to make sure you don't under/overflow the final...
  46. Replies
    5
    Views
    206

    To convert a c-string to double try using atof()...

    To convert a c-string to double try using atof() function. Also %-operator doesn't work with floats (only ints like you found out) but you should use fmod() function
  47. Replies
    14
    Views
    1,254

    You can use Audio Adaptor Board...

    You can use Audio Adaptor Board (rev D) at least, that's directly pin compatible with Teensy 4. Not sure if you could also use the PT8211 Audio Kit as well with T4 if you wire it differently?
  48. Thanks! :D Added also stereo support ...

    Thanks! :D

    Added also stereo support


    https://www.youtube.com/watch?v=hCXwcoMfH8s
  49. Probably not a good idea to try to sync your...

    Probably not a good idea to try to sync your external data sampling frequency with output device interrupt frequency. You should instead hook your data sampling to a separate interrupt with required...
  50. Arduino Music Player on Teensy Audio Shield

    Ported my Arduino Music Player to the Teensy Audio Shield.


    https://www.youtube.com/watch?v=Qk2NLHaBOnQ

    You can download the project at: https://github.com/JarkkoPFC/arduino-music-player
    ...
Results 1 to 50 of 95
Page 1 of 2 1 2