Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Y'all are such great rubber ducks and I need it right now.

Y'all are such great rubber ducks and I need it right now.

Scheduled Pinned Locked Moved The Lounge
designcomgraphicsadobehardware
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • honey the codewitchH Offline
    honey the codewitchH Offline
    honey the codewitch
    wrote on last edited by
    #1

    A year ago this MIMXRT1170-EVK board would have made me cry. Real tears. As it is, it puts up a heck of a fight. I mentioned some war stories several posts ago and have now progressed to trying to use the board's relatively generous SDRAM, and also write my program to the board's external flash - unlike most ARM Cortex M chips, these boys don't have embedded flash. It's external. It's cool because you can add your own flash to it in whatever size and spec you need, but it makes things complicated. Somehow writing my previously working program to flash (rather than debug-injecting it directly into SRAM) is causing SPI send errors and is running extremely slow. I'm trying to copy the contents to SDRAM and run it from there, which should be doable, but the flasher refuses to write my code when I configure it that way, despite it compiling and linking. In the end I'd like to boot off of microSD which this is capable of but it's black magic. It's fits and starts with this board. I hit walls, make a bit or even a bunch of progress, and then back to the barriers everywhere i look. I do not like NXP's documentation.

    Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

    N J Sander RosselS 3 Replies Last reply
    0
    • honey the codewitchH honey the codewitch

      A year ago this MIMXRT1170-EVK board would have made me cry. Real tears. As it is, it puts up a heck of a fight. I mentioned some war stories several posts ago and have now progressed to trying to use the board's relatively generous SDRAM, and also write my program to the board's external flash - unlike most ARM Cortex M chips, these boys don't have embedded flash. It's external. It's cool because you can add your own flash to it in whatever size and spec you need, but it makes things complicated. Somehow writing my previously working program to flash (rather than debug-injecting it directly into SRAM) is causing SPI send errors and is running extremely slow. I'm trying to copy the contents to SDRAM and run it from there, which should be doable, but the flasher refuses to write my code when I configure it that way, despite it compiling and linking. In the end I'd like to boot off of microSD which this is capable of but it's black magic. It's fits and starts with this board. I hit walls, make a bit or even a bunch of progress, and then back to the barriers everywhere i look. I do not like NXP's documentation.

      Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

      N Offline
      N Offline
      Nelek
      wrote on last edited by
      #2

      Take a break and some distance, get busy with something else for a while, relax a bit and you probably will find a hack or a new way to do it as you usually do. Just breath slow.

      M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

      J 1 Reply Last reply
      0
      • honey the codewitchH honey the codewitch

        A year ago this MIMXRT1170-EVK board would have made me cry. Real tears. As it is, it puts up a heck of a fight. I mentioned some war stories several posts ago and have now progressed to trying to use the board's relatively generous SDRAM, and also write my program to the board's external flash - unlike most ARM Cortex M chips, these boys don't have embedded flash. It's external. It's cool because you can add your own flash to it in whatever size and spec you need, but it makes things complicated. Somehow writing my previously working program to flash (rather than debug-injecting it directly into SRAM) is causing SPI send errors and is running extremely slow. I'm trying to copy the contents to SDRAM and run it from there, which should be doable, but the flasher refuses to write my code when I configure it that way, despite it compiling and linking. In the end I'd like to boot off of microSD which this is capable of but it's black magic. It's fits and starts with this board. I hit walls, make a bit or even a bunch of progress, and then back to the barriers everywhere i look. I do not like NXP's documentation.

        Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

        J Offline
        J Offline
        Jo_vb net
        wrote on last edited by
        #3

        I would go back to a state that really worked and try a new approach. On Thursday I added automated testing to my cards game (replace the human player with another computer player and later add a simple AI approach). First it seemed to work ok (run > 200 games without any problem). After one day of writing code and testing it started with ugly Sytem.StackOverFlow error always after 15 games in 32 bit (and 45 games in 64 bit version). Tried to fix Sytem.StackOverFlow error on Friday and Saturday - but could not solve this challenge. Then last night I went back to my backup from Thursday (automated testing without AI) and the error is gone. Now looking for a new AI solution...

        honey the codewitchH 1 Reply Last reply
        0
        • J Jo_vb net

          I would go back to a state that really worked and try a new approach. On Thursday I added automated testing to my cards game (replace the human player with another computer player and later add a simple AI approach). First it seemed to work ok (run > 200 games without any problem). After one day of writing code and testing it started with ugly Sytem.StackOverFlow error always after 15 games in 32 bit (and 45 games in 64 bit version). Tried to fix Sytem.StackOverFlow error on Friday and Saturday - but could not solve this challenge. Then last night I went back to my backup from Thursday (automated testing without AI) and the error is gone. Now looking for a new AI solution...

          honey the codewitchH Offline
          honey the codewitchH Offline
          honey the codewitch
          wrote on last edited by
          #4

          I can go back to the state that worked, but that only works by direct injection into memory using a debug probe, which is not practical. As far as new approaches, that's the problem. Although I've found a lead just now. The issue is getting the program to load off of flash into SDRAM, which I managed, but then it has to execute in place out of the SDRAM, which is not automatic, and the documentation on setting all this up is .. terse, plus it involves a lot of register fiddling and clock timing things. It's nothing straightforward. Fortunately I just found an example of doing what i need which I can hopefully adapt.

          Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

          1 Reply Last reply
          0
          • honey the codewitchH honey the codewitch

            A year ago this MIMXRT1170-EVK board would have made me cry. Real tears. As it is, it puts up a heck of a fight. I mentioned some war stories several posts ago and have now progressed to trying to use the board's relatively generous SDRAM, and also write my program to the board's external flash - unlike most ARM Cortex M chips, these boys don't have embedded flash. It's external. It's cool because you can add your own flash to it in whatever size and spec you need, but it makes things complicated. Somehow writing my previously working program to flash (rather than debug-injecting it directly into SRAM) is causing SPI send errors and is running extremely slow. I'm trying to copy the contents to SDRAM and run it from there, which should be doable, but the flasher refuses to write my code when I configure it that way, despite it compiling and linking. In the end I'd like to boot off of microSD which this is capable of but it's black magic. It's fits and starts with this board. I hit walls, make a bit or even a bunch of progress, and then back to the barriers everywhere i look. I do not like NXP's documentation.

            Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

            Sander RosselS Offline
            Sander RosselS Offline
            Sander Rossel
            wrote on last edited by
            #5

            I once asked a coworker about his rubber duck (he had one on his desk) and misspelled "duck". He laughed, I laughed, HR laughed.

            Best, Sander Azure DevOps Succinctly (free eBook) Azure Serverless Succinctly (free eBook) Migrating Apps to the Cloud with Azure arrgh.js - Bringing LINQ to JavaScript

            1 Reply Last reply
            0
            • N Nelek

              Take a break and some distance, get busy with something else for a while, relax a bit and you probably will find a hack or a new way to do it as you usually do. Just breath slow.

              M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

              J Offline
              J Offline
              jmaida
              wrote on last edited by
              #6

              I agree with Nelek

              "A little time, a little trouble, your better day" Badfinger

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups