Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IAR export and nvstore page size fix for TMPM46B #6683

Merged
merged 1 commit into from Apr 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion targets/TARGET_TOSHIBA/TARGET_TMPM46B/flash_api.c
Expand Up @@ -20,6 +20,7 @@

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

#if defined ( __ICCARM__ ) /* IAR Compiler */
#define FLASH_API_ROM ((uint32_t *)__section_begin("FLASH_CODE_ROM"))
Expand Down Expand Up @@ -143,7 +144,7 @@ uint32_t flash_get_sector_size(const flash_t *obj, uint32_t address)
#endif
uint32_t flash_get_page_size(const flash_t *obj)
{
return FLASH_PAGE_SIZE;
return PAGE_SIZE;
}

#if defined ( __ICCARM__ ) /* IAR Compiler */
Expand Down
5 changes: 5 additions & 0 deletions tools/export/iar/iar_definitions.json
Expand Up @@ -273,5 +273,10 @@
},
"ADuCM4050": {
"OGChipSelectEditMenu": "ADuCM4050\tAnalogDevices ADuCM4050"
},
"TMPM46BF10FG":{
"OGChipSelectEditMenu": "TMPM46BF10FG\tToshiba TMPM46BF10FG",
"GFPUCoreSlave": 21,
"GBECoreSlave": 21
}
}