only for debug

This commit is contained in:
Wang_Weigen
2021-05-28 21:19:07 +08:00
parent 75c879b9e5
commit 0f7d7f446f
8 changed files with 232 additions and 40 deletions

View File

@@ -3,7 +3,7 @@
/* parameters for sram peripheral */
/* stm32f4 Bank3:0X68000000 */
#define SRAM_BANK_ADDR ((uint32_t)0X60000000)
#define SRAM_BANK_ADDR ((uint32_t)0X68000000)
/* data width: 8, 16, 32 */
#define SRAM_DATA_WIDTH 16
/* sram size */

View File

@@ -140,10 +140,10 @@ int FendGrin()
int tempvalue = 1;
while( i< MEM_GRIN_COUNT) {
KPrintf("\033[32;1malloc memory [%d]\033[0m\n",tempvalue);
ptr[i] = x_malloc(tempvalue);
if (ptr[i]) {
KPrintf("\033[32;1malloc memory [%d] ptr[%d] = 0x%x\033[0m\n",tempvalue,i,ptr[i]);
arr_grin[i] = tempvalue;
i++;
tempvalue++;