Updated core with IAR fix for --vla and backward compatbility. Fixed config store and bufferedserial when --vla is not present (IAR)

Mihail Stoyanov 2016-06-15 00:09:11 +01:00
parent 81e84ed1b3
commit 505d1e1fa7
3 changed files with 6 additions and 3 deletions

View File

@ -1 +1 @@
https://github.com/mbedmicro/mbed/#bd2159db26273244d0e96714877174a32268060b https://github.com/mbedmicro/mbed/#d0db5c94e5ce899412280d8c71d65850e0c8b30b

View File

@ -26,7 +26,10 @@ size_t BufferedSerialThunk(void *buf_serial, const void *s, size_t length);
int BufferedPrintfC(void *stream, int size, const char* format, va_list arg) int BufferedPrintfC(void *stream, int size, const char* format, va_list arg)
{ {
int r; int r;
char buffer[size]; char buffer[512];
if (size >= 512) {
return -1;
}
memset(buffer, 0, size); memset(buffer, 0, size);
r = vsprintf(buffer, format, arg); r = vsprintf(buffer, format, arg);
// this may not hit the heap but should alert the user anyways // this may not hit the heap but should alert the user anyways

View File

@ -346,7 +346,7 @@ int32_t cfstore_test_init_1(void)
char* read_buf = NULL; char* read_buf = NULL;
const uint8_t key_name_max_len = CFSTORE_KEY_NAME_MAX_LENGTH+1; const uint8_t key_name_max_len = CFSTORE_KEY_NAME_MAX_LENGTH+1;
uint8_t key_name_len = 0; uint8_t key_name_len = 0;
char key_name_buf[key_name_max_len]; char key_name_buf[CFSTORE_KEY_NAME_MAX_LENGTH+1];
int32_t ret = ARM_DRIVER_ERROR; int32_t ret = ARM_DRIVER_ERROR;
ARM_CFSTORE_SIZE len = 0; ARM_CFSTORE_SIZE len = 0;
ARM_CFSTORE_SIZE max_len = 0; ARM_CFSTORE_SIZE max_len = 0;