Part Number: AM4378
Other Parts Discussed in Thread: TMDSEVM437X
Hello
I started using the evaluation board TMDSEVM437X.
I want to control the surroundings in Baremetal's environment using sample HelloWorld.
I want to control the surroundings in Baremetal's environment using sample HelloWorld.
It will stop after reading the peripheral register.
Do you need to set something?
Source below
※It seems that I can read it by changing the read address from I2C0_BASE_ADDR to GPMC_BASE_ADDR. Is there any difference?
#include <stdio.h>
/**
* hello.c
*/
#define I2C0_BASE_ADDR (0x44E0B000)
#define GPMC_BASE_ADDR (0x50000000)
#define WR_MEM_32(addr, data) *(unsigned int*)(addr) = (unsigned int)(data)
#define RD_MEM_32(addr) *(unsigned int*)(addr)
int main(void){
unsigned int rddat;
printf("Hello World!\n");
rddat = RD_MEM_32(I2C0_BASE_ADDR);
printf ("RD : %x\n",rddat);
printf("End!\n");
while(1);
return 0;
}