EnAccess / EnAccess/OpenPAYGO-Link

STM8S003 examples not Working

Open
#4 1 comment 0 reactions 0 assignees View on GitHub
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.

![image](https://github.com/EnAccess/OpenPAYGO-Link/assets/140724501/9d2ec9d1-e712-4634-869b-b5284837c814)

So, I tried to manually write configurations in main() as follows, but still no luck
![image](https://github.com/EnAccess/OpenPAYGO-Link/assets/140724501/84f0f580-4abf-408e-b6bb-831411664aff)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.