heap_caps_malloc vs new class #11305
              
                Unanswered
              
          
                  
                    
                      bhcuong2008
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| ESP32 Arduino has set the IDF parameter to use malloc() for  sdkconfig settings: References: | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
ESP-IDF provides
heap_caps_mallocto allocate memory with specific flags. But how about construct an object withnewkeyword. For example,Person *p = new Person();How do we specify allocating the object Person in PSRAM or in IRAM?
Beta Was this translation helpful? Give feedback.
All reactions