-
Notifications
You must be signed in to change notification settings - Fork 11
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
Issue with Flashing Zephyr OS to Artemis Nano: Last Frame Upload Failure #17
Comments
After reading the "artemis_svl.py" code, I have a feeling that the CRC16 might not match the one in the bootloader, which is why the bootloader rejects the last frame. Is my understanding correct? |
Hi Ali (@AlienSarlak ), The crc16 is the exact same one we have been using for over 4 years with the Artemis SVL... Nothing has changed there. I've tried uploading a blink binary with I've seen your post on the forum. paulvha is your best bet. He has way more experience with Artemis and Apollo3 than I do. Please do check the memory locations your bin is using. I'm sure the Uploader is unaware of the target memory locations, and that they are coded into the bin. Here is the input to the Arduino toolchain; the memory location 0x10000 (
Best wishes, |
Thanks for the information. You are correct; I also think that the uploader is unaware of the target memory locations. The behavior I have seen is that the uploader sends the frames to the bootloader and then waits for its reply. On the last frame, the reply from the bootloader is "resend the frame" instead of proceeding to the next frame. That's why I believe there might be something in the Zephyr bin file causing the |
I planned to port Artemis Nano to Zephyr OS. After adapting the device tree and some other files, I was able to build the OS. I wanted to flash Artemis Nano with Zephyr OS. After compiling, I found zephyr.bin, then I used the following command to flash it to Artemis Nano:
python3 artemis_uploader/artemis_svl.py -f ./build/zephyr.bin -t 5 -b 115200 -v /dev/ttyUSB0
The size of zephyr.bin is 14,603 bytes and the output of the above command is as follows:
If you add up all the bytes, you will see the sum is exactly 14,603, but the artemis_svl is not able to flash the last frame. I don't know why. Could you please help me with that? Also, I tried example/Blink.bin, which can be flashed every time without any problem.
Any guide about the mechanism would also be helpful.
Please note that I am aware of the two boot loaders on Artemis nano.
The text was updated successfully, but these errors were encountered: