ambiot / ambd_sdk

Release SDK for AmebaD
99 stars 53 forks source link

make flash failed in project_hp #32

Closed Orionxer closed 1 year ago

Orionxer commented 1 year ago

I have connected the chip using command as tutorial said, /opt/SEGGER/JLink/JLinkGDBServer -device cortex-m33 -if SWD -scriptfile AP2_KM4.JLinkScript -port 2335 image But I failed to flash the chip in another terminal(project_hp) image

how could I fix it?

@S10143806H Looking forward to your response!

Aurical commented 1 year ago

@Orionxer can you follow the process in this post and try it out?

Orionxer commented 1 year ago

@Aurical Finally I can flash the KM0 and KM4 project to the chip according to your recommended solution. 🎉 image

Here is the solution from @wyy

  1. Compile image for KM0
  2. Compile image for KM4
  3. Start GDB server for KM0 only
  4. run make flash in the project_lp folder, this should upload km0_boot_all.bin and km0_km4_image2.bin
  5. run make flash in the project_hp folder, this should upload km4_boot_all.bin and km0_km4_image2.bin
  6. All three images are now present, reset and you should see the application code run

Hoping the official will update the tutorial to save everyone's time. Anyway I will close this issue.

Thanks for your help sincerely!