log message:
[UNISOC] [WRN] main: [0;33mUnisoc fdl 0x11[0m
do_download:enter
1 is 2 is 104720two is 104720three is 0four is 104720two is 108734three is 1four is 108734two is 10c748 USAGE FAULT
Executing thread ID (thread): 0x00110c88
Faulting instruction address: 0x0
Illegal use of the EPSR
Fatal fault in essential thread! Spinning...
code :
for (i = 0; i < PACKET_MAX_NUM; i++) {
printf("two is %x", &packet[i]);
memset (&packet[i], 0, sizeof (dl_packet_t));
printf("three is %x", i);
packet[i].next = &packet[i+1];
printf("four is %x", &packet[i]);
}
dl_packet_t size 16K
log message: [UNISOC] [WRN] main: [0;33mUnisoc fdl 0x11[0m do_download:enter 1 is 2 is 104720two is 104720three is 0four is 104720two is 108734three is 1four is 108734two is 10c748 USAGE FAULT Executing thread ID (thread): 0x00110c88 Faulting instruction address: 0x0 Illegal use of the EPSR Fatal fault in essential thread! Spinning...
code : for (i = 0; i < PACKET_MAX_NUM; i++) { printf("two is %x", &packet[i]); memset (&packet[i], 0, sizeof (dl_packet_t)); printf("three is %x", i); packet[i].next = &packet[i+1]; printf("four is %x", &packet[i]); } dl_packet_t size 16K