1- [target .riscv32imac -unknown-none-elf ]
1+ [target .riscv32imc -unknown-none-elf ]
22runner = " espflash flash --monitor"
33# runner = "probe-rs run --chip esp32c3 --format idf"
44
@@ -7,30 +7,14 @@ rustflags = [
77 # Required to obtain backtraces (e.g. when using the "esp-backtrace" crate.)
88 # NOTE: May negatively impact performance of produced code
99 " -C" , " force-frame-pointers" ,
10-
11- # comment the cfgs below if you do _not_ wish to emulate atomics.
12- # enable the atomic codegen option for RISCV
13- " -C" , " target-feature=+a" ,
14- # tell the core library have atomics even though it's not specified in the target definition
15- " --cfg" , " target_has_atomic_load_store" ,
16- " --cfg" , ' target_has_atomic_load_store="8"' ,
17- " --cfg" , ' target_has_atomic_load_store="16"' ,
18- " --cfg" , ' target_has_atomic_load_store="32"' ,
19- " --cfg" , ' target_has_atomic_load_store="ptr"' ,
20- # enable cas
21- " --cfg" , " target_has_atomic" ,
22- " --cfg" , ' target_has_atomic="8"' ,
23- " --cfg" , ' target_has_atomic="16"' ,
24- " --cfg" , ' target_has_atomic="32"' ,
25- " --cfg" , ' target_has_atomic="ptr"' ,
2610]
2711
2812[env ]
2913# Use clean build after changing ESP_LOGLEVEL
3014ESP_LOGLEVEL =" DEBUG"
3115
3216[build ]
33- target = " riscv32imac -unknown-none-elf"
17+ target = " riscv32imc -unknown-none-elf"
3418
3519[unstable ]
3620build-std = [ " core" , " alloc" ]
0 commit comments