Skip to content

build error: 'BODPD_SAMPLED_gc' undeclared  #41

@isopix

Description

@isopix

[HDK_20][-O3] ../src/Boot.c : HDK_20/src/Boot.o
In file included from ../src/ASF/common/services/ioport/ioport.h:121,
from ../src/Boot.c:10:
In function 'arch_ioport_set_pin_dir',
inlined from 'ioport_set_pin_dir' at ../src/ASF/common/services/ioport/ioport.h:266:5,
inlined from 'CheckForBootloaderSwitchOnStartup' at ../src/Boot.c:40:3:
../src/ASF/common/services/ioport/xmega/ioport.h:262:22: warning: array subscript 0 is outside array bounds of 'PORT_t[0]' {aka 'struct PORT_struct[]'} [-Warray-bounds]
262 | base->DIRSET = arch_ioport_pin_to_mask(pin);
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'PrepareForSoftwareUpgrade',
inlined from 'CheckForBootloaderSwitchOnStartup' at ../src/Boot.c:43:3:
../src/Boot.c:56:14: warning: array subscript 0 is outside array bounds of 'PORT_t[0]' {aka 'struct PORT_struct[]'} [-Warray-bounds]
56 | PORTD.INTCTRL &= ~PORT_INT0LVL0_bm; // Disable PORT D Interrupt
| ^
../src/Boot.c:56:23: warning: array subscript 0 is outside array bounds of 'PORT_t[0]' {aka 'struct PORT_struct[]'} [-Warray-bounds]
56 | PORTD.INTCTRL &= ~PORT_INT0LVL0_bm; // Disable PORT D Interrupt
| ^
[HDK_20][-O3] ../src/Console.c : HDK_20/src/Console.o
[HDK_20][-O3] ../src/FPGA.c : HDK_20/src/FPGA.o
[HDK_20][-O3] ../src/SerialStateMachine.c : HDK_20/src/SerialStateMachine.o
../src/SerialStateMachine.c: In function 'getBODStatusInPD':
../src/SerialStateMachine.c:1637:14: error: 'BODPD_SAMPLED_gc' undeclared (first use in this function); did you mean 'BOD_SAMPLED_gc'?
1637 | case BODPD_SAMPLED_gc:
| ^~~~~~~~~~~~~~~~
| BOD_SAMPLED_gc
../src/SerialStateMachine.c:1637:14: note: each undeclared identifier is reported only once for each function it appears in
../src/SerialStateMachine.c:1639:14: error: 'BODPD_CONTINUOUS_gc' undeclared (first use in this function); did you mean 'BOD_CONTINUOUS_gc'?
1639 | case BODPD_CONTINUOUS_gc:
| ^~~~~~~~~~~~~~~~~~~
| BOD_CONTINUOUS_gc
../src/SerialStateMachine.c:1641:14: error: 'BODPD_DISABLED_gc' undeclared (first use in this function); did you mean 'BOD_DISABLED_gc'?
1641 | case BODPD_DISABLED_gc:
| ^~~~~~~~~~~~~~~~~
| BOD_DISABLED_gc
make: *** [add_variant.mk:54: HDK_20/src/SerialStateMachine.o] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions