EFeru / hoverboard-sideboard-hack-GD

Hoverboard sideboard hack for GD32 boards
GNU General Public License v3.0
111 stars 82 forks source link

debug variant not compiling #22

Open Ami603 opened 2 years ago

Ami603 commented 2 years ago

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 regionFLASH' /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.

Candas1 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

Candas1 commented 2 years ago

What are you trying to achieve ?

Candas1 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

Ami603 commented 2 years ago

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

Candas1 commented 2 years ago

It should work with the mpu6050's

Candas1 commented 2 years ago

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

Ami603 commented 2 years ago

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