Skip to content

Conversation

microbit-sam
Copy link
Contributor

Please don't merge yet - still need to completely test Partial Flashing


This PR only allocates the large buffer used in partial flashing when it's required

@microbit-sam microbit-sam force-pushed the allocate-pf-buffer-dyn branch from f42d1a1 to abedea7 Compare October 4, 2018 11:22
@finneyj
Copy link
Contributor

finneyj commented Oct 5, 2018

thanks @microbit-sam. Do you think this is ready to go, or does it need more testing?

@microbit-sam
Copy link
Contributor Author

I need to test partial flashing still works, running a local instance of MakeCode has changed since I last did it so haven't had time to get it going again

I'll add testing to my Monday todo list

@finneyj
Copy link
Contributor

finneyj commented Oct 5, 2018

ACK - thanks.

@pelikhan
Copy link

pelikhan commented Oct 5, 2018 via email

@pelikhan pelikhan requested a review from finneyj October 8, 2018 04:10
@microbit-sam
Copy link
Contributor Author

Sorry for the delay this week, been testing this afternoon and it's not resetting after flashing. Will update ASAP


// Reallocate block
if(block == NULL) {
(uint32_t*) malloc(16 * sizeof(uint32_t));
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be block = .... ???


// Reallocate block
if(block == NULL) {
(uint32_t*) malloc(16 * sizeof(uint32_t));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
(uint32_t*) malloc(16 * sizeof(uint32_t));
block = (uint32_t*) malloc(16 * sizeof(uint32_t));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants