Skip to content

Sienci Longboard Fails to buidl #268

@patrickjr89

Description

@patrickjr89

Today- went to update my grblhal firmware- however I get an 422 error message and build failed.

Command failed: pio run -etest -cjob.ini
motors/trinamic.c:568:17: warning: 'get_driver_enable' defined but not used [-Wunused-function]
static uint32_t get_driver_enable (setting_id_t setting)
^~~~~~~~~~~~~~~~~
motors/trinamic.c:555:22: warning: 'set_driver_enable' defined but not used [-Wunused-function]
static status_code_t set_driver_enable (setting_id_t id, uint_fast16_t value)
^~~~~~~~~~~~~~~~~
plugins/eventout.c: In function 'event_settings_restore':
plugins/eventout.c:390:42: warning: array subscript is above array bounds [-Warray-bounds]
plugin_settings.event[idx].trigger = Event_Ignore;

sdcard/fs_stream.c: In function 'onCycleStart':
sdcard/fs_stream.c:361:24: warning: comparison of distinct pointer types lacks a cast
if(hal.stream.read == await_cycle_start)
^~
sdcard/fs_stream.c: In function 'onProgramCompleted':
sdcard/fs_stream.c:408:25: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
hal.stream.read = await_cycle_start;
^
sdcard/fs_stream.c: In function 'stream_suspend':
sdcard/fs_stream.c:439:46: warning: passing argument 1 of 'active_stream.set_enqueue_rt_handler' from incompatible pointer type [-Wincompatible-pointer-types]
active_stream.set_enqueue_rt_handler(await_toolchange_ack); // and set handler to wait for tool change acknowledge.
^~~~~~~~~~~~~~~~~~~~
sdcard/fs_stream.c:439:46: note: expected 'enqueue_realtime_command_ptr {aka _Bool (*)(unsigned char)}' but argument is of type '_Bool (*)(char)'
sdcard/fs_stream.c:442:43: warning: passing argument 1 of 'hal.stream.set_enqueue_rt_handler' from incompatible pointer type [-Wincompatible-pointer-types]
hal.stream.set_enqueue_rt_handler(drop_input_stream); // ..
^~~~~~~~~~~~~~~~~
sdcard/fs_stream.c:442:43: note: expected 'enqueue_realtime_command_ptr {aka _Bool (*)(unsigned char)}' but argument is of type '_Bool (*)(char)'
sdcard/fs_stream.c: In function 'stream_changed':
sdcard/fs_stream.c:498:78: warning: passing argument 1 of 'hal.stream.set_enqueue_rt_handler' from incompatible pointer type [-Wincompatible-pointer-types]
enqueue_realtime_command = hal.stream.set_enqueue_rt_handler(drop_input_stream); // restore normal operation
^~~~~~~~~~~~~~~~~
sdcard/fs_stream.c:498:78: note: expected 'enqueue_realtime_command_ptr {aka _Bool (*)(unsigned char)}' but argument is of type '_Bool (*)(char)'
sdcard/fs_stream.c:500:78: warning: passing argument 1 of 'hal.stream.set_enqueue_rt_handler' from incompatible pointer type [-Wincompatible-pointer-types]
enqueue_realtime_command = hal.stream.set_enqueue_rt_handler(check_input_stream); // check for stream takeover
^~~~~~~~~~~~~~~~~~
sdcard/fs_stream.c:500:78: note: expected 'enqueue_realtime_command_ptr {aka _Bool (*)(unsigned char)}' but argument is of type '_Bool (*)(char)'
sdcard/fs_stream.c: In function 'stream_file':
sdcard/fs_stream.c:531:33: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
hal.stream.read = stream_read; // then redirect to read from file
^
sdcard/fs_stream.c:544:78: warning: passing argument 1 of 'hal.stream.set_enqueue_rt_handler' from incompatible pointer type [-Wincompatible-pointer-types]
enqueue_realtime_command = hal.stream.set_enqueue_rt_handler(drop_input_stream); // Drop input from current stream except realtime commands
^~~~~~~~~~~~~~~~~
sdcard/fs_stream.c:544:78: note: expected 'enqueue_realtime_command_ptr {aka _Bool (*)(unsigned char)}' but argument is of type '_Bool (*)(char)'
sdcard/fs_stream.c: In function 'onRealtimeReport':
sdcard/fs_stream.c:683:35: warning: comparison of distinct pointer types lacks a cast
} else if(hal.stream.read == await_cycle_start)
^~
In file included from networking/wiznet/enet.c:55:0:
networking/wiznet/port/w5x00_lwip.h:110:17: warning: 'ethernet_frame_crc' declared 'static' but never defined [-Wunused-function]
static uint32_t ethernet_frame_crc(const uint8_t *data, int length);
^~~~~~~~~~~~~~~~~~
networking/wiznet/port/w5x00_lwip.c:167:17: warning: 'ethernet_frame_crc' defined but not used [-Wunused-function]
static uint32_t ethernet_frame_crc(const uint8_t *data, int length)
^~~~~~~~~~~~~~~~~~
In file included from /home/webbuilder/.platformio/packages/framework-stm32cubef4/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:168:0,
from /home/webbuilder/.platformio/packages/framework-stm32cubef4/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h:29,
from /home/webbuilder/.platformio/packages/framework-stm32cubef4/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc.h:27,
from /home/webbuilder/.platformio/packages/framework-stm32cubef4/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_conf.h:281,
from /home/webbuilder/.platformio/packages/framework-stm32cubef4/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h:29,
from Inc/main.h:31,
from Src/neopixel_pwm.c:24:
/home/webbuilder/.platformio/packages/framework-stm32cubef4/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f412vx.h:1026:45: error: operator '*' has no right operand
#define GPIOC ((GPIO_TypeDef *) GPIOC_BASE)
^
./boards/longboard32_map.h:307:33: note: in expansion of macro 'GPIOC'
#define LED_PWM_PORT GPIOC // rail LED strip (PWM), does not work when debugging due to U14/R96 chopping output
^~~~~
Src/neopixel_pwm.c:37:5: note: in expansion of macro 'LED_PWM_PORT'
#if LED_PWM_PORT == GPIOB_BASE && LED_PWM_PIN == 0
^~~~~~~~~~~~
/home/webbuilder/.platformio/packages/framework-stm32cubef4/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f412vx.h:1026:45: error: operator '*' has no right operand
#define GPIOC ((GPIO_TypeDef *) GPIOC_BASE)
^
./boards/longboard32_map.h:307:33: note: in expansion of macro 'GPIOC'
#define LED_PWM_PORT GPIOC // rail LED strip (PWM), does not work when debugging due to U14/R96 chopping output
^~~~~
Src/neopixel_pwm.c:46:7: note: in expansion of macro 'LED_PWM_PORT'
#elif LED_PWM_PORT == GPIOC_BASE && LED_PWM_PIN == 6
^~~~~~~~~~~~
/home/webbuilder/.platformio/packages/framework-stm32cubef4/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f412vx.h:1026:45: error: operator '*' has no right operand
#define GPIOC ((GPIO_TypeDef *) GPIOC_BASE)
^
./boards/longboard32_map.h:307:33: note: in expansion of macro 'GPIOC'
#define LED_PWM_PORT GPIOC // rail LED strip (PWM), does not work when debugging due to U14/R96 chopping output
^~~~~
Src/neopixel_pwm.c:55:7: note: in expansion of macro 'LED_PWM_PORT'
#elif LED_PWM_PORT == GPIOC_BASE && LED_PWM_PIN == 7
^~~~~~~~~~~~
/home/webbuilder/.platformio/packages/framework-stm32cubef4/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f412vx.h:1026:45: error: operator '*' has no right operand
#define GPIOC ((GPIO_TypeDef *) GPIOC_BASE)
^
./boards/longboard32_map.h:307:33: note: in expansion of macro 'GPIOC'
#define LED_PWM_PORT GPIOC // rail LED strip (PWM), does not work when debugging due to U14/R96 chopping output
^~~~~
Src/neopixel_pwm.c:64:7: note: in expansion of macro 'LED_PWM_PORT'
#elif LED_PWM_PORT == GPIOC_BASE && LED_PWM_PIN == 8
^~~~~~~~~~~~
/home/webbuilder/.platformio/packages/framework-stm32cubef4/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f412vx.h:1026:45: error: operator '*' has no right operand
#define GPIOC ((GPIO_TypeDef *) GPIOC_BASE)
^
./boards/longboard32_map.h:307:33: note: in expansion of macro 'GPIOC'
#define LED_PWM_PORT GPIOC // rail LED strip (PWM), does not work when debugging due to U14/R96 chopping output
^~~~~
Src/neopixel_pwm.c:73:7: note: in expansion of macro 'LED_PWM_PORT'
#elif LED_PWM_PORT == GPIOC_BASE && LED_PWM_PIN == 9
^~~~~~~~~~~~
In file included from Src/neopixel_pwm.c:25:0:
Inc/driver.h:57:19: error: 'TIMPWM_TIMER_N' undeclared here (not in a function); did you mean 'PWM_TIMER'?
#define timerN(t) TIM ## t
^
Inc/driver.h:56:18: note: in expansion of macro 'timerN'
#define timer(t) timerN(t)
^~~~~~
Src/neopixel_pwm.c:149:29: note: in expansion of macro 'timer'
#define PWM_TIMER timer(PWM_TIMER_N)
^~~~~
Src/neopixel_pwm.c:164:17: note: in expansion of macro 'PWM_TIMER'
.Instance = PWM_TIMER,
^~~~~~~~~
Inc/driver.h:89:26: error: 'DMADMA_INSTANCE_N_StreamDMA_STREAM_N' undeclared here (not in a function)
#define DMAstreamI(d, p) DMA ## d ## _Stream ## p
^
Inc/driver.h:88:25: note: in expansion of macro 'DMAstreamI'
#define DMAstream(d, p) DMAstreamI(d, p)
^~~~~~~~~~
Src/neopixel_pwm.c:157:29: note: in expansion of macro 'DMAstream'
#define DMA_STREAM DMAstream(DMA_INSTANCE_N, DMA_STREAM_N)
^~~~~~~~~
Src/neopixel_pwm.c:173:17: note: in expansion of macro 'DMA_STREAM'
.Instance = DMA_STREAM,
^~~~~~~~~~
Inc/driver.h:91:24: error: 'DMA_CHANNEL_DMA_CHANNEL_N' undeclared here (not in a function); did you mean 'DFSDM_CHANNEL_SAME_CHANNEL_PINS'?
#define DMAchannelI(c) DMA_CHANNEL_ ## c
^
Inc/driver.h:90:23: note: in expansion of macro 'DMAchannelI'
#define DMAchannel(c) DMAchannelI(c)
^~~~~~~~~~~
Src/neopixel_pwm.c:158:29: note: in expansion of macro 'DMAchannel'
#define DMA_CHANNEL DMAchannel(DMA_CHANNEL_N)
^~~~~~~~~~
Src/neopixel_pwm.c:174:21: note: in expansion of macro 'DMA_CHANNEL'
.Init.Channel = DMA_CHANNEL,
^~~~~~~~~~~
Src/neopixel_pwm.c: In function '_write':
Inc/driver.h:84:20: error: 'TIM_CHANNEL_PWM_CHANNEL_N' undeclared (first use in this function); did you mean 'DMA_CHANNEL_DMA_CHANNEL_N'?
#define timerch(c) TIM_CHANNEL_ ## c
^
Inc/driver.h:83:20: note: in expansion of macro 'timerch'
#define timerCH(c) timerch(c)
^~~~~~~
Src/neopixel_pwm.c:150:29: note: in expansion of macro 'timerCH'
#define PWM_CHANNEL timerCH(PWM_CHANNEL_N)
^~~~~~~
Src/neopixel_pwm.c:294:54: note: in expansion of macro 'PWM_CHANNEL'
strip0.busy = HAL_TIM_PWM_Start_DMA(&pwm_timer, PWM_CHANNEL, (uint32_t *)strip0.cfg.leds, strip0.cfg.num_bytes >> 1) == HAL_OK;
^~~~~~~~~~~
Inc/driver.h:84:20: note: each undeclared identifier is reported only once for each function it appears in
#define timerch(c) TIM_CHANNEL_ ## c
^
Inc/driver.h:83:20: note: in expansion of macro 'timerch'
#define timerCH(c) timerch(c)
^~~~~~~
Src/neopixel_pwm.c:150:29: note: in expansion of macro 'timerCH'
#define PWM_CHANNEL timerCH(PWM_CHANNEL_N)
^~~~~~~
Src/neopixel_pwm.c:294:54: note: in expansion of macro 'PWM_CHANNEL'
strip0.busy = HAL_TIM_PWM_Start_DMA(&pwm_timer, PWM_CHANNEL, (uint32_t *)strip0.cfg.leds, strip0.cfg.num_bytes >> 1) == HAL_OK;
^~~~~~~~~~~
Src/neopixel_pwm.c: In function 'neopixel_pwm_init':
Inc/driver.h:81:23: error: 'GPIO_AFPWM_GPIO_AF_N_TIMPWM_TIMER_N' undeclared (first use in this function)
#define timeraf(t, f) GPIO_AF ## f ## _TIM ## t
^
Inc/driver.h:80:23: note: in expansion of macro 'timeraf'
#define timerAF(t, f) timeraf(t, f)
^~~~~~~
Src/neopixel_pwm.c:152:29: note: in expansion of macro 'timerAF'
#define PWM_GPIO_AF timerAF(PWM_TIMER_N, PWM_GPIO_AF_N)
^~~~~~~
Src/neopixel_pwm.c:503:26: note: in expansion of macro 'PWM_GPIO_AF'
.Alternate = PWM_GPIO_AF
^~~~~~~~~~~
Inc/driver.h:93:21: warning: implicit declaration of function '__HAL_RCC_DMADMA_INSTANCE_N_CLK_ENABLE'; did you mean '__HAL_RCC_DMA1_IS_CLK_ENABLED'? [-Wimplicit-function-declaration]
#define dmaclken(d) __HAL_RCC_DMA ## d ## _CLK_ENABLE
^
Inc/driver.h:92:22: note: in expansion of macro 'dmaclken'
#define DMA_CLKEN(d) dmaclken(d)
^~~~~~~~
Src/neopixel_pwm.c:159:29: note: in expansion of macro 'DMA_CLKEN'
#define DMA_INSTANCE_CLKEN DMA_CLKEN(DMA_INSTANCE_N)
^~~~~~~~~
Src/neopixel_pwm.c:510:9: note: in expansion of macro 'DMA_INSTANCE_CLKEN'
DMA_INSTANCE_CLKEN();
^~~~~~~~~~~~~~~~~~
Inc/driver.h:84:20: error: 'TIM_CHANNEL_PWM_CHANNEL_N' undeclared (first use in this function); did you mean 'DMA_CHANNEL_DMA_CHANNEL_N'?
#define timerch(c) TIM_CHANNEL_ ## c
^
Inc/driver.h:83:20: note: in expansion of macro 'timerch'
#define timerCH(c) timerch(c)
^~~~~~~
Src/neopixel_pwm.c:150:29: note: in expansion of macro 'timerCH'
#define PWM_CHANNEL timerCH(PWM_CHANNEL_N)
^~~~~~~
Src/neopixel_pwm.c:516:81: note: in expansion of macro 'PWM_CHANNEL'
if(hal.rgb0.out == NULL && HAL_TIM_PWM_ConfigChannel(&pwm_timer, &sConfigOC, PWM_CHANNEL) == HAL_OK) {
^~~~~~~~~~~
In file included from /home/webbuilder/.platformio/packages/framework-stm32cubef4/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc.h:27:0,
from /home/webbuilder/.platformio/packages/framework-stm32cubef4/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_conf.h:281,
from /home/webbuilder/.platformio/packages/framework-stm32cubef4/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h:29,
from Inc/main.h:31,
from Src/neopixel_pwm.c:24:
Src/neopixel_pwm.c:145:23: error: 'TIM_DMA_ID_CCPWM_CHANNEL_N' undeclared (first use in this function); did you mean 'TIM_CHANNEL_PWM_CHANNEL_N'?
#define timerdmaid(c) TIM_DMA_ID_CC ## c
^
/home/webbuilder/.platformio/packages/framework-stm32cubef4/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h:68:45: note: in definition of macro '__HAL_LINKDMA'
(__HANDLE__)->__PPP_DMA_FIELD__ = &(__DMA_HANDLE__); \
^~~~~~~~~~~~~~~~~
Src/neopixel_pwm.c:144:23: note: in expansion of macro 'timerdmaid'
#define timerDMAID(c) timerdmaid(c)
^~~~~~~~~~
Src/neopixel_pwm.c:154:29: note: in expansion of macro 'timerDMAID'
#define PWM_TIMER_DMA_ID timerDMAID(PWM_CHANNEL_N)
^~~~~~~~~~
Src/neopixel_pwm.c:524:36: note: in expansion of macro 'PWM_TIMER_DMA_ID'
__HAL_LINKDMA(&pwm_timer, hdma[PWM_TIMER_DMA_ID], pwm_dma);
^~~~~~~~~~~~~~~~
In file included from Src/neopixel_pwm.c:25:0:
Inc/driver.h:105:23: error: 'DMADMA_INSTANCE_N_StreamDMA_STREAM_N_IRQn' undeclared (first use in this function); did you mean 'DMADMA_INSTANCE_N_StreamDMA_STREAM_N'?
#define DMAirqI(d, p) DMA ## d ## _Stream ## p ## _IRQn
^
Inc/driver.h:104:22: note: in expansion of macro 'DMAirqI'
#define DMAirq(d, p) DMAirqI(d, p)
^~~~~~~
Src/neopixel_pwm.c:160:29: note: in expansion of macro 'DMAirq'
#define DMA_TX_IRQ DMAirq(DMA_INSTANCE_N, DMA_STREAM_N)
^~~~~~
Src/neopixel_pwm.c:526:26: note: in expansion of macro 'DMA_TX_IRQ'
HAL_NVIC_SetPriority(DMA_TX_IRQ, 3, 0);
^~~~~~~~~~
Src/neopixel_pwm.c:147:21: error: 'HAL_TIM_ACTIVE_CHANNEL_PWM_CHANNEL_N' undeclared (first use in this function); did you mean 'TIM_CHANNEL_PWM_CHANNEL_N'?
#define timerach(c) HAL_TIM_ACTIVE_CHANNEL_ ## c
^
Src/neopixel_pwm.c:146:21: note: in expansion of macro 'timerach'
#define timerACH(c) timerach(c)
^~~~~~~~
Src/neopixel_pwm.c:151:29: note: in expansion of macro 'timerACH'
#define PWM_ACTIVE_CHANNEL timerACH(PWM_CHANNEL_N)
^~~~~~~~
Src/neopixel_pwm.c:531:22: note: in expansion of macro 'PWM_ACTIVE_CHANNEL'
strip0.channel = PWM_ACTIVE_CHANNEL;
^~~~~~~~~~~~~~~~~~
In file included from Src/neopixel_pwm.c:25:0:
Src/neopixel_pwm.c: In function 'HAL_TIM_PWM_PulseFinishedCallback':
Inc/driver.h:84:20: error: 'TIM_CHANNEL_PWM_CHANNEL_N' undeclared (first use in this function); did you mean 'DMA_CHANNEL_DMA_CHANNEL_N'?
#define timerch(c) TIM_CHANNEL_ ## c
^
Inc/driver.h:83:20: note: in expansion of macro 'timerch'
#define timerCH(c) timerch(c)
^~~~~~~
Src/neopixel_pwm.c:150:29: note: in expansion of macro 'timerCH'
#define PWM_CHANNEL timerCH(PWM_CHANNEL_N)
^~~~~~~
Src/neopixel_pwm.c:596:29: note: in expansion of macro 'PWM_CHANNEL'
HAL_TIM_PWM_Stop_DMA(htim, PWM_CHANNEL);
^~~~~~~~~~~
*** [.pio/build/test/src/neopixel_pwm.o] Error 1
========================== [FAILED] Took 5.17 seconds ==========================

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