Weird output on verify

Here is what arduino is spitting at me when I verify a config, not sure why. Also after installing the proffie extension in arduino and running zadig, the ports section has been greyed out. This was on a fresh windows install.

c:/users/christopher elvis/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe:C:\Users\Christopher Elvis\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6.0\variants\STM32L452RE-ProffieboardV3/linker_scripts/STM32L452RE_FLASH.ld:224: warning: memory region `SRAM2' not declared
In function 'operator new',
    inlined from 'run' at C:\Users\Christopher Elvis\OneDrive\Documents\Proffie\ProffieOS\styles\fire.h:61:15,
    inlined from 'run' at C:\Users\Christopher Elvis\OneDrive\Documents\Proffie\ProffieOS\styles\fire.h:115:68,
    inlined from 'run' at C:\Users\Christopher Elvis\OneDrive\Documents\Proffie\ProffieOS\styles\blade_style.h:105:30,
    inlined from 'RunLayer' at C:\Users\Christopher Elvis\OneDrive\Documents\Proffie\ProffieOS\styles\blade_style.h:111:61,
    inlined from 'run' at C:\Users\Christopher Elvis\OneDrive\Documents\Proffie\ProffieOS\styles\remap.h:27:20,
    inlined from 'run' at C:\Users\Christopher Elvis\OneDrive\Documents\Proffie\ProffieOS\styles\blade_style.h:99:28,
    inlined from 'RunLayer' at C:\Users\Christopher Elvis\OneDrive\Documents\Proffie\ProffieOS\styles\blade_style.h:111:61,
    inlined from 'run' at C:\Users\Christopher Elvis\OneDrive\Documents\Proffie\ProffieOS\styles\alpha.h:20:46,
    inlined from 'run' at C:\Users\Christopher Elvis\OneDrive\Documents\Proffie\ProffieOS\styles\lockup.h:130:7,
    inlined from 'run' at C:\Users\Christopher Elvis\OneDrive\Documents\Proffie\ProffieOS\styles\blade_style.h:92:5,
    inlined from 'RunLayer' at C:\Users\Christopher Elvis\OneDrive\Documents\Proffie\ProffieOS\styles\blade_style.h:111:61,
    inlined from 'run' at C:\Users\Christopher Elvis\OneDrive\Documents\Proffie\ProffieOS\styles\layers.h:25:47,
    inlined from 'run' at C:\Users\Christopher Elvis\OneDrive\Documents\Proffie\ProffieOS\styles\blade_style.h:99:28,
    inlined from 'RunLayer' at C:\Users\Christopher Elvis\OneDrive\Documents\Proffie\ProffieOS\styles\blade_style.h:111:61,
    inlined from 'run' at C:\Users\Christopher Elvis\OneDrive\Documents\Proffie\ProffieOS\styles\layers.h:24:46,
    inlined from 'run' at C:\Users\Christopher Elvis\OneDrive\Documents\Proffie\ProffieOS\styles\blade_style.h:77:30,
    inlined from 'RunStyle' at C:\Users\Christopher Elvis\OneDrive\Documents\Proffie\ProffieOS\styles\blade_style.h:87:61,
    inlined from 'run' at C:\Users\Christopher Elvis\OneDrive\Documents\Proffie\ProffieOS\styles\style_ptr.h:82:18:
C:\Users\Christopher Elvis\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6.0\cores\stm32l4\new.cpp:22:16: warning: argument 1 value '4294967295' exceeds maximum object size 2147483647 [-Walloc-size-larger-than=]
   22 |   return malloc(size);
      |                ^
C:\Users\Christopher Elvis\AppData\Local\Arduino15\packages\proffieboard\hardware\stm32l4\3.6.0\cores\stm32l4\new.cpp: In member function 'run':
c:\users\christopher elvis\appdata\local\arduino15\packages\proffieboard\tools\arm-none-eabi-gcc\9-2020-q2-update\arm-none-eabi\include\malloc.h:37:14: note: in a call to allocation function 'malloc' declared here
   37 | extern void *malloc (size_t);
      |              ^
c:/users/christopher elvis/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 8 bytes
c:/users/christopher elvis/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 8 bytes
c:/users/christopher elvis/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 8 bytes
c:/users/christopher elvis/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 8 bytes
c:/users/christopher elvis/appdata/local/arduino15/packages/proffieboard/tools/arm-none-eabi-gcc/9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 8 bytes
Sketch uses 263600 bytes (51%) of program storage space. Maximum is 507904 bytes.

Anybody have any ideas as to what is going on here?

Never seen that one, what version of Arduino? I know some users had odd issues with the new version, you might want to go back to 1.8.X and try again.

It’s also more helpful if you post your config with the error message typically. I recommend using pastebin.com and sharing the link to your config so others can have a look.

Is this suggesting the config is too big?

As for the port being greyed out? Have you tried a different usb cable? Does the pc make a noise when you plug the proffie in?

This using version 1.8.19, I got the same message using 2.2.1.

Here is a link to my config. https://pastebin.com/Av5rJZ2y

I’ll also point out this doesn’t happen with my older configs for proffie 2.2 boards, just newer configs I’ve made for proffie 3.9 boards.

I also seem to have narrowed down the cause, it only spits all this out when setting optimize to “faster” or “fastest” code despite only using only half the memory. I can even still flash the board successfully with these messages. Weird because using fastest code before doing a clean windows install never gave me these messages for the same configs.

I ran the config it compiles fine for me. It might be something with your Arduino or the Proffieboard plugin but I can’t say for sure. Perhaps @profezzorn is familiar with the error?

They’re just warnings and can be ignored.
The fact you get Sketch uses 263600 bytes (51%) of program storage space. Maximum is 507904 bytes. indicates a successful compilation.

1 Like

This warning mean that the compiler is being annoying.
The malloc() function is defined to take an int as input, which has a range between -2 billion to +2 billion. However, in the code, there are places where the input to malloc is an unsigned int or uint32_t, which has a range between 0 and 4 billion. This mean that if you tried to allocate over 2 billion bytes, the value would wrap around and become negative, which is the compiler is warning us about.

Of course, a Proffieboard doesn’t have 2 billion bytes or RAM, so any such attempt is doomed to fail anyways. Also on a real computer, malloc() is defined to take an unsigned number, so calling it with an unsigned number is normally the right thing to do.

Unfortunately it’s slightly involved to fix, or I would have already fixed it.
For now, just ignore this warning.

1 Like