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

[bootloader/storage] new bootloader and fix python issue #205

Merged
merged 42 commits into from
May 7, 2022

Conversation

devdl11
Copy link
Member

@devdl11 devdl11 commented Apr 7, 2022

An amazing Upsilon Bootloader !
Thanks @Yaya-Cout for helping me bring this beauty to life ;-)
I also fix by the way the python issue

@github-actions
Copy link

github-actions bot commented Apr 7, 2022

.text .rodata .bss .data Total (RAM) Total (ROM)
Base 814864 bytes 439766 bytes 225896 bytes 1776 bytes 227672 bytes 1256406 bytes
Head 813476 bytes 438837 bytes 225896 bytes 1776 bytes 227672 bytes 1254089 bytes
-1388 bytes -929 bytes +0 bytes +0 bytes +0 bytes -2317 bytes
-0.2 % -0.2 % +0.0 % +0.0 % +0.0 % -0.2 %

@github-actions
Copy link

github-actions bot commented Apr 7, 2022

.text .rodata .bss .data Total (RAM) Total (ROM)
Base 814864 bytes 439766 bytes 225896 bytes 1776 bytes 227672 bytes 1256406 bytes
Head 813476 bytes 438837 bytes 225896 bytes 1776 bytes 227672 bytes 1254089 bytes
-1388 bytes -929 bytes +0 bytes +0 bytes +0 bytes -2317 bytes
-0.2 % -0.2 % +0.0 % +0.0 % +0.0 % -0.2 %

@github-actions
Copy link

github-actions bot commented Apr 7, 2022

.text .rodata .bss .data Total (RAM) Total (ROM)
Base 814864 bytes 439766 bytes 225896 bytes 1776 bytes 227672 bytes 1256406 bytes
Head 813476 bytes 438837 bytes 225896 bytes 1776 bytes 227672 bytes 1254089 bytes
-1388 bytes -929 bytes +0 bytes +0 bytes +0 bytes -2317 bytes
-0.2 % -0.2 % +0.0 % +0.0 % +0.0 % -0.2 %

@@ -51,7 +51,7 @@ bool waitForVBlank() {
uint64_t startTime = Timing::millis();
uint64_t timeout = startTime + timeoutDelta;

/* If current time is big enough, currentTime + timeout wraps around the
/* If current time is big enough, currentTime + timeout wraps aroud the
Copy link
Member

Choose a reason for hiding this comment

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

?

@@ -49,7 +49,7 @@ void jump(uint32_t jumpIsrVectorAddress) {
// Disable cache before reset
Ion::Device::Cache::disable();

/* Shutdown all clocks and peripherals to mimic a hardware reset. */
/* Shutdown all clocks and periherals to mimic a hardware reset. */
Copy link
Member

Choose a reason for hiding this comment

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

?

Choose a reason for hiding this comment

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

? Changed correct spelling to wrong spelling

@@ -8,7 +8,7 @@ namespace Device {
namespace WakeUp {

/* All wakeup functions can be called together without overwriting the same
* register. All together, they will set SYSCFG and EXTi registers as follow:
* register. All togethed, they will set SYSCFG and EXTi registers as follow:
Copy link
Member

Choose a reason for hiding this comment

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

?

@@ -17,7 +17,7 @@ class TIM {
};

class CCMR : Register64 {
/* We're declaring CCMR as a 64 bits register. CCMR doesn't exist per se,
/* We're declaring CCMR as a 64 bits register. CCMR doesn't exsist per se,
Copy link
Member

Choose a reason for hiding this comment

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

?

@@ -155,7 +155,7 @@ class Calculator : public Device {
ExtendedCompatIDDescriptor m_extendedCompatIdDescriptor;

Descriptor * m_descriptors[8];
/* m_descriptors contains only descriptors that should be returned via the
/* m_descriptors contains only descriptors that sould be returned via the
Copy link
Member

Choose a reason for hiding this comment

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

?

devdl11 and others added 6 commits April 8, 2022 13:16
Co-authored-by: Lauryy06 <80424145+Lauryy06@users.noreply.github.com>
Co-authored-by: Lauryy06 <80424145+Lauryy06@users.noreply.github.com>
Co-authored-by: Lauryy06 <80424145+Lauryy06@users.noreply.github.com>
Co-authored-by: Lauryy06 <80424145+Lauryy06@users.noreply.github.com>
Co-authored-by: Lauryy06 <80424145+Lauryy06@users.noreply.github.com>
Co-authored-by: Lauryy06 <80424145+Lauryy06@users.noreply.github.com>
@github-actions
Copy link

github-actions bot commented Apr 8, 2022

.text .rodata .bss .data Total (RAM) Total (ROM)
Base 814864 bytes 439766 bytes 225896 bytes 1776 bytes 227672 bytes 1256406 bytes
Head 813476 bytes 438837 bytes 225896 bytes 1776 bytes 227672 bytes 1254089 bytes
-1388 bytes -929 bytes +0 bytes +0 bytes +0 bytes -2317 bytes
-0.2 % -0.2 % +0.0 % +0.0 % +0.0 % -0.2 %

5 similar comments
@github-actions
Copy link

github-actions bot commented Apr 8, 2022

.text .rodata .bss .data Total (RAM) Total (ROM)
Base 814864 bytes 439766 bytes 225896 bytes 1776 bytes 227672 bytes 1256406 bytes
Head 813476 bytes 438837 bytes 225896 bytes 1776 bytes 227672 bytes 1254089 bytes
-1388 bytes -929 bytes +0 bytes +0 bytes +0 bytes -2317 bytes
-0.2 % -0.2 % +0.0 % +0.0 % +0.0 % -0.2 %

@github-actions
Copy link

github-actions bot commented Apr 8, 2022

.text .rodata .bss .data Total (RAM) Total (ROM)
Base 814864 bytes 439766 bytes 225896 bytes 1776 bytes 227672 bytes 1256406 bytes
Head 813476 bytes 438837 bytes 225896 bytes 1776 bytes 227672 bytes 1254089 bytes
-1388 bytes -929 bytes +0 bytes +0 bytes +0 bytes -2317 bytes
-0.2 % -0.2 % +0.0 % +0.0 % +0.0 % -0.2 %

@github-actions
Copy link

github-actions bot commented Apr 8, 2022

.text .rodata .bss .data Total (RAM) Total (ROM)
Base 814864 bytes 439766 bytes 225896 bytes 1776 bytes 227672 bytes 1256406 bytes
Head 813476 bytes 438837 bytes 225896 bytes 1776 bytes 227672 bytes 1254089 bytes
-1388 bytes -929 bytes +0 bytes +0 bytes +0 bytes -2317 bytes
-0.2 % -0.2 % +0.0 % +0.0 % +0.0 % -0.2 %

@github-actions
Copy link

github-actions bot commented Apr 8, 2022

.text .rodata .bss .data Total (RAM) Total (ROM)
Base 814864 bytes 439766 bytes 225896 bytes 1776 bytes 227672 bytes 1256406 bytes
Head 813476 bytes 438837 bytes 225896 bytes 1776 bytes 227672 bytes 1254089 bytes
-1388 bytes -929 bytes +0 bytes +0 bytes +0 bytes -2317 bytes
-0.2 % -0.2 % +0.0 % +0.0 % +0.0 % -0.2 %

@github-actions
Copy link

github-actions bot commented Apr 8, 2022

.text .rodata .bss .data Total (RAM) Total (ROM)
Base 814864 bytes 439766 bytes 225896 bytes 1776 bytes 227672 bytes 1256406 bytes
Head 813476 bytes 438837 bytes 225896 bytes 1776 bytes 227672 bytes 1254089 bytes
-1388 bytes -929 bytes +0 bytes +0 bytes +0 bytes -2317 bytes
-0.2 % -0.2 % +0.0 % +0.0 % +0.0 % -0.2 %

@github-actions
Copy link

github-actions bot commented Apr 8, 2022

.text .rodata .bss .data Total (RAM) Total (ROM)
Base 814864 bytes 439766 bytes 225896 bytes 1776 bytes 227672 bytes 1256406 bytes
Head 813476 bytes 438837 bytes 225896 bytes 1776 bytes 227672 bytes 1254089 bytes
-1388 bytes -929 bytes +0 bytes +0 bytes +0 bytes -2317 bytes
-0.2 % -0.2 % +0.0 % +0.0 % +0.0 % -0.2 %

@github-actions
Copy link

github-actions bot commented Apr 8, 2022

.text .rodata .bss .data Total (RAM) Total (ROM)
Base 814864 bytes 439766 bytes 225896 bytes 1776 bytes 227672 bytes 1256406 bytes
Head 813476 bytes 438837 bytes 225896 bytes 1776 bytes 227672 bytes 1254089 bytes
-1388 bytes -929 bytes +0 bytes +0 bytes +0 bytes -2317 bytes
-0.2 % -0.2 % +0.0 % +0.0 % +0.0 % -0.2 %

Comment on lines +6 to +7
# Disable Script
sys.exit(0)
Copy link
Member

Choose a reason for hiding this comment

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

Yes, but why are you not removing it from the Makefile ?

uint32_t * persistence_end_32 = (uint32_t *)&_exam_mode_buffer_end;
assert((persistence_end_32 - persistence_start_32) % 4 == 0);
while (persistence_start_32 < persistence_end_32 && *persistence_start_32 == 0x0) {
uint32_t * persitence_start_32 = (uint32_t *)&_exam_mode_buffer_start;
Copy link
Member

Choose a reason for hiding this comment

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

Why do you edit it ?

devdl11 and others added 5 commits April 8, 2022 18:02
Co-authored-by: Yaya-Cout <67095734+Yaya-Cout@users.noreply.github.com>
Co-authored-by: Yaya-Cout <67095734+Yaya-Cout@users.noreply.github.com>
Co-authored-by: Yaya-Cout <67095734+Yaya-Cout@users.noreply.github.com>
Co-authored-by: Yaya-Cout <67095734+Yaya-Cout@users.noreply.github.com>
Co-authored-by: Yaya-Cout <67095734+Yaya-Cout@users.noreply.github.com>
@github-actions
Copy link

.text .rodata .bss .data Total (RAM) Total (ROM)
Base 814864 bytes 439766 bytes 225896 bytes 1776 bytes 227672 bytes 1256406 bytes
Head 813476 bytes 438837 bytes 225896 bytes 1776 bytes 227672 bytes 1254089 bytes
-1388 bytes -929 bytes +0 bytes +0 bytes +0 bytes -2317 bytes
-0.2 % -0.2 % +0.0 % +0.0 % +0.0 % -0.2 %

@github-actions
Copy link

.text .rodata .bss .data Total (RAM) Total (ROM)
Base 814864 bytes 439766 bytes 225896 bytes 1776 bytes 227672 bytes 1256406 bytes
Head 813476 bytes 438837 bytes 225896 bytes 1776 bytes 227672 bytes 1254089 bytes
-1388 bytes -929 bytes +0 bytes +0 bytes +0 bytes -2317 bytes
-0.2 % -0.2 % +0.0 % +0.0 % +0.0 % -0.2 %

@github-actions
Copy link

.text .rodata .bss .data Total (RAM) Total (ROM)
Base 814864 bytes 439766 bytes 225896 bytes 1776 bytes 227672 bytes 1256406 bytes
Head 813476 bytes 438837 bytes 225896 bytes 1776 bytes 227672 bytes 1254089 bytes
-1388 bytes -929 bytes +0 bytes +0 bytes +0 bytes -2317 bytes
-0.2 % -0.2 % +0.0 % +0.0 % +0.0 % -0.2 %

@devdl11 devdl11 marked this pull request as ready for review April 26, 2022 10:46
Copy link
Member

@Yaya-Cout Yaya-Cout left a comment

Choose a reason for hiding this comment

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

Please remove themes/themes/local/upsilon_light/bootloader/computer.xcf

Co-authored-by: Yaya-Cout <yaya.cout@free.fr>
@github-actions
Copy link

.text .rodata .bss .data Total (RAM) Total (ROM)
Base 814864 bytes 439766 bytes 225896 bytes 1776 bytes 227672 bytes 1256406 bytes
Head 813476 bytes 438837 bytes 225896 bytes 1776 bytes 227672 bytes 1254089 bytes
-1388 bytes -929 bytes +0 bytes +0 bytes +0 bytes -2317 bytes
-0.2 % -0.2 % +0.0 % +0.0 % +0.0 % -0.2 %

@github-actions
Copy link

.text .rodata .bss .data Total (RAM) Total (ROM)
Base 814864 bytes 439766 bytes 225896 bytes 1776 bytes 227672 bytes 1256406 bytes
Head 813476 bytes 438837 bytes 225896 bytes 1776 bytes 227672 bytes 1254089 bytes
-1388 bytes -929 bytes +0 bytes +0 bytes +0 bytes -2317 bytes
-0.2 % -0.2 % +0.0 % +0.0 % +0.0 % -0.2 %


constexpr static const char * bootloaderVersion = "Version 1.0.0 - FREED0M";

//USB NAMES
Copy link
Member

Choose a reason for hiding this comment

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

Why do you use capitals letters ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because it's more stylish😎😎

devdl11 and others added 2 commits April 27, 2022 15:44
Co-authored-by: Yaya-Cout <yaya.cout@free.fr>
@github-actions
Copy link

.text .rodata .bss .data Total (RAM) Total (ROM)
Base 814864 bytes 439766 bytes 225896 bytes 1776 bytes 227672 bytes 1256406 bytes
Head 813476 bytes 438837 bytes 225896 bytes 1776 bytes 227672 bytes 1254089 bytes
-1388 bytes -929 bytes +0 bytes +0 bytes +0 bytes -2317 bytes
-0.2 % -0.2 % +0.0 % +0.0 % +0.0 % -0.2 %

1 similar comment
@github-actions
Copy link

.text .rodata .bss .data Total (RAM) Total (ROM)
Base 814864 bytes 439766 bytes 225896 bytes 1776 bytes 227672 bytes 1256406 bytes
Head 813476 bytes 438837 bytes 225896 bytes 1776 bytes 227672 bytes 1254089 bytes
-1388 bytes -929 bytes +0 bytes +0 bytes +0 bytes -2317 bytes
-0.2 % -0.2 % +0.0 % +0.0 % +0.0 % -0.2 %

Co-authored-by: Yaya-Cout <yaya.cout@free.fr>
@github-actions
Copy link

.text .rodata .bss .data Total (RAM) Total (ROM)
Base 814864 bytes 439766 bytes 225896 bytes 1776 bytes 227672 bytes 1256406 bytes
Head 813476 bytes 438837 bytes 225896 bytes 1776 bytes 227672 bytes 1254089 bytes
-1388 bytes -929 bytes +0 bytes +0 bytes +0 bytes -2317 bytes
-0.2 % -0.2 % +0.0 % +0.0 % +0.0 % -0.2 %

@github-actions
Copy link

.text .rodata .bss .data Total (RAM) Total (ROM)
Base 814864 bytes 439766 bytes 225896 bytes 1776 bytes 227672 bytes 1256406 bytes
Head 813476 bytes 438837 bytes 225896 bytes 1776 bytes 227672 bytes 1254089 bytes
-1388 bytes -929 bytes +0 bytes +0 bytes +0 bytes -2317 bytes
-0.2 % -0.2 % +0.0 % +0.0 % +0.0 % -0.2 %

@github-actions
Copy link

.text .rodata .bss .data Total (RAM) Total (ROM)
Base 814864 bytes 439766 bytes 225896 bytes 1776 bytes 227672 bytes 1256406 bytes
Head 813476 bytes 438837 bytes 225896 bytes 1776 bytes 227672 bytes 1254089 bytes
-1388 bytes -929 bytes +0 bytes +0 bytes +0 bytes -2317 bytes
-0.2 % -0.2 % +0.0 % +0.0 % +0.0 % -0.2 %

Comment on lines 40 to 41
// Ion::Device::Flash::DisableInternalProtection();
// Ion::Device::Flash::EraseSector(0);
Copy link
Member

Choose a reason for hiding this comment

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

Remove comments if unused (below too)

Suggested change
// Ion::Device::Flash::DisableInternalProtection();
// Ion::Device::Flash::EraseSector(0);

Copy link
Member Author

@devdl11 devdl11 Apr 27, 2022

Choose a reason for hiding this comment

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

it's for the next update x)

Copy link
Member Author

Choose a reason for hiding this comment

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

But I think i found something out

@github-actions
Copy link

.text .rodata .bss .data Total (RAM) Total (ROM)
Base 814864 bytes 439766 bytes 225896 bytes 1776 bytes 227672 bytes 1256406 bytes
Head 813476 bytes 438837 bytes 225896 bytes 1776 bytes 227672 bytes 1254089 bytes
-1388 bytes -929 bytes +0 bytes +0 bytes +0 bytes -2317 bytes
-0.2 % -0.2 % +0.0 % +0.0 % +0.0 % -0.2 %

@Yaya-Cout Yaya-Cout merged commit 7f8e6a6 into UpsilonNumworks:upsilon-dev May 7, 2022
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.

Impossible to build binpack
4 participants