5 years, 7 months ago.

Blink example does not work on WIZwiki-W7500P

I use the WIZwiki-W7500P development board with the following code:

code

#include "mbed.h"

DigitalOut redled(LED_RED);
DigitalOut greenled(LED_GREEN);

int main() {
    while(1) {  
        redled = 1;
        greenled = 0;
        wait_ms(1000);
        redled = 0;
        greenled = 1;  
        wait_ms(1000);              
    }
}

When I reset the controller, I see the LED blink for an instance (really really short). I see both the red led and the green led pulsing 1 time (like the wait_ms function is not there) and then led is off until I reset the device (like the while(1) is not there).

I'm using the online compiler and I think this is generating code for the WIZnet-W7500 instead of the W7500P, nevertheless I selected the correct target. Thanks!

Question relating to:

WIZwiki-W7500P is a SoC platform board based on the W7500P chip = ARM Cortex-M0 that integrates 128KB Flash and hardwired TCP/IP core and MacPhy. If you use WIZwiki-W7500 board, you …

1 Answer

5 years, 7 months ago.

Hi Jonathan,

Thanks for pointing this out to us. I tried the same on W7500 and observed a similar behavior. I have filed a github ticket to track this and I encourage you to watch the ticket to see progress.

https://github.com/ARMmbed/mbed-os/issues/8203

Accepted Answer

Hi Jonathan, It seems like by default, the online compiler is picking mbed 2 for your project. If you move to mbed-os 5, the program works as expected.

To use mbed os 5, create a blinky program for a board like K64F and then change the target to choose Wizwiki W7500. I know it is not the ideal way to create a program, but we have some limitation w.r.t project templates for WizWiki that we are trying to fix. I have tried this method and the blinky program works as expected on Wizwiki W7500 with mbed-os.5 based build.

Do you have any requirements on which OS you need to have?

Here is a document about mbed 2 and mbed os 5. https://os.mbed.com/docs/latest/introduction/mbed-os-2-and-mbed-os-5.html

Thanks,

Naveen

posted by Naveen Kaje 05 Oct 2018