Hi, Carl,
I have tested on the LPC54S018 board and MCUXpresso tools, and I get non-zero value for the mem[] array.
This is the result and code.
Hope it can help you
BR
XiangJun Rong
void delay(void);
volatile uint32_t mem[4] = {0};
uint32_t *uint32_point=0x40000430;
/*******************************************************************************
* Variables
******************************************************************************/
/*******************************************************************************
* Code
******************************************************************************/
void delay(void)
{
volatile uint32_t i = 0;
for (i = 0; i < 100000; ++i)
{
__asm("NOP"); /* delay */
}
}
/*!
* @brief Main function
*/
int main(void)
{
uint32_t port_state = 0;
#if 1
for(uint32_t i=0; i<4; i++)
{
mem[i]=*(uint32_point);
uint32_point++;
__asm("nop");
}
#endif
/* Define the init structure for the output LED pin*/
gpio_pin_config_t led_config = {
kGPIO_DigitalOutput, 0,
};
/* Board pin, clock, debug console init */
/* attach 12 MHz clock to FLEXCOMM0 (debug console) */
CLOCK_AttachClk(BOARD_DEBUG_UART_CLK_ATTACH);
..........................................
