我想通过platform接口写cfg到flash中保存下来:
platform_device_write(chip->nor_handle, CONFIG_START_BLOCK*CONFIG_BLOCK_SIZE, (unsigned char *)cfg, sizeof(struct global_config));
但是单步调试中发现在 Osal_platformMalloc()中Memory_alloc()崩溃了。
我想问一下这样操作是否不对,如果有问题的话,我应该怎样实现我想要的结果呢?
敬候答复
