Skip to content

Modified target_cfg api#620

Merged
brianesquilona merged 1 commit intoARMmbed:masterfrom
brianesquilona:flash_ram_region_flags
Apr 16, 2019
Merged

Modified target_cfg api#620
brianesquilona merged 1 commit intoARMmbed:masterfrom
brianesquilona:flash_ram_region_flags

Conversation

@brianesquilona
Copy link
Copy Markdown
Contributor

  1. Array of flash and ram regions are defined
  2. Added flash algo, flags, alias_index for memory region
  3. Moved target_config.h and target_rest.h to target folder
  4. Modified families and bootloader file for new target_config api

@brianesquilona
Copy link
Copy Markdown
Contributor Author

/morph test

@brianesquilona brianesquilona force-pushed the flash_ram_region_flags branch from 4077c1e to 7a98ff4 Compare April 1, 2019 14:48
@brianesquilona
Copy link
Copy Markdown
Contributor Author

/morph test

@brianesquilona brianesquilona force-pushed the flash_ram_region_flags branch from dc7785d to c3df89f Compare April 1, 2019 18:10
@brianesquilona
Copy link
Copy Markdown
Contributor Author

/morph test

1. Array of flash and ram regions are defined
2. Added flash algo, flags, alias_index for memory region
3. Moved target_config.h and target_rest.h to target folder
4. Modified families and bootloader file for new target_config api
5. Added test filter for boards that cannot run DAPLink test
6. Update documentation for porting target family
@brianesquilona brianesquilona force-pushed the flash_ram_region_flags branch from 6557498 to 483b3b3 Compare April 1, 2019 20:12
@brianesquilona
Copy link
Copy Markdown
Contributor Author

/morph test

1 similar comment
@brianesquilona
Copy link
Copy Markdown
Contributor Author

/morph test

flash_start_local = g_board_info.target_cfg->flash_start;
region_info_t * region = g_board_info.target_cfg->flash_regions;
for (; region->start != 0 || region->end != 0; ++region) {
if (addr >= region->start && addr <= region->end) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

write_bin call this function with addr = 0, if the flash is not starting from addr 0x0 then flashing of bin format will fail, have you tested this? originally flash_start_local used to get populated everytime, but this is not the case anymore, I think the check should be "if (kRegionIsDefault == region->flags) {"

static bool flash_decoder_is_at_end(uint32_t addr, const uint8_t *data, uint32_t size)
{
uint32_t end_addr;
uint32_t end_addr=0;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

end_addr = 0
spacing

break;
}
}
if(end_addr == 0){ //invalid end_addr
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (end_addr == 0) { //invalid end_addr
spacing

@brianesquilona brianesquilona merged commit 114116b into ARMmbed:master Apr 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants