ch32-rs / ch32v00x-hal

HAL for the CH32V003 family of microcontrollers
29 stars 11 forks source link

Fail to run when compiled with rust nightly #10

Closed andelf closed 3 months ago

andelf commented 3 months ago

Clue:

See-also https://github.com/ch32-rs/ch32v00x-hal/commit/5e5a0e06b01fbf4e10e5254cb9152266f78e2f43#commitcomment-139706558

andelf commented 3 months ago

@Merisy-Thing I finally figured out why.

I finally figured out the issue with the *.json target.

I previously used a *.json target successfully with another name. That created some confusion for me initially.

This time, I checked the sections using cargo objdump --release --example debug -- -s and all I found was a "not implemented" message in the .bss section. It seemed like the Rust compiler was complaining about an unrecognized target format.

A simple mistake in the JSON file name format. ‍🥲