-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Bootloader can't get IP from DHCP Server #2
Comments
Unfortunately there is a documentation missing for the board and the functionality of the code to get starting. :( I also tried the OPI zero , that one works like a charm btw. |
There is documentation here -> https://www.gd32-dmx.org The readme here -> https://github.com/vanvught/GD32F407RE-Bootloader-TFTP tells that the bootloader must be loaded and then the firmware at 0x08007000. You can install the initial firmware also with the GD32 tools ( http://www.gd32mcu.com/en/download/7?kw=GD32F4) or when the KEY_BOOTLOADER_TFTP_GPIO_PINx is pressed during reset, the Java UI can be used.
The 169.254.x.y is ZeroConfig and enabled when DHCP is not working ->https://www.orangepi-dmx.org/orange-pi/network-configuration/ethernet
The firmware is running.
Default is DHCP |
With exception for the firmware with 4x RDM/DMX, you can use USART0 for debugging -> https://www.gd32-dmx.org/dev-board.html |
The GD32 firmware is exactly the same as the OPi firmware functionality. |
Thank you for your time & answer. |
No need to compile the firmware.
The configuration can be done with (same as with the OPi):
|
No need to install Eclipse CDT. You can just work with the make file. |
Since i am not able to get an dynamic IP from the device, i can not use the above solutions to change to static IP. I tried also rnc now and it is not able to detect the device. The rnc app is stuck on "Searching please wait". |
Ok so i finally managed the device to obtain an IP adress and flashed the firmware. So everything is fine. |
What would be different with this other router? |
At the moment i really have no idea. Edit: Of course, both routers have the DHCP enabled and their IP is 192.168.0.1 |
I am happy to look at Wireshark captures for the DHCP process. |
I noticed that the router which does not assigns an ip uses DHCPv6. Could this be a reason? |
Hi Arjan, Happy weekend. Unfortunately i have difficulties with uploading the firmware through the TFTP server.
I tried as you mentioned to first flash the bootloader at 0x08000000 (the bootloader works fine btw.) and then the firmware to 0x08007000 through SWD, but that does not work for me. The firmware will not start. Note: Where can i buy the PCB's for GD32F4xx board? Do you have some? |
I have all the files ready for ordering at JLCPCB. I've just ordered a new batch with the SPI flash on the PCB. I will publish the files as soon as I received the boards and tested successfully. |
My apologies here, the firmware is at 0x08008000 -> https://github.com/vanvught/GD32F407RE-DMX512-RDM/blob/main/firmware-template-gd32/gd32f407re_flash.ld#L3 I do not have GD32-Link, therefore I do not use SWD. I flash the bootloader with USB UDF or USART0 (unfortunately on Windows only). Then I load the firmware with the TFTP server. |
Omg, this solved the issue. Now i am able to flash the firmware with SWD too. And everything works fine. Thank you. |
Oh, as i will use the board definetely with the spi flash, i better wait for the new board then. Hopefully the board test will run fine for you. |
So i bought a GD32f407RE. Flashed the bootlader v1.3 with ST-Link adapter to the adress 0x08000000. I am using DP83848 Phy. The router is assigning the IP from DHCP, but for a short time. Also there is no ping response. In the meantime, i can see the device in the Firmware Update Manager, but with an ip in the range of 169.x.x.x. And after 10-15sec the device dissapears in the router as well. By the way the PC0 LED is blinking in 500ms intervals. What does that mean? Can you help?
Also does the firmware only works by uploading it through the bootloader or can i flash it directly? If yes, what are the network settings for your firmware release? DHCP or Static IP?
Thanks.
The text was updated successfully, but these errors were encountered: