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

debug variant not compiling #22

Open
Ami603 opened this issue May 5, 2022 · 12 comments
Open

debug variant not compiling #22

Ami603 opened this issue May 5, 2022 · 12 comments

Comments

@Ami603
Copy link

Ami603 commented May 5, 2022

Hello, i'm trying to compile a debug variant, however i get the following error:

/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: build/firmware.elf section .rodata' will not fit in region FLASH'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: region `FLASH' overflowed by 2696 bytes

so it seems it's bigger than flash region on the GD chip.

@Ami603 Ami603 changed the title debug variant not compiles debug variant not compiling May 5, 2022
@Candas1
Copy link
Collaborator

Candas1 commented May 5, 2022

Hi,

This is known issue, I believe with the SPL drivers the footprint is bigger.
What chip do you have on your board ? If it's a C8T6 instead of a C6T6, you can increase RAM from 4K to 8K and FLASH from 32K to 64K here as a workaround.

@Ami603
Copy link
Author

Ami603 commented May 5, 2022

C6T6 here, but i managed to compile the code to a suitable firmware by commenting the last while(1) loop since it seems to be outside of the debug loop.

@Ami603
Copy link
Author

Ami603 commented May 5, 2022

I've just noticed my own fault by commenting the last loop, there's no chance to input any options back.

@Candas1
Copy link
Collaborator

Candas1 commented May 6, 2022

What are you trying to achieve ?

@Candas1
Copy link
Collaborator

Candas1 commented May 6, 2022

I was trying to replace some of the math functions for euler angle processing by the ones from qfplib on my fork

Can you please test it ?

@EFeru, I could create a pull request if it works well, there is a nice article here about this library

@Ami603
Copy link
Author

Ami603 commented May 6, 2022

Just toying with some robotics using hoverboard components, i was trying to obtain the values from the MPU via serial,to gain some knowledge.
Main idea is to have something like https://github.com/LuSeKa/HoverBot, but instead making use of the original hardware from the Hoverboard.

@Ami603
Copy link
Author

Ami603 commented May 6, 2022

i made the code compile for flashing by commenting some code and shortening the debug strings, however i can't seem to get any values from the MPU.

@Candas1
Copy link
Collaborator

Candas1 commented May 6, 2022

I don't have wiki edit access in this repository, but I had created this

@Ami603
Copy link
Author

Ami603 commented May 6, 2022

Thanks, so now i can see i have four sideboards with GD32F130C6T6 and MPU6050A, and two sideboards with same GD32 and MPU6050.

@Candas1
Copy link
Collaborator

Candas1 commented May 6, 2022

It should work with the mpu6050's

@Candas1
Copy link
Collaborator

Candas1 commented May 17, 2022

Have you had a chance to try my fork that compiles ?

@Ami603
Copy link
Author

Ami603 commented Jun 5, 2022

Not yet, somehow i've given up on using the sideboards for now, have yet to find free time to resume the tests.

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

No branches or pull requests

2 participants