788 views
in System Integration by
I create the .h and .c to control de ESP8266 module. I tried to add this file to your deviceDriver file but when i do the make it said something about undefined reference.

 

What i do:

 

Include the ESP8266.h to the DeviceDriver.c

Inside the method DeviceDriver_SetLedStatus, i call a method of my lib(send data through UART),

 

In the ew_bsp_system i add this --->

  PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_USART6;

 

  PeriphClkInitStruct.Usart6ClockSelection = RCC_USART6CLKSOURCE_PCLK2;

 

Inside  the method  DeviceDriver_Initialize() i add the init config of my Usart module.

 

I copy the ESP8266.h and ESP8266.c to the template folder.

 

Do i have to do anything else??

1 Answer

+1 vote
by
Hi Antonio,

Can you please provide us with the console of the make process? Which references are missing? What's the compiler's output?

Best regards,
Manuel
by
I had a wrong initialization of uart module, the problem was solved. Thanks

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...