EnAccess / EnAccess/OpenPAYGO-Link
STM8S003 examples not Working
- Dominant language
- C
- Stars
- 2
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
Hi! has anyone tried to flash and run the basic single slave example provided. I used stm8s003k3 discovery boards on both master and slave side for testing. The documentation mentions that first the slave will advertise its presence, then master will acknowledge and initiate a handshake. After the connection is established master sends a string "OpenPayGo" and the slave responds by sending "Link". LEDs will also blink during this process of sending and receiving. As LED is attached to PD0 so I changed GPIO pin to (PD, 0). But still I see no LEDs blinking. For debugging; i tested both UART and gpio_write functions before entering while(1). They both work fine. Also, I go through the code and noticed that in slave's opl_init(); the slave loads configuration from EEPROM. If no configurations are found, it will stuck in while(1) loop forever. But, I see in the example code we are not loading configurations anywhere.

So, I tried to manually write configurations in main() as follows, but still no luck

Contributor guide
Assessment
This issue has not been assessed yet.