Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E (47408858) FreeRTOS: (kendryte-freertos-sdk/lib/drivers/src/network/dm9051.cpp:255) value == 0x90510a46 #50

Open
nalzok opened this issue Aug 8, 2019 · 0 comments

Comments

@nalzok
Copy link

nalzok commented Aug 8, 2019

I'm using the lastest everything (toolchain/SDK/demo), and am getting an error when trying to run the tcp_server example.

E (47408858) FreeRTOS: (/Users/nalzok/Developer/kendryte-freertos-sdk/lib/drivers/src/network/dm9051.cpp:255) value == 0x90510a46

I guess it has something to do with this assert.

virtual void on_first_open() override
{
auto spi = make_accessor(spi_driver_);
spi_dev_ = make_accessor(spi->get_device(SPI_MODE_0, SPI_FF_STANDARD, spi_cs_mask_, 8));
spi_dev_->set_clock_rate(20000000);
int_gpio_ = make_accessor(int_gpio_driver_);
int_gpio_->set_drive_mode(int_gpio_pin_, GPIO_DM_INPUT);
int_gpio_->set_pin_edge(int_gpio_pin_, GPIO_PE_FALLING);
int_gpio_->set_on_changed(int_gpio_pin_, (gpio_on_changed_t)isr_handle, this);
uint32_t value = 0;
/* Read DM9051 PID / VID, Check MCU SPI Setting correct */
value |= (uint32_t)read(DM9051_VIDL);
value |= (uint32_t)read(DM9051_VIDH) << 8;
value |= (uint32_t)read(DM9051_PIDL) << 16;
value |= (uint32_t)read(DM9051_PIDH) << 24;
configASSERT(value == 0x90510a46);
}

By the way, I'm completely lost on what that example is doing. That a few lines doesn't count as documentation IMO. Please explain it in detail. Thanks.

@nalzok nalzok changed the title E (47408858) FreeRTOS: (/Users/nalzok/Developer/kendryte-freertos-sdk/lib/drivers/src/network/dm9051.cpp:255) value == 0x90510a46 E (47408858) FreeRTOS: (kendryte-freertos-sdk/lib/drivers/src/network/dm9051.cpp:255) value == 0x90510a46 Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant