Some HAL SRAM memory enable commands no longer work.

I’ve notice that the hi-speed ADC example no longer worked, hanging on the line that enables the first 32k of SRAM.

I’ve just run this test code and and determined that enabling anything over 128k is still fine, but anything below that will cause the code to hang, with no errors given. Maybe there’s just a fault with my Redboard, but I thought I’d pass it on.

/*Artemis Redboard SRAM enable test.  
 
  'AM_HAL_PWRCTRL_MEM_SRAM_32K_DTCM' used to work, but now the program just hangs.  
  No errors at compile time and none reported via the serial port.
  The final print statement doesn't happen.
  
  AM_HAL_PWRCTRL_MEM_SRAM_128K and higher however do still work.

*/

void setup() {
  Serial.begin(115200);
  Serial.println("Enable SRAM");
  Serial.flush();
  
/*  AM_HAL_PWRCTRL_MEM_NONE,      >>Works
    
    AM_HAL_PWRCTRL_MEM_SRAM_8K_DTCM,    >>Fails
    AM_HAL_PWRCTRL_MEM_SRAM_32K_DTCM,   >>Fails
    AM_HAL_PWRCTRL_MEM_SRAM_64K_DTCM,   >>Fails
    AM_HAL_PWRCTRL_MEM_SRAM_96K,      >>Fails
    
    AM_HAL_PWRCTRL_MEM_SRAM_128K,     >>Works
    AM_HAL_PWRCTRL_MEM_SRAM_160K,     >>Works
    AM_HAL_PWRCTRL_MEM_SRAM_192K,     >>Works
    AM_HAL_PWRCTRL_MEM_SRAM_224K,     >>Works
    AM_HAL_PWRCTRL_MEM_SRAM_256K,     >>Works
    AM_HAL_PWRCTRL_MEM_SRAM_288K,     >>Works
    AM_HAL_PWRCTRL_MEM_SRAM_320K,     >>Works
    AM_HAL_PWRCTRL_MEM_SRAM_352K,     >>Works
    AM_HAL_PWRCTRL_MEM_SRAM_384K,     >>Works
*/
  
      // Enable the first 32K of TCM SRAM.
    //if (AM_HAL_STATUS_SUCCESS != am_hal_pwrctrl_memory_enable(AM_HAL_PWRCTRL_MEM_SRAM_32K_DTCM)) 
    if (AM_HAL_STATUS_SUCCESS != am_hal_pwrctrl_memory_enable(AM_HAL_PWRCTRL_MEM_SRAM_128K))
    {
        //am_util_stdio_printf("Error - configuring the SRAM failed.\n");
        Serial.println("Error - configuring the SRAM failed.");
    }
    Serial.println("SRAM Enabled");
    Serial.flush();
}

void loop() {
  // put your main code here, to run repeatedly:

}

did you move from library V1.x.x to v2.x.x ??