Skip to content

Commit a27700d

Browse files
author
Cruz Monrreal
authored
Merge pull request #6683 from ganesh-ramachandran/master
Add IAR export and nvstore page size fix for TMPM46B
2 parents 8e23985 + 38c5997 commit a27700d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

targets/TARGET_TOSHIBA/TARGET_TMPM46B/flash_api.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
#define PROGRAM_WIRTE_MAX 16U /* Page program could be written 16 bytes/4 words once */
2222
#define SECTOR_SIZE 0x8000 /* (512 * 8) sectors */
23+
#define PAGE_SIZE 16U /* Page program size is 16 bytes */
2324

2425
#if defined ( __ICCARM__ ) /* IAR Compiler */
2526
#define FLASH_API_ROM ((uint32_t *)__section_begin("FLASH_CODE_ROM"))
@@ -143,7 +144,7 @@ uint32_t flash_get_sector_size(const flash_t *obj, uint32_t address)
143144
#endif
144145
uint32_t flash_get_page_size(const flash_t *obj)
145146
{
146-
return FLASH_PAGE_SIZE;
147+
return PAGE_SIZE;
147148
}
148149

149150
#if defined ( __ICCARM__ ) /* IAR Compiler */

tools/export/iar/iar_definitions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,5 +273,10 @@
273273
},
274274
"ADuCM4050": {
275275
"OGChipSelectEditMenu": "ADuCM4050\tAnalogDevices ADuCM4050"
276+
},
277+
"TMPM46BF10FG":{
278+
"OGChipSelectEditMenu": "TMPM46BF10FG\tToshiba TMPM46BF10FG",
279+
"GFPUCoreSlave": 21,
280+
"GBECoreSlave": 21
276281
}
277282
}

0 commit comments

Comments
 (0)