Kemppi minarctig 250 ошибка e6

Эта тема


  • Везде

  • Эта тема
  • Этот форум

  • Расширенный поиск

Поиск

I’m facing a linker error. I wrote the following inline Assembly code in Keil µVision5,

_asm("NOP");
_asm("NOP");

and I got the following error:
.\RAM\STM32F439_Template.axf: Error: L6218E: Undefined symbol _asm (referred from main.o).

I included the header file «stm325439xx.h» in the program.

Could anyone help me fix this error? Thank you.

asked May 5, 2021 at 13:51

YuanLinTech's user avatar

To make this code work, you either need to include the header where a macro _asm is defined, or else if it is built in to some compiler then select the correct compiler in the project settings (Keil tools support multiple different compilers).

However, the portable solution is to not use this code but rather to include "stm32f4xx.h" and then use __NOP(), which is correct for many compilers.

answered May 5, 2021 at 14:20

Tom V's user avatar

Tom VTom V

4,8272 gold badges5 silver badges22 bronze badges

1

yeah,it’s __(two consecutive underscores instead of one)

answered Mar 20 at 13:22

Tars's user avatar

I am trying to run a simple tutorial (external interrupt example) on my NUCLEO-F746ZG board. I use STM32CubeMx software version 5.2.0 and Keil software version 5.28.0.0 as compiler. I get the following error:

EXTI_callback\EXTI_callback.axf: Error: L6218E: Undefined symbol ex0 (referred from stm32f7xx_it.o).
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 2 information, 0 warning and 1 error messages.
Target not created.

where ex0 is a variable that is defined in main.c as

/* Private variables ---------------------------------------------------------*/

/* USER CODE BEGIN PV */

char ext0;

/* USER CODE END PV */

and it is used as the external variable inside the stm32f7xx_it.c as follows :

/* External variables --------------------------------------------------------*/


/* USER CODE BEGIN EV */

extern char ex0;

void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) {
    if ( GPIO_Pin == GPIO_PIN_13 ) {
        ex0 = 1;
    }
}

/* USER CODE END EV */

by using the HAL_GPIO_EXTI_Callback function I want to assign the value of 1 to the ex0 variable, whenever the blue push button (GPIO_PIN_13) is pressed on the NUCLEO-F746ZG board.

It seems the code can not find the reference to ex0 variable, while it is defined in the main.c file. I don’t understand what is cause of this problem. Should I add some .h / .c files to the my project? In addition, many users have also complained about the «Error: L6218E: Undefined symbol VAR_NAME» when they have tried to compile their code with Keil Software. I have read some of them, but I didn’t find the main reason behind this error. I appreciate those of you who can share their experience on how to solve this error.

background image

EN

16

t

-9…0

0

Electrode ignition pulse
(-9 = No pulse / 0 = Max pulse)

U

1/0

0

Disable automatic remote control recognition.
0 = Enable automatic recognition, 1 = Disable
automatic recognition.

*) Happens when exiting SETUP mode and value is 1.

4.

errOr CODes

The machine always checks its operation automatically during start-up and

reports any failures detected. If failures are detected during start-up, they

are shown as error codes on the control panel display.

e 2: power source undervoltage

The device has stopped because it has detected a mains undervoltage that

disturbs welding. Check the quality of the supply network.

e 3: power source overvoltage

The machine has stopped the welding because it has detected momentary

voltage spikes or continuous overvoltage dangerous to the machine in the

electric network. Check the quality of the supply network.

e 4: power source overheating

The power source has overheated. The cause may be one of the following:

• The power source has been used for a long time at maximum power.

• The circulation of cooling air to the power source is blocked.

• The cooling system has experienced a failure.

Remove any obstacle to air circulation, and wait until the power source fan

has cooled down the machine.

Other error codes:

The machine can show codes not listed here. In the event of an unlisted

code appearing, contact an authorised Kemppi service agent and report the

error code shown.

16

MinarcTig 180, 180MLP, 250, 250 MLP

KEIL compiles and reports an error

…\OBJ\USART.axf: Error: L6218E: Undefined symbol ADC_Cmd (referred from adc.o).
…\OBJ\USART.axf: Error: L6218E: Undefined symbol ADC_DeInit (referred from adc.o).
…\OBJ\USART.axf: Error: L6218E: Undefined symbol ADC_GetCalibrationStatus (referred from adc.o).
…\OBJ\USART.axf: Error: L6218E: Undefined symbol ADC_GetConversionValue (referred from adc.o).
…\OBJ\USART.axf: Error: L6218E: Undefined symbol ADC_GetFlagStatus (referred from adc.o).
…\OBJ\USART.axf: Error: L6218E: Undefined symbol ADC_GetResetCalibrationStatus (referred from adc.o).
…\OBJ\USART.axf: Error: L6218E: Undefined symbol ADC_Init (referred from adc.o).
…\OBJ\USART.axf: Error: L6218E: Undefined symbol ADC_RegularChannelConfig (referred from adc.o).
…\OBJ\USART.axf: Error: L6218E: Undefined symbol ADC_ResetCalibration (referred from adc.o).
…\OBJ\USART.axf: Error: L6218E: Undefined symbol ADC_SoftwareStartConvCmd (referred from adc.o).
…\OBJ\USART.axf: Error: L6218E: Undefined symbol ADC_StartCalibration (referred from adc.o).


Go to Manage Project Items and add adc.c under FWLib, see the picture below for the exact location, I used the project template of Positive Point Atomic, anyway, find the adc.c file and add it in.



After adding and recompiling, no error will be reported

Понравилась статья? Поделить с друзьями:
  • Kemppi fastmig mxf 65 ошибка 61
  • Kernel power 41 критическая ошибка что делать
  • Kempact 323a ошибка 4
  • Keenetic not reachable код ошибки 503
  • Kell 3000 ошибка 13